Difference between revisions of "Template:State Board member"

From IFRR
Jump to: navigation, search
(fix the documentation)
(more documentation fixes)
Line 6: Line 6:
 
| {{#if: {{{2010margin|}}} | {{#ifeq: {{{2010margin}}} | X | X | {{#ifeq: {{{2010margin}}} | UNOPPOSED | {{UNOPPOSED|{{{party}}}}} | {{#ifeq: {{{2010margin}}} | ATLARGE | Won with {{{2010total}}}% | {{#ifexpr: {{{2010margin}}} > 10 | {{{2010margin}}}% ({{{2010total}}}%) | '''{{{2010margin}}}% ({{{2010total}}}%''') }} }} }} }} }} {{#if: {{{2010a|}}} | <br/>{{{2010a}}}}} {{#if: {{{2010b|}}} | <br/>{{{2010b}}}}} {{#if: {{{2010c|}}} | <br/>{{{2010c}}}}} {{#if: {{{2010d|}}} | <br/>{{{2010d}}}}} {{#if: {{{2010e|}}} | <br/>{{{2010e}}}}}</includeonly><noinclude>
 
| {{#if: {{{2010margin|}}} | {{#ifeq: {{{2010margin}}} | X | X | {{#ifeq: {{{2010margin}}} | UNOPPOSED | {{UNOPPOSED|{{{party}}}}} | {{#ifeq: {{{2010margin}}} | ATLARGE | Won with {{{2010total}}}% | {{#ifexpr: {{{2010margin}}} > 10 | {{{2010margin}}}% ({{{2010total}}}%) | '''{{{2010margin}}}% ({{{2010total}}}%''') }} }} }} }} }} {{#if: {{{2010a|}}} | <br/>{{{2010a}}}}} {{#if: {{{2010b|}}} | <br/>{{{2010b}}}}} {{#if: {{{2010c|}}} | <br/>{{{2010c}}}}} {{#if: {{{2010d|}}} | <br/>{{{2010d}}}}} {{#if: {{{2010e|}}} | <br/>{{{2010e}}}}}</includeonly><noinclude>
  
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.
+
This template creates a row in a table of state school board members with information about a single 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 [https://en.wikipedia.org/wiki/Help:Wiki_markup help]), or a few local templates.  Of particular use here:
 
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 [https://en.wikipedia.org/wiki/Help:Wiki_markup help]), or a few local templates.  Of particular use here:
Line 17: Line 17:
 
::<nowiki>[http://www.google.com google]</nowiki> displays as [http://www.google.com google]
 
::<nowiki>[http://www.google.com google]</nowiki> displays as [http://www.google.com google]
  
<pre>{{Council member
+
<pre>{{State Board member
 
| district = n                      <!-- District number, 1-7 -->                 
 
| district = n                      <!-- District number, 1-7 -->                 
 
| name = Slimey T. Politician
 
| name = Slimey T. Politician

Revision as of 16:21, 27 May 2017


This template creates a row in a table of state school board members with information about a single 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
{{State Board member
| district = n                      <!-- District number, 1-7 -->                
| 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 -->
| next = 2019                       <!-- Year of next election -->
| phone = nnn.nnn.nnnn
| email = slimey@city.gov
| 2016margin = xx                   <!-- election margin (percentage, no "%"), or UNOPPOSED, or X if did not run in 2016, or ATLARGE for an at-large seat -->
| 2016total = xx                    <!-- total vote percentage (no "%"), omit if did not run in 2016 -->
| 2016a = text                      <!-- OPTIONAL: arbitrary text, e.g. name of an opponent and their vote percentage -->
| 2016b = text                      <!-- OPTIONAL: arbitrary text, please color names to indicate party -->
| 2016c = text                      <!-- OPTIONAL: arbitrary text, use red for R, blue for D, purple for Tea Party -->
| 2016d = text                      <!-- OPTIONAL: arbitrary text -->
| 2016e = text                      <!-- OPTIONAL: arbitrary text -->
| 2014margin = xx                   <!-- election margin for 2014, or UNOPPOSED, or X -->
| 2014total = xx                    <!-- total vote percentage (no "%"), omit if did not run in 2014 -->
| 2014a = text                      <!-- OPTIONAL: arbitrary text, e.g. name of an opponent and their vote percentage -->
| 2014b = text                      <!-- OPTIONAL: arbitrary text, please color names to indicate party -->
| 2014c = text                      <!-- OPTIONAL: arbitrary text, use red for R, blue for D, purple for Tea Party -->
| 2014d = text                      <!-- OPTIONAL: arbitrary text -->
| 2014e = text                      <!-- OPTIONAL: arbitrary text -->
| 2012margin = xx                   <!-- election margin for 2012, or UNOPPOSED, or X -->
| 2012total = xx                    <!-- total vote percentage (no "%"), omit if did not run in 2012 -->
| 2012a = text                      <!-- OPTIONAL: arbitrary text, e.g. name of an opponent and their vote percentage -->
| 2012b = text                      <!-- OPTIONAL: arbitrary text, please color names to indicate party -->
| 2012c = text                      <!-- OPTIONAL: arbitrary text, use red for R, blue for D, purple for Tea Party -->
| 2012d = text                      <!-- OPTIONAL: arbitrary text -->
| 2012e = text                      <!-- OPTIONAL: arbitrary text -->
| 2010margin = xx                   <!-- election margin for 2010, or UNOPPOSED, or X -->
| 2010total = xx                    <!-- total vote percentage (no "%"), omit if did not run in 2010 -->
| 2010a = text                      <!-- OPTIONAL: arbitrary text, e.g. name of an opponent and their vote percentage -->
| 2010b = text                      <!-- OPTIONAL: arbitrary text, please color names to indicate party -->
| 2010c = text                      <!-- OPTIONAL: arbitrary text, use red for R, blue for D, purple for Tea Party -->
| 2010d = text                      <!-- OPTIONAL: arbitrary text -->
| 2010e = text                      <!-- OPTIONAL: arbitrary text -->
}}