Content deleted Content added
Funandtrvl (talk | contribs) 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}}
<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)
*
* '''(<!--{{icon|
}}
</div>
==Usage==
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 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 <code>{{((}}Territory topics</code> followed by <code>{{!}}territory = ''Name''</code>; otherwise, <code>{{((}}Region topics</code> followed by <code>{{!}}region = ''Name''</code> .
<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
<pre style="overflow:auto;">
{{Country topics
|country =
|state =
|border =
|basestyle =
|titlename =
|titleclass =
|_notopicsword =
|prefix =
|image =
|imagestyle =
|above =
|abovestyle =
|custom1 =
|list1 =
|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>
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
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="
!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:
: <code><nowiki> |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|
|-
| 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:
|-
----------->
<!----------
| || ''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>.
|}
==
* {{clc|Pages using country topics with unknown parameters}}
{{Continent-based templates|state=expanded}}
<includeonly>{{
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Configurable area-topic templates]]
|