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

From blackwiki
Jump to navigation Jump to search
imported>Pldx1
(create the doc)
 
imported>John of Reading
m (Typo fixing, replaced: it's sub-templates → its sub-templates)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
+
This template and its sub-templates provide a stand-alone implementation of a '''Korean language infobox''', using direct calls to {{tl|Infobox}}.
  
 
{{Template: Infobox Korea
 
{{Template: Infobox Korea
Line 9: Line 9:
 
|hangul=사용 지침
 
|hangul=사용 지침
 
|rr= sayong jichim
 
|rr= sayong jichim
 +
|mr=Chosŏn'gŭl
 
|hanja=使用说明
 
|hanja=使用说明
 
|hangulho=미상
 
|hangulho=미상
Line 30: Line 31:
  
 
* If child=yes, an infobox footer will be created by the caller. Otherwise, calls [[:Template:Infobox Korea/Footer]] using <text>
 
* If child=yes, an infobox footer will be created by the caller. Otherwise, calls [[:Template:Infobox Korea/Footer]] using <text>
===Exemple===
+
===Example===
 
<pre style="overflow:auto">
 
<pre style="overflow:auto">
 
{{Template:Infobox Korea
 
{{Template:Infobox Korea
Line 38: Line 39:
 
|hangul=사용 지침
 
|hangul=사용 지침
 
|rr= sayong jichim
 
|rr= sayong jichim
 +
|mr=Chosŏn'gŭl
 
|hanja=使用说明
 
|hanja=使用说明
 
|hangulho=미상
 
|hangulho=미상
Line 53: Line 55:
  
 
== Templates called as subprocedures ==
 
== Templates called as subprocedures ==
* Uses [[:Template:Infobox Korea/Documentation]] to display the present doc.
+
* Uses [[:Template:Infobox Korea/doc]] to display the present doc.
 
* Uses [[:Template:Infobox Korea/Header]], [[:Template:Infobox Korea/Footer]], [[:Template:Infobox Korea/Both_Koreas]]. Each of them calls [[:Template: Infobox]]
 
* Uses [[:Template:Infobox Korea/Header]], [[:Template:Infobox Korea/Footer]], [[:Template:Infobox Korea/Both_Koreas]]. Each of them calls [[:Template: Infobox]]
  

Latest revision as of 14:35, 17 October 2019

This template and its sub-templates provide a stand-alone implementation of a Korean language infobox, using direct calls to {{Infobox}}.

Instructions for use
Kim Hongdo-Mountain.jpg
산수화
Hangul
사용 지침
Hanja
使用说明
Revised R.Template:Transl
McCune–R.Template:Transl
Pen name
Hangul
미상
Revised R.Template:Transl
Courtesy name
Hangul
미상
Birth name
Hangul
미상
Childhood name
Hangul
미상
Stage name
Hangul
미상
Dharma name
Hangul
미상
Posthumous name
Hangul
미상
{{{othername1}}}
Hangul
미상
concluding text

Usage

  • Requires one of the following fields: <hangul, hanja, rr, mr>. Cancels everything otherwise.
  • If child=yes, an infobox header will be created by the caller. Otherwise, calls Template:Infobox Korea/Header using <headercolor, title, image, caption>
  • If exists one of <hangulXX, hanjaXX>, where XX=ho(pen), ja(courtesy), born(childhood), a(birth), stage, gye(dharma), ph(posthumous)
    calls Template:Infobox Korea/Both_Koreas using hangulXX, hanjaXX, rrXX, mrXX
  • If exists one of <hangulNN, hanjaNN>, where NN=1, 2, 3
    calls Template:Infobox Korea/Both_Koreas using othernameNN, hangulNN, hanjaNN, rrNN, mrNN

Example

{{Template:Infobox Korea
|title=Instructions for use
|image=File:Kim_Hongdo-Mountain.jpg
|caption= 산수화
|hangul=사용 지침
|rr= sayong jichim
|mr=Chosŏn'gŭl
|hanja=使用说明
|hangulho=미상
|rrho=misang
|hangulja=미상
|hangulborn=미상
|hangula=미상
|hangulstage=미상
|hangulgye=미상
|hangulph=미상
|hangul1=미상
|text=<small>concluding text</small>
}}

Templates called as subprocedures

Include versus Noinclude

As is, the <noinclude> version produces nothing. Therefore, the <includeonly>...</includeonly> structures of the former versions have been replaced by their arguments. And now, the functionality of the <noinclude> version is obtained by simply calling the template from the doc.