Template:Country topics/doc: Difference between revisions

Content deleted Content added
add hatnote
No edit summary
 
(16 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 8:
|name = {{PAGENAME}}
|bodyclass = hlist
|state=expanded
|title = <!--({{raise|1px|[[File:Sin bandera.svg|21px|alt=|link=]]}}) -->''Name'' [topics]
|image = [[File:Sin escudo.svg|80px|alt=|link=]]<br/>{{small|(optional image)}}
Line 20 ⟶ 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>
 
==Usage==
== Quick overview and example syntax ==
 
Use this template to create a "''Name'' topics" template for the country{{\}}territory{{\}}region called ''Name''.
 
To see how, it's probably easiest to look at one or more of the templates in one of the subcategories of [[:Category:Country and territory topics templates]]{{spaced ndash}} for instance, {{tl|Antigua and Barbuda topics}} in [[:Category:Caribbean country and territory topics templates]].
 
===Syntax===
Below, however, is a basic syntax (click {{smaller|[show]}} to reveal). If the area involved isn't a country, the template's name and first parameter should be renamed accordingly, i.e. to&nbsp; <code>{{((}}Territory topics</code>&nbsp; followed by <code>{{!}}territory = ''Name''</code>&nbsp; otherwise&nbsp; <code>{{((}}Region topics</code>&nbsp; followed by <code>{{!}}region = ''Name''</code>&nbsp;.
Below is a basic syntax. If the area involved isn't a country, the template's name and first parameter should be renamed accordingly, i.e. to&nbsp; <code>{{((}}Territory topics</code>&nbsp; followed by <code>{{!}}territory = ''Name''</code>;&nbsp; otherwise,&nbsp; <code>{{((}}Region topics</code>&nbsp; followed by <code>{{!}}region = ''Name''</code>&nbsp;.
 
===Basic syntax===
<pre style="overflow:auto;">
{{Country topics
|country = <!--Country's name (the title of the Wikipedia article on that country)-->
|adjective = <!--demonym-->
 
|history = <!--Usually chronological:-->
Line 45 ⟶ 43:
* [[(second history link)]]
* [[(third history link)]]
<!--(etc.)-->
 
|geography = <!--Usually alphabetical:-->
Line 51 ⟶ 49:
* [[(second geography link)]]
* [[(third geography link)]]
<!--(etc.)-->
 
|politics = <!--Usually alphabetical:-->
Line 57 ⟶ 55:
* [[(second politics link)]]
* [[(third politics link)]]
<!--(etc.)-->
 
|economy = <!--Usually alphabetical:-->
Line 63 ⟶ 61:
* [[(second economy link)]]
* [[(third economy link)]]
<!--(etc.)-->
 
|culture = <!--Usually alphabetical:-->
Line 69 ⟶ 67:
* [[(second culture link)]]
* [[(third culture link)]]
<!--(etc.)-->
}}
</pre>
 
;With added fields
<div style="padding-bottom:0.5em;">
<pre style="overflow:auto;">
It's possible to add, remove or amend various features of the template (e.g. suppress the appearance of a flag in the titlebar). What and how is described in the rest of the documentation.
{{Country topics
</div>
|country =
|state =
|border =
|basestyle =
|titlename =
|titleclass =
|_notopicsword =
|prefix =
|image =
|imagestyle =
 
|above =
<!--------------- Rationale and parameters ---------------->
|abovestyle =
{{hidden begin
|custom1 =
|titlestyle = font-size:115%;font-weight:normal;background:palegreen;
|list1 =
|title = {{resize|135%|Rationale and parameters}}
 
|bodystyle = padding-top:0.75em;font-size:105%;
|history =
|custom2 =
|list2 =
 
|geography =
|subdivisions =
|subdivisions_link =
|custom3 =
|list3 =
 
|politics =
|politics_link =
|governance =
|governance_link =
|government =
|government_link =
|military =
|military_link =
|custom4 =
|list4 =
 
|economy =
|infrastructure =
|transport =
|custom5 =
|list5 =
 
|society =
|society_link =
|adjective =
|culture =
|demographics =
|religion =
|symbols =
|symbols_link =
|custom6 =
|list6 =
|custom7 =
|list7 =
|custom8 =
|list8 =
 
|below =
|belowstyle =
|_nobelow =
|addtobelow =
}}
</pre>
This is a metatemplate for templates in categories such as [[:Category:Country and territory topics templates]]. It provides the layout that appears to have evolved for the majority of these templates, viz.
 
It's possible to add, remove or amend various features of the template (e.g. suppress the appearance of a flag in the titlebar). What and how is described in the rest of the documentation.
 
Because this is a metatemplate for templates in categories such as [[:Category:Country and territory topics templates]], it provides the layout that appears to have evolved for the majority of these templates:
:* A titlebar featuring a flag icon followed by a country or area's name followed by the word "topics";
<!----------
Line 89 ⟶ 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.
 
Line 95 ⟶ 153:
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 101 ⟶ 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 131 ⟶ 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 204 ⟶ 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 220 ⟶ 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 234 ⟶ 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 ==
* {{clc|Pages using country topics with 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]]