Template:Politics sidebar title: Difference between revisions
From Chalo Chatu, Zambia online encyclopedia
m (1 revision imported) |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><div class="adr" style=" | <includeonly><div class="adr" style="font-size:smaller">{{#if:{{{country|}}}|<span class="fn org country-name">[[{{{country}}}]]</span>|{{#if:{{{region|}}}|<span class="fn org">[[{{{region}}}]]</span>}} }} | ||
</div>{{#if:{{{image|}}} | </div></th></tr>{{#if:{{{image|}}} | ||
|{{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{size|}}}|sizedefault=frameless|alt={{{alt|}}}|border={{#switch:{{{border|}}}|y|yes|Y|Yes|YES=yes|#default=no}}}} | |<tr><th>{{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{size|}}}|sizedefault=frameless|alt={{{alt|}}}|border={{#switch:{{{border|}}}|y|yes|Y|Yes|YES=yes|#default=no}}}}</th></tr> | ||
}}<style="border-bottom: #aaa {{#if:{{{separator-width|}}}|{{{separator-width}}}|1px}} solid">This article is part of a series on the<br /><span style="font-weight:bold">[[Politics of {{{link|{{{title}}}}}}|politics and government of<br/>{{{title}}}]]</span></includeonly><noinclude> | }}<tr><th style="border-bottom: #aaa {{#if:{{{separator-width|}}}|{{{separator-width}}}|1px}} solid"><span class="nowrap" style="font-weight:normal">This article is part of a series on the</span><br /><span style="font-weight:bold">[[Politics of {{{link|{{{title}}}}}}|politics and government of<br />{{{title}}}]]</span></includeonly><noinclude> | ||
{{documentation|content= | {{documentation|content= | ||
This template is used to generate the above/title section in a politics sidebar | This template is used to generate the above/title section in a politics sidebar | ||
Line 12: | Line 12: | ||
| bodyclass = vcard | | bodyclass = vcard | ||
| liststyle = text-align: left | | liststyle = text-align: left | ||
| title = {{politics sidebar title | | title = {{politics sidebar title | ||
| country = <!-- country --> | | country = <!-- country --> | ||
Line 22: | Line 23: | ||
| list1 = | | list1 = | ||
| below = | | below = {{politics sidebar below|<!-- country or the country -->}} | ||
}} | }} | ||
</pre> | </pre> |
Latest revision as of 14:31, 24 August 2018
<templatestyles src="Module:Documentation/styles.css"></templatestyles>
Template documentation
This template is used to generate the above/title section in a politics sidebar
Usage
{{sidebar with collapsible lists | name = {{subst:PAGENAME}} | wraplinks = true | bodyclass = vcard | liststyle = text-align: left | title = {{politics sidebar title | country = <!-- country --> | title = <!-- country or the country --> | image = Coat of arms of the Netherlands.svg | alt = }} | list1title = | list1 = | below = {{politics sidebar below|<!-- country or the country -->}} }}
Parameters
- country
- the name of the country, it should correspond to the title of the article about the country
- Example:
|country=Netherlands
- Example:
- title
- the name of the country or region corresponding to the article named "Politics of title"
- Example:
|title=the Netherlands
- Example:
- image
- the file name of a representative image
- Example:
|image=Coat of arms of the Netherlands.svg
- Example:
- size
- the width of the image (default is frameless)
- Example:
|size=150px
- Example:
- alt
- alternative text for the image
- Example:
|alt=The coat of arms for the Netherlands depicting ...
- Example:
- border
- add a border around the image
- Example:
|border=y
- Example:
Regions that are not countries
- region
- the name of the region, it should correspond to the title of the article about the region
- Example:
|region=North Dakota
- Example:
Modifying the linking
- link
- by default, the title parameter is used for both the link text and the link. to use a different value for the link, set link to a value which corresponds to the article named "Politics of link"
Removing the separator
- separator-width
- by default, the horizontal rule at the bottom of the box has width 1px, to remove the separator, set
|separator-width=0
.