Difference between revisions of "Template:CcTLD"

From blackwiki
Jump to navigation Jump to search
imported>Wonder al
(Undid revision 831124463 by ئارام بکر (talk))
imported>Paine Ellsworth
(convert to /doc page + update parameters and format)
Line 1: Line 1:
 
{{Navbox with collapsible groups
 
{{Navbox with collapsible groups
 
|name = CcTLD
 
|name = CcTLD
|state = {{{state|uncollapsed}}}
+
|state = {{{state|expanded}}}
 
|title = [[Country code top-level domain]]s
 
|title = [[Country code top-level domain]]s
|
+
|selected = {{{selected|{{{1|}}}}}}
|selected = {{{1|}}}
+
 
|
 
 
|group1 = [[ISO 3166-1 alpha-2|ISO 3166-1]]
 
|group1 = [[ISO 3166-1 alpha-2|ISO 3166-1]]
|state1 = {{{iso3166-1|uncollapsed}}}
+
|state1 = {{{iso3166-1|expanded}}}
 
|abbr1 = ISO 3166-1
 
|abbr1 = ISO 3166-1
 
|list1 = <div>
 
|list1 = <div>
Line 38: Line 37:
  
 
|group2 = [[Internationalized country code top-level domain|Internationalized (IDN) ccTLD]]
 
|group2 = [[Internationalized country code top-level domain|Internationalized (IDN) ccTLD]]
 +
|state2 = <noinclude>expanded</noinclude>
 
|abbr2 = IDN
 
|abbr2 = IDN
 
|list2 =
 
|list2 =
Line 110: Line 110:
  
 
|group3 = [[Proposed top-level domain#Internationalized country code top-level domains|Proposed ccTLDs]]
 
|group3 = [[Proposed top-level domain#Internationalized country code top-level domains|Proposed ccTLDs]]
 +
|state3 = <noinclude>expanded</noinclude>
 
|abbr3 = Proposed
 
|abbr3 = Proposed
 
|list3 =
 
|list3 =
Line 118: Line 119:
  
 
|group4 = Others
 
|group4 = Others
 +
|state4 = <noinclude>expanded</noinclude>
 
|abbr4 = Others
 
|abbr4 = Others
 
|list4 =
 
|list4 =
Line 133: Line 135:
  
 
|below = See also: [[Generic top-level domain]]s
 
|below = See also: [[Generic top-level domain]]s
 +
 
}}<noinclude>
 
}}<noinclude>
{{collapsible option}}
+
{{Documentation}}
----
 
 
 
===Usage===
 
{{Collapsible sections option |list="ISO 3166-1", "IDN", "Proposed" or "Others"}}
 
* By default, list1 ("ISO 3166-1") is shown expanded. To show it collapsed, include {{para|iso3166-1}}<code>collapsed</code> when transcluding the template.
 
[[Category:Computing navigational boxes]]
 
 
</noinclude>
 
</noinclude>

Revision as of 22:46, 5 August 2018

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

Initial visibility: currently defaults to expanded

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

  • |state=collapsed: {{CcTLD|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{CcTLD|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{CcTLD|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 expanded.


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):
    • ISO 3166-1
    • IDN
    • Proposed
    • Others
  • For example: {{CcTLD |IDN}}

By default, list1 ("ISO 3166-1") is shown in articles as expanded. To show it collapsed, include |iso3166-1=collapsed when transcluding the template.