Difference between revisions of "Template:Council member"

From IFRR
Jump to: navigation, search
 
Line 1: Line 1:
 
<includeonly>|-
 
<includeonly>|-
 
| {{{title}}} || {{{name}}} {{#if: {{{namea|}}} | <br/>{{{namea}}}}} || {{party|{{{party}}}}} {{#if: {{{partya|}}} | <br/>{{{partya}}}}} {{#if: {{{partyb|}}} | <br/>{{{partyb}}}}} || {{{next}}} || {{{phone|}}} {{#if: {{{email|}}} | <br/>{{{email}}}}} {{{contact|}}} || {{#if: {{{2019margin|}}} | {{#ifeq: {{{2019margin}}} | X | X | {{#ifeq: {{{2019margin}}} | UNOPPOSED | {{UNOPPOSED|{{{party}}}}} | {{#ifeq: {{{2019margin}}} | ATLARGE | Won with {{{2019total}}}% | {{#ifexpr: {{{2019margin}}} > 10 | {{{2019margin}}}% ({{{2019total}}}%) | '''{{{2019margin}}}% ({{{2019total}}}%''') }} }} }} }} }} {{#if: {{{2019note|}}}| <small><sup>{{{2019note}}}</sup></small> }} {{#if: {{{2019a|}}} | <br/>{{{2019a}}}}} {{#if: {{{2019b|}}} | <br/>{{{2019b}}}}} {{#if: {{{2019c|}}} | <br/>{{{2019c}}}}} {{#if: {{{2019d|}}} | <br/>{{{2019d}}}}} {{#if: {{{2019e|}}} | <br/>{{{2019e}}}}} {{#if: {{{2019note1|}}} | <hr/> <small><sup>1</sup> {{{2019note1}}} {{#if: {{{2019note2|}}} | <br/><sup>2</sup> {{{2019note2}}} {{#if: {{{2019note3|}}} | <br/><sup>3</sup> {{{2019note3}}} }} }} </small> }}
 
| {{{title}}} || {{{name}}} {{#if: {{{namea|}}} | <br/>{{{namea}}}}} || {{party|{{{party}}}}} {{#if: {{{partya|}}} | <br/>{{{partya}}}}} {{#if: {{{partyb|}}} | <br/>{{{partyb}}}}} || {{{next}}} || {{{phone|}}} {{#if: {{{email|}}} | <br/>{{{email}}}}} {{{contact|}}} || {{#if: {{{2019margin|}}} | {{#ifeq: {{{2019margin}}} | X | X | {{#ifeq: {{{2019margin}}} | UNOPPOSED | {{UNOPPOSED|{{{party}}}}} | {{#ifeq: {{{2019margin}}} | ATLARGE | Won with {{{2019total}}}% | {{#ifexpr: {{{2019margin}}} > 10 | {{{2019margin}}}% ({{{2019total}}}%) | '''{{{2019margin}}}% ({{{2019total}}}%''') }} }} }} }} }} {{#if: {{{2019note|}}}| <small><sup>{{{2019note}}}</sup></small> }} {{#if: {{{2019a|}}} | <br/>{{{2019a}}}}} {{#if: {{{2019b|}}} | <br/>{{{2019b}}}}} {{#if: {{{2019c|}}} | <br/>{{{2019c}}}}} {{#if: {{{2019d|}}} | <br/>{{{2019d}}}}} {{#if: {{{2019e|}}} | <br/>{{{2019e}}}}} {{#if: {{{2019note1|}}} | <hr/> <small><sup>1</sup> {{{2019note1}}} {{#if: {{{2019note2|}}} | <br/><sup>2</sup> {{{2019note2}}} {{#if: {{{2019note3|}}} | <br/><sup>3</sup> {{{2019note3}}} }} }} </small> }}
| {{#if: {{{2018margin|}}} | {{#ifeq: {{{2018margin}}} | X | X | {{#ifeq: {{{2018margin}}} | UNOPPOSED | {{UNOPPOSED|{{{party}}}}} | {{#ifeq: {{{2018margin}}} | ATLARGE | Won with {{{2018total}}}% | {{#ifexpr: {{{2018margin}}} > 10 | {{{2018margin}}}% ({{{2018total}}}%) | '''{{{2018margin}}}% ({{{2018total}}}%''') }} }} }} }} }} {{#if: {{{2018note|}}}| <small><sup>{{{2017note}}}</sup></small> }} {{#if: {{{2018a|}}} | <br/>{{{2018a}}}}} {{#if: {{{2018b|}}} | <br/>{{{2018b}}}}} {{#if: {{{2018c|}}} | <br/>{{{2018c}}}}} {{#if: {{{2018d|}}} | <br/>{{{2018d}}}}} {{#if: {{{2018e|}}} | <br/>{{{2018e}}}}} {{#if: {{{2018note1|}}} | <hr/> <small><sup>1</sup> {{{2018note1}}} {{#if: {{{2018note2|}}} | <br/><sup>2</sup> {{{2018note2}}} {{#if: {{{2018note3|}}} | <br/><sup>3</sup> {{{2018note3}}} }} }} </small> }}
+
| {{#if: {{{2018margin|}}} | {{#ifeq: {{{2018margin}}} | X | X | {{#ifeq: {{{2018margin}}} | UNOPPOSED | {{UNOPPOSED|{{{party}}}}} | {{#ifeq: {{{2018margin}}} | ATLARGE | Won with {{{2018total}}}% | {{#ifexpr: {{{2018margin}}} > 10 | {{{2018margin}}}% ({{{2018total}}}%) | '''{{{2018margin}}}% ({{{2018total}}}%''') }} }} }} }} }} {{#if: {{{2018note|}}}| <small><sup>{{{2017note}}}</sup></small> }} {{#if: {{{2018a|}}} | <br/>{{{2018a}}}}} {{#if: {{{2018b|}}} | <br/>{{{2018b}}}}} {{#if: {{{2018c|}}} | <br/>{{{2018c}}}}} {{#if: {{{2018d|}}} | <br/>{{{2018d}}}}} {{#if: {{{2018e|}}} | <br/>{{{2018e}}}}} {{#if: {{{2018note1|}}} | <hr/> <small><sup>1</sup> {{{2018note1}}} {{#if: {{{2018note2|}}} | <br/><sup>2</sup> {{{2018note2}}} {{#if: {{{2018note3|}}} | <br/><sup>3</sup> {{{2018note3}}} }} }} </small> }} | {{#if: {{{2017margin|}}} | {{#ifeq: {{{2017margin}}} | X | X | {{#ifeq: {{{2017margin}}} | UNOPPOSED | {{UNOPPOSED|{{{party}}}}} | {{#ifeq: {{{2017margin}}} | ATLARGE | Won with {{{2017total}}}% | {{#ifexpr: {{{2017margin}}} > 10 | {{{2017margin}}}% ({{{2017total}}}%) | '''{{{2017margin}}}% ({{{2017total}}}%''') }} }} }} }} }} {{#if: {{{2017note|}}}| <small><sup>{{{2017note}}}</sup></small> }} {{#if: {{{2017a|}}} | <br/>{{{2017a}}}}} {{#if: {{{2017b|}}} | <br/>{{{2017b}}}}} {{#if: {{{2017c|}}} | <br/>{{{2017c}}}}} {{#if: {{{2017d|}}} | <br/>{{{2017d}}}}} {{#if: {{{2017e|}}} | <br/>{{{2017e}}}}} {{#if: {{{2017note1|}}} | <hr/> <small><sup>1</sup> {{{2017note1}}} {{#if: {{{2017note2|}}} | <br/><sup>2</sup> {{{2017note2}}} {{#if: {{{2017note3|}}} | <br/><sup>3</sup> {{{2017note3}}} }} }} </small> }}
| {{#if: {{{2017margin|}}} | {{#ifeq: {{{2017margin}}} | X | X | {{#ifeq: {{{2017margin}}} | UNOPPOSED | {{UNOPPOSED|{{{party}}}}} | {{#ifeq: {{{2017margin}}} | ATLARGE | Won with {{{2017total}}}% | {{#ifexpr: {{{2017margin}}} > 10 | {{{2017margin}}}% ({{{2017total}}}%) | '''{{{2017margin}}}% ({{{2017total}}}%''') }} }} }} }} }} {{#if: {{{2017note|}}}| <small><sup>{{{2017note}}}</sup></small> }} {{#if: {{{2017a|}}} | <br/>{{{2017a}}}}} {{#if: {{{2017b|}}} | <br/>{{{2017b}}}}} {{#if: {{{2017c|}}} | <br/>{{{2017c}}}}} {{#if: {{{2017d|}}} | <br/>{{{2017d}}}}} {{#if: {{{2017e|}}} | <br/>{{{2017e}}}}} {{#if: {{{2017note1|}}} | <hr/> <small><sup>1</sup> {{{2017note1}}} {{#if: {{{2017note2|}}} | <br/><sup>2</sup> {{{2017note2}}} {{#if: {{{2017note3|}}} | <br/><sup>3</sup> {{{2017note3}}} }} }} </small> }}
+
 
| {{#if: {{{2016margin|}}} | {{#ifeq: {{{2016margin}}} | X | X | {{#ifeq: {{{2016margin}}} | UNOPPOSED | {{UNOPPOSED|{{{party}}}}} | {{#ifeq: {{{2016margin}}} | ATLARGE | Won with {{{2016total}}}% | {{#ifexpr: {{{2016margin}}} > 10 | {{{2016margin}}}% ({{{2016total}}}%) | '''{{{2016margin}}}% ({{{2016total}}}%''') }} }} }} }} }} {{#if: {{{2016note|}}}| <small><sup>{{{2016note}}}</sup></small> }} {{#if: {{{2016a|}}} | <br/>{{{2016a}}}}} {{#if: {{{2016b|}}} | <br/>{{{2016b}}}}} {{#if: {{{2016c|}}} | <br/>{{{2016c}}}}} {{#if: {{{2016d|}}} | <br/>{{{2016d}}}}} {{#if: {{{2016e|}}} | <br/>{{{2016e}}}}} {{#if: {{{2016note1|}}} | <hr/> <small><sup>1</sup> {{{2016note1}}} {{#if: {{{2016note2|}}} | <br/><sup>2</sup> {{{2016note2}}} {{#if: {{{2016note3|}}} | <br/><sup>3</sup> {{{2016note3}}} }} }} </small> }}  |  {{#if: {{{2015margin|}}} | {{#ifeq: {{{2015margin}}} | X | X | {{#ifeq: {{{2015margin}}} | UNOPPOSED | {{UNOPPOSED|{{{party}}}}} | {{#ifeq: {{{2015margin}}} | ATLARGE | Won with {{{2015total}}}% | {{#ifexpr: {{{2015margin}}} > 10 | {{{2015margin}}}% ({{{2015total}}}%) | '''{{{2015margin}}}% ({{{2015total}}}%''') }} }} }} }} }} {{#if: {{{2015note|}}}| <small><sup>{{{2015note}}}</sup></small> }} {{#if: {{{2015a|}}} | <br/>{{{2015a}}}}} {{#if: {{{2015b|}}} | <br/>{{{2015b}}}}} {{#if: {{{2015c|}}} | <br/>{{{2015c}}}}} {{#if: {{{2015d|}}} | <br/>{{{2015d}}}}} {{#if: {{{2015e|}}} | <br/>{{{2015e}}}}} {{#if: {{{2015note1|}}} | <hr/> <small><sup>1</sup> {{{2015note1}}} {{#if: {{{2015note2|}}} | <br/><sup>2</sup> {{{2015note2}}} {{#if: {{{2015note3|}}} | <br/><sup>3</sup> {{{2015note3}}} }} }} </small> }}
 
| {{#if: {{{2016margin|}}} | {{#ifeq: {{{2016margin}}} | X | X | {{#ifeq: {{{2016margin}}} | UNOPPOSED | {{UNOPPOSED|{{{party}}}}} | {{#ifeq: {{{2016margin}}} | ATLARGE | Won with {{{2016total}}}% | {{#ifexpr: {{{2016margin}}} > 10 | {{{2016margin}}}% ({{{2016total}}}%) | '''{{{2016margin}}}% ({{{2016total}}}%''') }} }} }} }} }} {{#if: {{{2016note|}}}| <small><sup>{{{2016note}}}</sup></small> }} {{#if: {{{2016a|}}} | <br/>{{{2016a}}}}} {{#if: {{{2016b|}}} | <br/>{{{2016b}}}}} {{#if: {{{2016c|}}} | <br/>{{{2016c}}}}} {{#if: {{{2016d|}}} | <br/>{{{2016d}}}}} {{#if: {{{2016e|}}} | <br/>{{{2016e}}}}} {{#if: {{{2016note1|}}} | <hr/> <small><sup>1</sup> {{{2016note1}}} {{#if: {{{2016note2|}}} | <br/><sup>2</sup> {{{2016note2}}} {{#if: {{{2016note3|}}} | <br/><sup>3</sup> {{{2016note3}}} }} }} </small> }}  |  {{#if: {{{2015margin|}}} | {{#ifeq: {{{2015margin}}} | X | X | {{#ifeq: {{{2015margin}}} | UNOPPOSED | {{UNOPPOSED|{{{party}}}}} | {{#ifeq: {{{2015margin}}} | ATLARGE | Won with {{{2015total}}}% | {{#ifexpr: {{{2015margin}}} > 10 | {{{2015margin}}}% ({{{2015total}}}%) | '''{{{2015margin}}}% ({{{2015total}}}%''') }} }} }} }} }} {{#if: {{{2015note|}}}| <small><sup>{{{2015note}}}</sup></small> }} {{#if: {{{2015a|}}} | <br/>{{{2015a}}}}} {{#if: {{{2015b|}}} | <br/>{{{2015b}}}}} {{#if: {{{2015c|}}} | <br/>{{{2015c}}}}} {{#if: {{{2015d|}}} | <br/>{{{2015d}}}}} {{#if: {{{2015e|}}} | <br/>{{{2015e}}}}} {{#if: {{{2015note1|}}} | <hr/> <small><sup>1</sup> {{{2015note1}}} {{#if: {{{2015note2|}}} | <br/><sup>2</sup> {{{2015note2}}} {{#if: {{{2015note3|}}} | <br/><sup>3</sup> {{{2015note3}}} }} }} </small> }}
 
| {{#if: {{{2014margin|}}} | {{#ifeq: {{{2014margin}}} | X | X | {{#ifeq: {{{2014margin}}} | UNOPPOSED | {{UNOPPOSED|{{{party}}}}} | {{#ifeq: {{{2014margin}}} | ATLARGE | Won with {{{2014total}}}% | {{#ifexpr: {{{2014margin}}} > 10 | {{{2014margin}}}% ({{{2014total}}}%) | '''{{{2014margin}}}% ({{{2014total}}}%''') }} }} }} }} }} {{#if: {{{2014note|}}}| <small><sup>{{{2014note}}}</sup></small> }} {{#if: {{{2014a|}}} | <br/>{{{2014a}}}}} {{#if: {{{2014b|}}} | <br/>{{{2014b}}}}} {{#if: {{{2014c|}}} | <br/>{{{2014c}}}}} {{#if: {{{2014d|}}} | <br/>{{{2014d}}}}} {{#if: {{{2014e|}}} | <br/>{{{2014e}}}}} {{#if: {{{2014note1|}}} | <hr/> <small><sup>1</sup> {{{2014note1}}} {{#if: {{{2014note2|}}} | <br/><sup>2</sup> {{{2014note2}}} {{#if: {{{2014note3|}}} | <br/><sup>3</sup> {{{2014note3}}} }} }} </small> }}  {{#if: {{{2013margin|}}} | {{#ifeq: {{{2013margin}}} | X | X | {{#ifeq: {{{2013margin}}} | UNOPPOSED | {{UNOPPOSED|{{{party}}}}} | {{#ifeq: {{{2013margin}}} | ATLARGE | Won with {{{2013total}}}% | {{#ifexpr: {{{2013margin}}} > 10 | {{{2013margin}}}% ({{{2013total}}}%) | '''{{{2013margin}}}% ({{{2013total}}}%''') }} }} }} }} }} {{#if: {{{2013note|}}}| <small><sup>{{{2013note}}}</sup></small> }} {{#if: {{{2013a|}}} | <br/>{{{2013a}}}}} {{#if: {{{2013b|}}} | <br/>{{{2013b}}}}} {{#if: {{{2013c|}}} | <br/>{{{2013c}}}}} {{#if: {{{2013d|}}} | <br/>{{{2013d}}}}} {{#if: {{{2013e|}}} | <br/>{{{2013e}}}}} {{#if: {{{2013note1|}}} | <hr/> <small><sup>1</sup> {{{2013note1}}} {{#if: {{{2013note2|}}} | <br/><sup>2</sup> {{{2013note2}}} {{#if: {{{2013note3|}}} | <br/><sup>3</sup> {{{2013note3}}} }} }} </small> }}
 
| {{#if: {{{2014margin|}}} | {{#ifeq: {{{2014margin}}} | X | X | {{#ifeq: {{{2014margin}}} | UNOPPOSED | {{UNOPPOSED|{{{party}}}}} | {{#ifeq: {{{2014margin}}} | ATLARGE | Won with {{{2014total}}}% | {{#ifexpr: {{{2014margin}}} > 10 | {{{2014margin}}}% ({{{2014total}}}%) | '''{{{2014margin}}}% ({{{2014total}}}%''') }} }} }} }} }} {{#if: {{{2014note|}}}| <small><sup>{{{2014note}}}</sup></small> }} {{#if: {{{2014a|}}} | <br/>{{{2014a}}}}} {{#if: {{{2014b|}}} | <br/>{{{2014b}}}}} {{#if: {{{2014c|}}} | <br/>{{{2014c}}}}} {{#if: {{{2014d|}}} | <br/>{{{2014d}}}}} {{#if: {{{2014e|}}} | <br/>{{{2014e}}}}} {{#if: {{{2014note1|}}} | <hr/> <small><sup>1</sup> {{{2014note1}}} {{#if: {{{2014note2|}}} | <br/><sup>2</sup> {{{2014note2}}} {{#if: {{{2014note3|}}} | <br/><sup>3</sup> {{{2014note3}}} }} }} </small> }}  {{#if: {{{2013margin|}}} | {{#ifeq: {{{2013margin}}} | X | X | {{#ifeq: {{{2013margin}}} | UNOPPOSED | {{UNOPPOSED|{{{party}}}}} | {{#ifeq: {{{2013margin}}} | ATLARGE | Won with {{{2013total}}}% | {{#ifexpr: {{{2013margin}}} > 10 | {{{2013margin}}}% ({{{2013total}}}%) | '''{{{2013margin}}}% ({{{2013total}}}%''') }} }} }} }} }} {{#if: {{{2013note|}}}| <small><sup>{{{2013note}}}</sup></small> }} {{#if: {{{2013a|}}} | <br/>{{{2013a}}}}} {{#if: {{{2013b|}}} | <br/>{{{2013b}}}}} {{#if: {{{2013c|}}} | <br/>{{{2013c}}}}} {{#if: {{{2013d|}}} | <br/>{{{2013d}}}}} {{#if: {{{2013e|}}} | <br/>{{{2013e}}}}} {{#if: {{{2013note1|}}} | <hr/> <small><sup>1</sup> {{{2013note1}}} {{#if: {{{2013note2|}}} | <br/><sup>2</sup> {{{2013note2}}} {{#if: {{{2013note3|}}} | <br/><sup>3</sup> {{{2013note3}}} }} }} </small> }}

Latest revision as of 17:11, 7 April 2019


This template creates a row in a table of city council members with information about a single council member. Probably the easiest way to use it is to copy an existing use, paste it, and modify as appropriate.

Here is an annotated usage (you can copy and paste this if you want). Arbitrary text can be formatted using Wikipedia's markup syntax (see Wikipedia's help), or a few local templates. Of particular use here:

'''text''' displays as text
{{red|text}} displays as text
{{blue|text}} displays as text
{{green|text}} displays as text
{{purple|text}} displays as text
'''{{red|text}}''' displays as text
[http://www.google.com google] displays as google
{{Council member
| title = Mayor                     <!-- Mayor, or Ward n Seat m, or At-Large -->                
| name = Slimey T. Politician
| namea = text                      <!-- OPTIONAL: arbitrary text, appears below name -->
| party = x                         <!-- D for Democrat, R for Republican, U for Unaffiliated, or arbitrary text -->
| partya = text                     <!-- OPTIONAL: arbitrary text, appears below party -->
| partyb = text                     <!-- OPTIONAL: arbitrary text, appears below party -->
| next = 2019                       <!-- Year of next election -->
| phone = nnn.nnn.nnnn
| email = slimey@city.gov
| 2019margin = xx                   <!-- election margin (percentage, no "%"), or UNOPPOSED, or X if did not run in 2015, or ATLARGE for an at-large seat -->
| 2019total = xx                    <!-- total vote percentage (no "%"), omit if did not run in 2015 -->
| 2019a = text                      <!-- OPTIONAL: arbitrary text, e.g. name of an opponent and their vote percentage -->
| 2019b = text                      <!-- OPTIONAL: arbitrary text, please color names to indicate party -->
| 2019c = text                      <!-- OPTIONAL: arbitrary text, use red for R, blue for D, purple for Tea Party -->
| 2019d = text                      <!-- OPTIONAL: arbitrary text -->
| 2019e = text                      <!-- OPTIONAL: arbitrary text -->
| 2019margin = xx                   <!-- election margin (percentage, no "%"), or UNOPPOSED, or X if did not run in 2015, or ATLARGE for an at-large seat -->
| 2019total = xx                    <!-- total vote percentage (no "%"), omit if did not run in 2015 -->
| 2017a = text                      <!-- OPTIONAL: arbitrary text, e.g. name of an opponent and their vote percentage -->
| 2017b = text                      <!-- OPTIONAL: arbitrary text, please color names to indicate party -->
| 2017c = text                      <!-- OPTIONAL: arbitrary text, use red for R, blue for D, purple for Tea Party -->
| 2017d = text                      <!-- OPTIONAL: arbitrary text -->
| 2017e = text                      <!-- OPTIONAL: arbitrary text -->
| 2015margin = xx                   <!-- election margin (percentage, no "%"), or UNOPPOSED, or X if did not run in 2015, or ATLARGE for an at-large seat -->
| 2015total = xx                    <!-- total vote percentage (no "%"), omit if did not run in 2015 -->
| 2015a = text                      <!-- OPTIONAL: arbitrary text, e.g. name of an opponent and their vote percentage -->
| 2015b = text                      <!-- OPTIONAL: arbitrary text, please color names to indicate party -->
| 2015c = text                      <!-- OPTIONAL: arbitrary text, use red for R, blue for D, purple for Tea Party -->
| 2015d = text                      <!-- OPTIONAL: arbitrary text -->
| 2015e = text                      <!-- OPTIONAL: arbitrary text -->
| 2013margin = xx                   <!-- election margin for 2013, or UNOPPOSED, or X, or ATLARGE -->
| 2013total = xx                    <!-- total vote percentage (no "%"), omit if did not run in 2013 -->
| 2013a = text                      <!-- OPTIONAL: arbitrary text, e.g. name of an opponent and their vote percentage -->
| 2013b = text                      <!-- OPTIONAL: arbitrary text, please color names to indicate party -->
| 2013c = text                      <!-- OPTIONAL: arbitrary text, use red for R, blue for D, purple for Tea Party -->
| 2013d = text                      <!-- OPTIONAL: arbitrary text -->
| 2013e = text                      <!-- OPTIONAL: arbitrary text -->
| 2011margin = xx                   <!-- election margin for 2011, or UNOPPOSED, or X, or ATLARGE -->
| 2011total = xx                    <!-- total vote percentage (no "%"), omit if did not run in 2011 -->
| 2011a = text                      <!-- OPTIONAL: arbitrary text, e.g. name of an opponent and their vote percentage -->
| 2011b = text                      <!-- OPTIONAL: arbitrary text, please color names to indicate party -->
| 2011c = text                      <!-- OPTIONAL: arbitrary text, use red for R, blue for D, purple for Tea Party -->
| 2011d = text                      <!-- OPTIONAL: arbitrary text -->
| 2011e = text                      <!-- OPTIONAL: arbitrary text -->
}}