Template:Infobox Korea/Both Koreas

From blackwiki
Jump to navigation Jump to search

Korean name

Template documentation[view] [edit] [history] [purge]

Usage

  • Both_Koreas is written to be called from Template:Infobox Korea. If you want to use it as a directly called child, you have to provide a Header and a Footer.
  • caveat: parameter's names here are not the same as those used in the main procedure.

Example

Instructions for use
Kim Hongdo-Mountain.jpg
___from an external Header___
Korean name
Hangul
미상
Hanja
田禹治
Revised R.Template:Transl
McCune–R.Template:Transl
___footnote from an external Footer___
{{Template:Infobox Korea/Header
|headercolor= #00c4de
|title=Instructions for use
|pic=File:Kim_Hongdo-Mountain.jpg
|piccap= ___from an external Header___
}}
{{Template:Infobox Korea/Both_Koreas
|hangul=미상
|hanja=田禹治
|rr=missing
|mr=Chosŏn'gŭl
|hide=no
}}
{{Template:Infobox Korea/Footer
|footnote=___footnote from an external Footer___
}}

Chosŏn'gŭl version

Setting context=north in the main procedure, or northkorea=yes in the present procedure results into changing the romanization of "hangul" and "hancha". This is the result of several very long discussions. Don't change this behaviour !

Instructions for use
Kim Hongdo-Mountain.jpg
___from an external Header___
Korean name
Chosŏn'gŭl
미상
Hancha
田禹治
Revised R.Template:Transl
McCune–R.Template:Transl
___footnote from an external Footer___
{{Template:Infobox Korea/Header
|headercolor= #00c4de
|title=Instructions for use
|pic=File:Kim_Hongdo-Mountain.jpg
|piccap= ___from an external Header___
}}
{{Template:Infobox Korea/Both_Koreas
|northkorea=yes
|hangul=미상
|hanja=田禹治
|rr=missing
|mr=Chosŏn'gŭl
|hide=no
}}
{{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 the two words "Korean name" that floats atop of the page, 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.