Difference between revisions of "Template:Infobox Korea/Header/doc"

From blackwiki
Jump to navigation Jump to search
imported>Pldx1
(→‎Usage: IBox was a pre-release name !)
imported>John of Reading
m (Typo fixing, replaced: Exemple → Example)
 
Line 15: Line 15:
 
* Header is written to be used as a header, with parameters obtained from [[:Template:Infobox Korea]]. Nevertheless, a direct call is possible, using <headercolor, title, pic, piccap>.  But this requires to call Footer just after... in order to provide the required footer !
 
* Header is written to be used as a header, with parameters obtained from [[:Template:Infobox Korea]]. Nevertheless, a direct call is possible, using <headercolor, title, pic, piccap>.  But this requires to call Footer just after... in order to provide the required footer !
  
===Exemple===
+
===Example===
 
<pre style="overflow:auto">
 
<pre style="overflow:auto">
 
{{Template:Infobox Korea/Header
 
{{Template:Infobox Korea/Header

Latest revision as of 13:50, 17 June 2019

Instructions for use
Kim Hongdo-Mountain.jpg
산수화
___footnote from an external Footer___

Usage

  • Header is written to be used as a header, with parameters obtained from Template:Infobox Korea. Nevertheless, a direct call is possible, using <headercolor, title, pic, piccap>. But this requires to call Footer just after... in order to provide the required footer !

Example

{{Template:Infobox Korea/Header
|headercolor= #00c4de
|title=Instructions for use
|pic=File:Kim_Hongdo-Mountain.jpg
|piccap= 산수화
}}
{{Template:Infobox Korea/Footer
|footnote=___footnote from an external Footer___
}}

Templates called as subprocedures

Include versus Noinclude

Optimizing is optimizing the most used case, not burdening this most used case in order to satisfy some cosmetic hubris. Therefore, the <includeonly>...</includeonly> structures of the former implementation have been replaced by their arguments.
As presently written, the <noinclude> version produces a simple title bar, while the functionality of the <noinclude> old version is obtained by simply calling the template from the doc. Remark: the nice green box is split, but the world will survive.