Difference between revisions of "Template:Infobox Korea/Header/doc"
Jump to navigation
Jump to search
imported>Pldx1 m (Pldx1 moved page Template:/Infobox Korea/Header/doc to Template:Infobox Korea/Header/doc: the right name) |
imported>Pldx1 (reorg, usage first) |
||
| Line 8: | Line 8: | ||
|piccap= 산수화 | |piccap= 산수화 | ||
}} | }} | ||
| − | {{Template:Infobox Korea/Footer}} | + | {{Template:Infobox Korea/Footer |
| + | |footnote=___footnote from an external Footer___ | ||
| + | }} | ||
| + | |||
| + | == Usage == | ||
| + | * Header is written to be used as a header, with parameters obtained from IBox. 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=== | ||
| + | <pre style="overflow:auto"> | ||
| + | {{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___ | ||
| + | }} | ||
| + | </pre> | ||
== Templates called as subprocedures == | == Templates called as subprocedures == | ||
| Line 15: | Line 33: | ||
== Include versus Noinclude == | == Include versus Noinclude == | ||
| − | Optimizing | + | Optimizing is optimizing the most used case, not burdening this most used case in order to satisfy some cosmetic hubris. Therefore, the <nowiki><includeonly>...</includeonly></nowiki> structures of the former implementation have been replaced by their arguments. <br> As presently written, the <nowiki><noinclude></nowiki> version produces a simple title bar, while the functionality of the <nowiki><noinclude></nowiki> old version is obtained by simply calling the template from the doc. Remark: the nice green box is split, but the world will survive. |
| − | |||
| − | |||
| − | |||
| − | |||
<includeonly>{{sandbox other|| | <includeonly>{{sandbox other|| | ||
Revision as of 10:34, 7 January 2019
| This is a documentation subpage for Template:Infobox Korea/Header. It contains usage information, categories and other content that is not part of the original template page. |
| Instructions for use | |
![]() 산수화 | |
| ___footnote from an external Footer___ |
Usage
- Header is written to be used as a header, with parameters obtained from IBox. 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
{{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
- Uses Template:Infobox Korea/Header/doc to display the present doc.
- Calls Template: Infobox, and therefore Module: Infobox
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.
