Difference between revisions of "Template:Korea topics"

From blackwiki
Jump to navigation Jump to search
imported>Moscow Connection
(+1)
imported>Paine Ellsworth
(enable expanded sections + improve state= parameter in line with documentation + convert to /doc page)
Line 3: Line 3:
 
| title    = {{flagicon|ROK}} [[Korea]] [[Index of Korea-related articles|topics]] {{flagicon|DPRK}}
 
| title    = {{flagicon|ROK}} [[Korea]] [[Index of Korea-related articles|topics]] {{flagicon|DPRK}}
 
| bodyclass = hlist
 
| bodyclass = hlist
| state    = {{{state<includeonly>|</includeonly>}}}
+
| state    = {{{state<includeonly>|autocollapse</includeonly>}}}
 +
| selected  = {{{1}}}
  
 
| above =
 
| above =
Line 47: Line 48:
 
  <!----------------------- Geography ---------------------->
 
  <!----------------------- Geography ---------------------->
  
| group3 = Geography
+
| group2 = Geography
| abbr3 = Geography
+
| abbr2 = Geography
| list3 =
+
| list2 =
 
  {{Navbox|subgroup
 
  {{Navbox|subgroup
  
Line 79: Line 80:
 
  <!---------------------- Politics ---------------------->
 
  <!---------------------- Politics ---------------------->
  
| group4 = Politics
+
| group3 = Politics
| abbr4 = Politics
+
| abbr3 = Politics
| list4 =
+
| list3 =
 
  {{Navbox|subgroup
 
  {{Navbox|subgroup
  
Line 123: Line 124:
 
  <!------------------------ Economy ----------------------->
 
  <!------------------------ Economy ----------------------->
  
| group5 = Economy
+
| group4 = Economy
| abbr5 = Economy
+
| abbr4 = Economy
| list5 =
+
| list4 =
 
  {{Navbox|subgroup
 
  {{Navbox|subgroup
  
Line 162: Line 163:
 
  <!---------------------- Demographics -------------------->
 
  <!---------------------- Demographics -------------------->
  
| group6 = Demographics
+
| group5 = Demographics
| abbr6 = Demographics
+
| abbr5 = Demographics
| list6 =
+
| list5 =
 
* [[Koreans]]
 
* [[Koreans]]
 
** [[List of people of Korean descent|list]]
 
** [[List of people of Korean descent|list]]
Line 179: Line 180:
 
  <!------------------------ Culture ----------------------->
 
  <!------------------------ Culture ----------------------->
  
| group7 = [[Culture of Korea|Culture]]
+
| group6 = [[Culture of Korea|Culture]]
| abbr7 = Culture
+
| abbr6 = Culture
| list7 =
+
| list6 =
 
  {{Navbox|subgroup
 
  {{Navbox|subgroup
 
   | group1 = General
 
   | group1 = General
Line 228: Line 229:
  
 
}}<noinclude>
 
}}<noinclude>
 
+
{{documentation}}
{{documentation
 
|content =
 
{{ombox
 
|text = This template is meant to include links to ''major'' Korea-related articles only. For a complete list of Korea-related topics, see [[Index of Korea-related articles]].
 
}}
 
 
 
{{collapsible option}}
 
{{collapsible lists option
 
|listnames = "History", "Geography", "Politics", "Economy", "Demographics", "Culture"
 
|example = Demographics
 
}}
 
}}<!--(end documentation)-->
 
 
 
[[Category:Korea templates| ]]
 
[[Category:Asia country and territory topics templates]]
 
 
 
 
</noinclude>
 
</noinclude>

Revision as of 03:01, 25 March 2018

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

Initial visibility: currently defaults to autocollapse

To set this template's initial visibility, the |state= parameter may be used:

  • |state=collapsed: {{Korea topics|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Korea topics|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Korea topics|state=autocollapse}}
    • shows the template collapsed to the title bar if there is a {{navbar}}, a {{sidebar}}, or some other table on the page with the collapsible attribute
    • shows the template in its expanded state if there are no other collapsible items on the page

If the |state= parameter in the template on this page is not set, the template's initial visibility is taken from the |default= parameter in the Collapsible option template. For the template on this page, that currently evaluates to autocollapse.

How to manage this template's collapsible groups/sections option
  • This template includes collapsible groups/sections. When it first appears, one of these groups/sections may be set to be visible ("expanded") while the others remain hidden ("collapsed") apart from their titlebars. To achieve this, include the parameter |name where name is one of the following words that identify the groups/sections (omit any speech or quotation marks):
    • History
    • Geography
    • Politics
    • Economy
    • Demographics
    • Culture
  • For example: {{Korea topics |Geography}}

which produces...

Click "show" on the right to see result.