Difference between revisions of "Template:Infobox Korea/Header"
Jump to navigation
Jump to search
imported>Pldx1 m (Pldx1 moved page Template:/Infobox Korea/Header to Template:Infobox Korea/Header: the right name) |
imported>Jonesey95 (Fix Linter errors) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
| − | {{#ifeq: {{{child|yes | + | {{#ifeq: {{{child|yes}}} | yes | <table class="infobox" style="width: 22em"> }}{{Infobox |
|decat = yes | |decat = yes | ||
|child = {{{child|yes}}} | |child = {{{child|yes}}} | ||
| Line 15: | Line 15: | ||
|headerstyle = background-color: {{#if: {{{headercolor|}}} | {{{headercolor|}}} | #b0c4de }} | |headerstyle = background-color: {{#if: {{{headercolor|}}} | {{{headercolor|}}} | #b0c4de }} | ||
|labelstyle = width: 50%; white-space: nowrap | |labelstyle = width: 50%; white-space: nowrap | ||
| − | }}<noinclude> | + | }}<noinclude>{{Template:Infobox Korea/Footer}} |
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 14:55, 16 February 2019
| Template:PAGENAMEBASE |
| Instructions for use | |
![]() 산수화 | |
| ___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
- 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.
| The above documentation is transcluded from Template:Infobox Korea/Header/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |
