Difference between revisions of "Template:Infobox French constituency/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
m
imported>Andrybak
m (sync with live version)
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|}}}
| map   = {{#invoke:InfoboxImage|InfoboxImage|image={{{map|}}}|size={{{map_size|}}}|alt={{{map_alt|}}}}}
+
| image2   = {{#invoke:InfoboxImage|InfoboxImage|image={{{map|}}}|size={{{map_size|}}}|alt={{{map_alt|}}}}}
 
| caption2  = {{{caption2|}}}
 
| caption2  = {{{caption2|}}}
 
| label1    = {{if empty|{{{member-type|}}}|Member}}
 
| label1    = {{if empty|{{{member-type|}}}|Member}}
 
| data1    = <table style="width:100%; margin:0; border-spacing:0;"><tr><td style="border:none;background-color:{{French politics/party colours|{{{party-colour|}}}}}">&nbsp;</td><td style="border:none; padding-left:0.2em;">{{br separated entries|{{{member}}}|{{{member-party}}}}}</td></tr></table>
 
| data1    = <table style="width:100%; margin:0; border-spacing:0;"><tr><td style="border:none;background-color:{{French politics/party colours|{{{party-colour|}}}}}">&nbsp;</td><td style="border:none; padding-left:0.2em;">{{br separated entries|{{{member}}}|{{{member-party}}}}}</td></tr></table>
| pop    = {{{pop|}}}
+
 
| pop-year = {{pop|year}}}
 
 
| label2 = Department
 
| label2 = Department
 
| data2 = {{{Department|{{{department|}}}}}}
 
| data2 = {{{Department|{{{department|}}}}}}
Line 18: Line 17:
 
| data3 = {{{Canton|{{{canton|}}}}}}
 
| data3 = {{{Canton|{{{canton|}}}}}}
  
| label4 = Voters
+
| label4 = Registered voters
 
| data4 = {{{voters|{{{Voters|}}}}}}
 
| data4 = {{{voters|{{{Voters|}}}}}}
  
 
}}<noinclude>
 
}}<noinclude>
{{documentation|content=
+
{{documentation}}
== Usage ==
+
</noinclude>
<pre>{{Infobox French constituency
 
| name =
 
| image =
 
| caption =
 
| image2 =
 
| caption2 =
 
| map =
 
| member-type =
 
| member =
 
| member-party =
 
| party-colour =
 
| department =
 
| cantons =
 
| voters =
 
| pop =
 
| pop-year =
 
}}</pre>
 
[[Category:Constituency templates]]
 
}}</noinclude>
 

Revision as of 17:37, 23 May 2020

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

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.