Difference between revisions of "Template:Infobox French constituency/sandbox"
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 = [[ | + | | 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|}}} | ||
| − | | | + | | 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|}}}}}"> </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|}}}}}"> </td><td style="border:none; padding-left:0.2em;">{{br separated entries|{{{member}}}|{{{member-party}}}}}</td></tr></table> | ||
| − | + | ||
| − | |||
| label2 = Department | | label2 = Department | ||
| data2 = {{{Department|{{{department|}}}}}} | | data2 = {{{Department|{{{department|}}}}}} | ||
| Line 18: | Line 17: | ||
| data3 = {{{Canton|{{{canton|}}}}}} | | data3 = {{{Canton|{{{canton|}}}}}} | ||
| − | | label4 = | + | | label4 = Registered voters |
| data4 = {{{voters|{{{Voters|}}}}}} | | data4 = {{{voters|{{{Voters|}}}}}} | ||
}}<noinclude> | }}<noinclude> | ||
| − | {{documentation | + | {{documentation}} |
| − | + | </noinclude> | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | }} | ||
| − | |||
| − | |||
Revision as of 17:37, 23 May 2020
| French National Assembly constituency | |||
| Script error: No such module "If empty". |
| ||
|---|---|---|---|
| 50px | This is the template sandbox page for Template:Infobox French constituency (diff). See also the companion subpage for test cases. |
File:Test Template Info-Icon - Version (2).svg Template documentation[view] [edit] [history] [purge]
Contents
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.
| The above documentation is transcluded from Template:Infobox French constituency/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |