Difference between revisions of "Template:Infobox French constituency"

From blackwiki
Jump to navigation Jump to search
imported>Andrybak
(move documentation to /doc subpage)
imported>Andrybak
(add alias "title" to the parameter "name")
 
Line 1: Line 1:
 
{{Infobox
 
{{Infobox
 
| bodyclass = bordered
 
| bodyclass = bordered
| title    = {{{name|}}}
+
| title    = {{{title|{{{name|}}}}}}
 
| subheaderstyle = background: #ADDFAD; padding-left:5px; padding-top:5px;
 
| subheaderstyle = background: #ADDFAD; padding-left:5px; padding-top:5px;
| subheader = [[Image:Flag of France.svg|40px|border|left]] [[National Assembly (France)|French National Assembly]] <br /> [[Constituency (France)|constituency]]
+
| subheader = [[File:Flag of France.svg|40px|border|left]] [[National Assembly (France)|French National Assembly]] <br /> [[Constituency (France)|constituency]]
 
| image    = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|alt={{{image_alt|}}}}}
 
| image    = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|alt={{{image_alt|}}}}}
 
| caption  = {{{caption|}}}
 
| caption  = {{{caption|}}}

Latest revision as of 16:56, 23 May 2020

Flag of France.svg
French National Assembly
constituency
Script error: No such module "If empty".
 {{{member}}}
{{{member-party}}}

[[Category:Infobox templates|Template:Remove first word]]

Template documentation[view] [edit] [history] [purge]

Usage

{{Infobox French constituency
| title =
| image =
| caption = 
| map =
| caption2 = 
| member-type =
| member =
| member-party =
| party-colour =
| department =
| cantons =
| voters =
}}

Parameters

Mandatory

|title=
what appears at the top of the infobox.
|member=, |member-party=
Wikilinks to the parliament member and their party.

Optional

|member-type=
Type of the parliament member, for example "Deputy". Default is "Member".
|image=, |image_size=, |image_alt=, |caption=
Filename, size, alt text, and caption for the image.
|map= |map_size=, |map_alt=, |caption2=
Filename, size, alt text, and caption for the constituency's map. See commons:Category:Election maps of departments of France.
|party-colour=
Party's colour abbreviated designation according to Template:French politics/party colours, or custom value.
|department= and |cantons=
Divisions of France.
|voters=
Number of voters in the constituency.