Content deleted Content added
m more accurate titlebar |
No edit summary |
||
(40 intermediate revisions by 17 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 6 ⟶ 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)}}
|group1=History |list1=<nowiki>{{{history}}}</nowiki>
|group2=Geography |list2=<nowiki>{{{geography}}}</nowiki>
|group3=Politics |list3=<nowiki>{{{politics}}}</nowiki>
|group4=Economy |list4=<nowiki>{{{economy}}}</nowiki>
|group5=Culture |list5=<nowiki>{{{culture}}}</nowiki>
|below =
* (Outline)
* (Index)
* (Bibliography)
* '''(<!--{{icon|Category}} -->Category)'''
* '''(<!--{{icon|Portal}} -->Portal)'''
}}
</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]]
===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 42 ⟶ 43:
* [[(second history link)]]
* [[(third history link)]]
<!--(etc.)-->
|geography = <!--Usually alphabetical:-->
Line 48 ⟶ 49:
* [[(second geography link)]]
* [[(third geography link)]]
<!--(etc.)-->
|
* [[(first
* [[(second
* [[(third
<!--(etc.)-->
|economy = <!--Usually alphabetical:-->
Line 60 ⟶ 61:
* [[(second economy link)]]
* [[(third economy link)]]
<!--(etc.)-->
|culture = <!--Usually alphabetical:-->
Line 66 ⟶ 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";
<!----------
:* A line between the template's titlebar and main body (the "above" line) that carries a link or links to an outline and/or index article;
----------->
:* 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 Wikipedia category, index article, outline article, or [[Wikipedia:Portal|portal]].
Although standardized, much of the above can be customized via the template's parameters.
==
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 92 ⟶ 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 114 ⟶ 181:
|-
| 6 || ''flagname''
|align="left"| Use to provide the name of the place's flag if it doesn't match the default "Flag of
: <code><nowiki>|flagname = Flag of the Bahamas</nowiki></code>
|-
Line 122 ⟶ 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 142 ⟶ 209:
|align="left"| Optional further CSS styling for the template's "above" line (between the template's titlebar and main body).
|-
<!----------
| || ''_noabove''
|align="left"| Set to anything (usually "yes") to suppress the appearance of the "above" line.
|-
----------->
| 14 || ''above''
|align="left"| To add an "above" line (as with a standard Navbox).
: <code><nowiki>|above = Capital: [[Hefei]]</nowiki></code>
|-
<!----------
| || ''addtoabove''
|align="left"| To add (further) links to the "above" line, especially if there's only one or two articles on a particular topic area.
: <code><nowiki>|addtoabove =</nowiki><br/><!--
--
--
----------->
|-
|
|align="left"| For a list or lists<sup>a</sup> of links addressing the place's history. See [[Special:WhatLinksHere/Template:Country topics|where this template occurs in Wikipedia]] for examples.
|-
|
|align="left"| For a custom-named (''custom1'') list (''list1'') after the list of history topics (if provided) and before anything else.
|-
|
|align="left"| For a list or lists<sup>a</sup> of links addressing the place's geography. See [[Special:WhatLinksHere/Template:Country topics|where this template occurs in Wikipedia]] for examples.<br/>''subdivisions'' can be used for a separate list of topics about the place's [[administrative division]]s. If, for the name "Subdivisions" preceding this list, the link "Administrative divisions of [
: <code><nowiki>|subdivisions_link = Bhutan#Administrative divisions</nowiki></code>
|-
|
|align="left"| For a custom-named (''custom2'') list (''list2'') after the list of geography (and/or subdivision) topics (if provided) and before anything else.
|-
|
|align="left"| For a list or lists<sup>a</sup> of links addressing the place's
: <code><nowiki>|
''
|-
|
|align="left"| For a custom-named (''custom3'') list (''list3'') after the list of
|-
|
|align="left"| For a list or lists<sup>a</sup> of links addressing the place's economy. See [[Special:WhatLinksHere/Template:Country topics|where this template occurs in Wikipedia]] for examples.<br/>''infrastructure'' and ''transport'' are provided if separate lists of topics about the place's [[infrastructure]] and/or transport are desired.
|-
|
|align="left"| For a custom-named (''custom4'') list (''list4'') after the list of economy (and/or infrastructure) topics (if provided) and before anything else.
|-
|
|align="left"| For a list or lists<sup>a</sup> of links addressing the place's culture. See [[Special:WhatLinksHere/Template:Country topics|where this template occurs in Wikipedia]] for examples.<br/>''society'', ''demographics'', ''religion'' and ''symbols'' are provided if a separate list or lists of topics about the place's social structure, demographics, religion and/or symbols are desired.<br/>If ''society'' is used, then, if the place has a society category at Wikipedia that's named using a preceding adjective (e.g. "Category:Italian society"), ''adjective'' can be used to link the group's name "Society" to that category.
: <code><nowiki>|adjective = Italian</nowiki></code>{{nbsp|5}}{{smaller|(producing the link <nowiki>[[Category:Italian society|Society]]</nowiki>)}}
Alternatively, ''society_link'' can be used to generate a relevant link, e.g.
: <code><nowiki>|society_link = Social history of England</nowiki></code>{{nbsp|5}}{{smaller|(producing the link <nowiki>[[Social history of England|Society]]</nowiki>)}}
Similarly, if ''symbols'' is used and the template is unable to link its group name "Symbols"
: <code><nowiki>|symbols_link = Symbols of the United Kingdom, the Channel Islands and the Isle of Man#Bailiwick of Guernsey</nowiki></code>
|-
|
|align="left"| For a custom-named (''custom5'') list (''list5'') after the list of culture/society/etc. topics (if provided) and before anything else.
|-
|
|align="left"| For a custom-named (''custom6'') list (''list6'') after custom ''list5'' (if provided) and before custom ''list7'' (if provided) or the template's "below" line (if not suppressed).
|-
|
|align="left"| For a custom-named (''custom7'') list (''list7'') after custom ''list6'' (if provided) and before the template's "below" line (if not suppressed).
|-
|
|align="left"| Optional further CSS styling for the template's "below" line (below the template's main body).
|-
<!----------
| || ''_nobelow''
|align="left"| Set to anything (usually "yes") to suppress the appearance of the "below" line.
|-
----------->
<!----------
| || ''addtobelow''
|align="left"| To add (further) links to the "below" line that aren't already handled by the template<!-- but (ideally) follow the same pattern of <nowiki>"[icon] [[link]]"</nowiki>-- .
: <code><nowiki>|addtobelow =</nowiki><br/><!--
--
--
----------->
|-
|colspan="3" style="padding-left:0.5em;text-align:left;"| <sup>a</sup> Using e.g. <code><nowiki>{{</nowiki>[[:Template:Navbox|Navbox]]<nowiki> |
|}
== Tracking category ==
* {{clc|Pages using country topics with unknown parameters}}
{{Continent-based templates|state=expanded}}
<includeonly>{{Sandbox other||
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Configurable area-topic templates]]
[[Category:Navigational box wrapper templates]]
[[Category:Templates that add a tracking category]]
}}</includeonly>
|