Template:Country topics/doc: Difference between revisions

Content deleted Content added
fix code
No edit summary
 
(14 intermediate revisions by 12 users not shown)
Line 1:
{{Documentation subpage}}
{{High-use}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[</nowiki>[[Wikipedia:Wikidata]]<nowiki>]]) -->
{{lua|Module:Check for unknown parameters|Module:Redirect}}
{{hatnote|[[Template:Territory topics]] and [[Template:Region topics]] redirect here.}}
<div style="padding-bottom:1.5em;">
<!-----Navbox masquerading as empty version of Country topics template:----->
Line 21:
* (Bibliography)
 
* <span style="font-weight:bold;">'''(<!--{{icon|BookCategory}} -->BookCategory)'''
* '''(<!--{{icon|CategoryPortal}} -->CategoryPortal)'''
* (<!--[[File:Commons-logo.svg|15x15px|link=|alt=]] -->Commons)
* (<!--{{icon|Portal}} -->Portal)
* (<!--{{icon|WikiProject}} -->WikiProject)</span>
}}
</div>
Line 138 ⟶ 135:
|belowstyle =
|_nobelow =
|_commonslink =
|addtobelow =
}}
Line 151 ⟶ 147:
----------->
:* Five fundamental topic areas: History, Geography, Politics, Economy, Culture;
:* A line below the template's main body (the "below" line) that carries a link or links to a [[Wikibooks|Wikibook]], Wikipedia category, [[Wikimedia Commons|Commons]] category, index article, outline article, or [[Wikipedia:Portal|portal]] and/or [[Wikipedia:WikiProject|WikiProject]].
Although standardized, much of the above can be customized via the template's parameters.
 
===Parameters===
{{hidden begin
|titlestyle = font-size:115%;font-weight:normal;background:palegreen;
|title = {{resize|135%|Parameters and descriptions}}
|bodystyle = padding-top:0.75em;font-size:105%;
}}
Most common parameters shown in '''''bold italics'''''.
 
{| class="wikitable sortable" style="cellpadding:0.1em;text-align:center;line-height:1.3em;font-size:95%;"
!style="width:6.5em;line-height:1.2em;text-align:center;font-size:75%;font-weight:normal;"| Order of<br/>appearance<br/>in template<br/>code
! Parameter name
Line 168 ⟶ 159:
|-
| 1 || ''template_name''
|align="left"| Occasionally, the template's name won't necessarily match its title, e.g. the name "Burma (Myanmar) topics" for a template whose title is "Burma topics". In these cases, use ''template_name'' to ensure the "<span style="font-variant:smallcaps;fontsmall-size:85%caps;">"V•T•E"v•t•e</span>" links on the lefthand side of the template's titlebar operate correctly.
: <code><nowiki>&nbsp;|template_name = Burma (Myanmar) topics</nowiki><br/><nowiki>(|country = Burma)</nowiki></code>
|-
Line 198 ⟶ 189:
|-
| 8 || ''flagsize''<br/>''flagvariant''
|align="left"| Use to alter the size or variant of the flag icon from the default settings (see {{tl|flagiconflag icon}}).
|-
| 9 || ''titlename''
Line 271 ⟶ 262:
|-
| 24 || ''custom5''<br/>''list5''
|align="left"| For a custom-named (''custom5'') list (''list5'') after the list of culture/society/etc. topics (if provided) and before anything else.
|-
| 25 || ''custom6''<br/>''list6''
Line 287 ⟶ 278:
|-
----------->
| 28 || ''_commonslink''
|align="left"| Set to "yes" (without speechmarks) to include a link in the "below" line to the [[Wikimedia Commons|Commons]] category with the same name as the place. This assumes that such a category exists.
: <code><nowiki>|_commonslink = yes</nowiki></code>
|-
<!----------
| || ''addtobelow''
Line 301 ⟶ 288:
|colspan="3" style="padding-left:0.5em;text-align:left;"| <sup>a</sup> Using e.g. <code><nowiki>{{</nowiki>[[:Template:Navbox|Navbox]]<nowiki> |child |groupstyle=padding-left:0.5em;padding-right:0.5em;font-weight:normal; ...}}</nowiki></code>.
|}
{{hidden end}}
 
== SeeTracking alsocategory ==
* [[:Category:{{clc|Pages using country topics with unknown parameters]] (via [[Module:Check for unknown parameters]])}}
; Hidden tracking/maintenance categories
* [[:Category:Pages using country topics with unknown parameters]] (via [[Module:Check for unknown parameters]])
 
{{Continent-based templates|state=expanded}}
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandboxSandbox other| |
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Configurable area-topic templates]]