Difference between revisions of "Template:Canadian election result/source/doc"

From blackwiki
Jump to navigation Jump to search
imported>Who R you?
(Create documentation page)
 
imported>Jonesey95
(Fix Linter errors)
 
(2 intermediate revisions by one other user not shown)
Line 8: Line 8:
 
|-
 
|-
 
! Source / Note
 
! Source / Note
| align=center | 1
+
| style="text-align:center;" | 1
 
| Displays passed text.&nbsp; Use <code>''{{big|source}}=''</code> or <code>''{{big|note}}=''</code> if text contains an equals sign.
 
| Displays passed text.&nbsp; Use <code>''{{big|source}}=''</code> or <code>''{{big|note}}=''</code> if text contains an equals sign.
 
|-
 
|-
 
! Column span  
 
! Column span  
| align=center style="padding-left:8px; padding-right:8px;" | ''colspan''
+
| style="text-align:center;padding-left:8px; padding-right:8px;" | ''colspan''
 
| Overrides the default and specifies number of columns spanned/in table &nbsp; {{resize|(Default {{=}} 7)}}
 
| Overrides the default and specifies number of columns spanned/in table &nbsp; {{resize|(Default {{=}} 7)}}
 
|-
 
|-
 
! Row style
 
! Row style
| align=center | ''style''
+
| style="text-align:center;" | ''style''
 
| Specify additional table/cell <code>style="…"</code> commands for the row.&nbsp; Separate/end style commands with "<code>''';'''</code>".
 
| Specify additional table/cell <code>style="…"</code> commands for the row.&nbsp; Separate/end style commands with "<code>''';'''</code>".
|- valign=top
+
|- style="vertical-align:top;"
 
! rowspan=2 | Preliminary
 
! rowspan=2 | Preliminary
| align=center rowspan=2 | ''prelim''
+
| style="text-align:center;" rowspan=2 | ''prelim''
 
| Set any value (e.g. "<code>''prelim=''yes</code>") to ignore ''source'' or ''note'' parameter and add the row: &nbsp; {{resize|(Use in '''/source''' or '''/top''', not both)}}
 
| Set any value (e.g. "<code>''prelim=''yes</code>") to ignore ''source'' or ''note'' parameter and add the row: &nbsp; {{resize|(Use in '''/source''' or '''/top''', not both)}}
 
|-
 
|-
| align=center | {{big|'''''** Preliminary results — Not yet official **'''''}}
+
| style="text-align:center;" | {{big|'''''** Preliminary results — Not yet official **'''''}}
|- valign=top
+
|- style="vertical-align:top;"
 
! rowspan=2 | On date
 
! rowspan=2 | On date
| align=center rowspan=2 | ''on''
+
| style="text-align:center;" rowspan=2 | ''on''
 
| Pass the future election date (e.g. <code>''on=''June 12, 2014</code>) to display standardized notice:
 
| Pass the future election date (e.g. <code>''on=''June 12, 2014</code>) to display standardized notice:
 
|-
 
|-
| bgcolor=lemonchiffon align=center | '''''The 2014 general election will be held on June 12th.'''''
+
| style="background-color:lemonchiffon;text-align:center;" | '''''The 2014 general election will be held on June 12th.'''''
|- valign=top
+
|- style="vertical-align:top;"
 
! rowspan=2 | By-election
 
! rowspan=2 | By-election
| align=center rowspan=2 | ''by''
+
| style="text-align:center;" rowspan=2 | ''by''
 
| Applicable only with ''on'' parameter above.&nbsp; Set any value (e.g. "<code>''by=''yes</code>") to reformat standardized notice {{resize|(above)}} about future elections for by-elections:
 
| Applicable only with ''on'' parameter above.&nbsp; Set any value (e.g. "<code>''by=''yes</code>") to reformat standardized notice {{resize|(above)}} about future elections for by-elections:
 
|-
 
|-
| bgcolor=lemonchiffon align=center | '''''The by-election will be held on June 12th, 2014.'''''
+
| style="background-color:lemonchiffon;text-align:center;" | '''''The by-election will be held on June 12th, 2014.'''''
|- valign=top
+
|- style="vertical-align:top;"
 
! rowspan=3 | Collapsed Sources
 
! rowspan=3 | Collapsed Sources
| align=center rowspan=3 | ''hide''
+
| style="text-align:center;" rowspan=3 | ''hide''
 
| Overridden by ''on'' and ''prelim''.&nbsp; Set the source(s) here to put one or more rows of information into a hidden "Source(s)" section.&nbsp; Best practices are to place last in the table; separate multiple sources with a solid line <code>'''&lt;hr />'''</code>; and do not use with <nowiki><ref></nowiki> links within hidden divisions.
 
| Overridden by ''on'' and ''prelim''.&nbsp; Set the source(s) here to put one or more rows of information into a hidden "Source(s)" section.&nbsp; Best practices are to place last in the table; separate multiple sources with a solid line <code>'''&lt;hr />'''</code>; and do not use with <nowiki><ref></nowiki> links within hidden divisions.
 
|-
 
|-
| <code>{{!}}hide{{=}}<nowiki>{{cite web |url=http://www.elections.on.ca/…2011.pdf |title=Summary of Valid Votes Cast for Each Candidate |date=October 6, 2011 |publisher=[[Elections Ontario]] |accessdate=May 9, 2014 }}</nowiki>&nbsp;<nowiki><hr/></nowiki>&nbsp;<nowiki>{{cite web |url=http://www.elections.on.ca/…/ElectionSummary.xls |type=[[File:Microsoft_Excel_2013_logo.svg|15px]] Excel Spreadsheet |title=Statistical Summary |date=October 1, 2013 |publisher=[[Elections Ontario]] |accessdate=May 9, 2014 }}</nowiki></code> {{color|darkmagenta|'''<nowiki>}}</nowiki> <small>''Close the /source template''</small>'''}}
+
| <code><nowiki>hide={{cite web |url=http://www.elections.on.ca/…2011.pdf |title=Summary of Valid Votes Cast for Each Candidate |date=October 6, 2011 |publisher=[[Elections Ontario]] |accessdate=May 9, 2014 }}</nowiki>&nbsp;<nowiki><hr/></nowiki>&nbsp;<nowiki>{{cite web |url=http://www.elections.on.ca/…/ElectionSummary.xls |type=[[File:Microsoft_Excel_2013_logo.svg|15px]] Excel Spreadsheet |title=Statistical Summary |date=October 1, 2013 |publisher=[[Elections Ontario]] |accessdate=May 9, 2014 }}</nowiki></code> {{color|darkmagenta|'''<nowiki>}}</nowiki> <small>''Close the /source template''</small>'''}}
 
|-
 
|-
 
| {{hidden |header=Source(s) |headerstyle=text-align:left; background-color:#F4FFF4;
 
| {{hidden |header=Source(s) |headerstyle=text-align:left; background-color:#F4FFF4;
 
|content={{cite web |url=http://www.elections.on.ca/NR/rdonlyres/7849B894-4C4F-490E-9E8C-271BCF0C0D4D/5712/SummaryofvalidvotescastforeacndGE2011.pdf |title=Summary of Valid Votes Cast for Each Candidate |date=October 6, 2011 |publisher=[[Elections Ontario]] |accessdate=May 9, 2014 }}<hr/>{{cite web |url=http://www.elections.on.ca/NR/rdonlyres/7849B894-4C4F-490E-9E8C-271BCF0C0D4D/5720/ElectionSummary71KBExcel.xls |type=[[File:Microsoft_Excel_2013_logo.svg|15px]] Excel Spreadsheet |title=Statistical Summary |date=October 1, 2013 |publisher=[[Elections Ontario]] |accessdate=May 9, 2014 }} }}
 
|content={{cite web |url=http://www.elections.on.ca/NR/rdonlyres/7849B894-4C4F-490E-9E8C-271BCF0C0D4D/5712/SummaryofvalidvotescastforeacndGE2011.pdf |title=Summary of Valid Votes Cast for Each Candidate |date=October 6, 2011 |publisher=[[Elections Ontario]] |accessdate=May 9, 2014 }}<hr/>{{cite web |url=http://www.elections.on.ca/NR/rdonlyres/7849B894-4C4F-490E-9E8C-271BCF0C0D4D/5720/ElectionSummary71KBExcel.xls |type=[[File:Microsoft_Excel_2013_logo.svg|15px]] Excel Spreadsheet |title=Statistical Summary |date=October 1, 2013 |publisher=[[Elections Ontario]] |accessdate=May 9, 2014 }} }}
 
|}
 
|}

Latest revision as of 14:00, 15 February 2019

Usage

Parameter Description
Source / Note 1 Displays passed text.  Use source= or note= if text contains an equals sign.
Column span colspan Overrides the default and specifies number of columns spanned/in table   (Default = 7)
Row style style Specify additional table/cell style="…" commands for the row.  Separate/end style commands with ";".
Preliminary prelim Set any value (e.g. "prelim=yes") to ignore source or note parameter and add the row:   (Use in /source or /top, not both)
** Preliminary results — Not yet official **
On date on Pass the future election date (e.g. on=June 12, 2014) to display standardized notice:
The 2014 general election will be held on June 12th.
By-election by Applicable only with on parameter above.  Set any value (e.g. "by=yes") to reformat standardized notice (above) about future elections for by-elections:
The by-election will be held on June 12th, 2014.
Collapsed Sources hide Overridden by on and prelim.  Set the source(s) here to put one or more rows of information into a hidden "Source(s)" section.  Best practices are to place last in the table; separate multiple sources with a solid line <hr />; and do not use with <ref> links within hidden divisions.
hide={{cite web |url=http://www.elections.on.ca/…2011.pdf |title=Summary of Valid Votes Cast for Each Candidate |date=October 6, 2011 |publisher=[[Elections Ontario]] |accessdate=May 9, 2014 }} <hr/> {{cite web |url=http://www.elections.on.ca/…/ElectionSummary.xls |type=[[File:Microsoft_Excel_2013_logo.svg|15px]] Excel Spreadsheet |title=Statistical Summary |date=October 1, 2013 |publisher=[[Elections Ontario]] |accessdate=May 9, 2014 }} }} Close the /source template
Source(s)
"Summary of Valid Votes Cast for Each Candidate" (PDF). Elections Ontario. October 6, 2011. Retrieved May 9, 2014.
"Statistical Summary" (Microsoft Excel 2013-2019 logo.svg Excel Spreadsheet). Elections Ontario. October 1, 2013. Retrieved May 9, 2014.