Difference between pages "Template:Canadian election result/source" and "Template:Canadian election result/source/sandbox"
(Difference between pages)
Jump to navigation
Jump to search
imported>Primefac m (Changed protection level for "Template:Canadian election result/source": high-risk template with 2000+ transclusions ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))) |
imported>WOSlinker (tidy style) |
||
Line 24: | Line 24: | ||
End if ‘on’ | End if ‘on’ | ||
-->}}<!-- | -->}}<!-- | ||
− | --><noinclude> | + | --><noinclude>__NOTOC__ |
− | {{ | + | <hr /> |
+ | == Usage == | ||
+ | {| class=wikitable width=100% | ||
+ | |- | ||
+ | ! colspan=2 | Parameter | ||
+ | ! Description | ||
+ | |- | ||
+ | ! Source / Note | ||
+ | | style="text-align:center;" | 1 | ||
+ | | Displays passed text. Use <code>''{{big|source}}=''</code> or <code>''{{big|note}}=''</code> if text contains an equals sign. | ||
+ | |- | ||
+ | ! Column span | ||
+ | | style="text-align:center;padding-left:8px; padding-right:8px;" | ''colspan'' | ||
+ | | Overrides the default and specifies number of columns spanned/in table {{resize|(Default {{=}} 7)}} | ||
+ | |- | ||
+ | ! Row style | ||
+ | | style="text-align:center;" | ''style'' | ||
+ | | Specify additional table/cell <code>style="…"</code> commands for the row. Separate/end style commands with "<code>''';'''</code>". | ||
+ | |- style="vertical-align:top;" | ||
+ | ! rowspan=2 | Preliminary | ||
+ | | 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: {{resize|(Use in '''/source''' or '''/top''', not both)}} | ||
+ | |- | ||
+ | | style="text-align:center;" | {{big|'''''** Preliminary results — Not yet official **'''''}} | ||
+ | |- style="vertical-align:top;" | ||
+ | ! rowspan=2 | On date | ||
+ | | style="text-align:center;" rowspan=2 | ''on'' | ||
+ | | Pass the future election date (e.g. <code>''on=''June 12, 2014</code>) to display standardized notice: | ||
+ | |- | ||
+ | | style="background-color:lemonchiffon;text-align:center;" | '''''The 2014 general election will be held on June 12th.''''' | ||
+ | |- style="vertical-align:top;" | ||
+ | ! rowspan=2 | By-election | ||
+ | | style="text-align:center;" rowspan=2 | ''by'' | ||
+ | | Applicable only with ''on'' parameter above. Set any value (e.g. "<code>''by=''yes</code>") to reformat standardized notice {{resize|(above)}} about future elections for by-elections: | ||
+ | |- | ||
+ | | style="background-color:lemonchiffon;text-align:center;" | '''''The by-election will be held on June 12th, 2014.''''' | ||
+ | |- style="vertical-align:top;" | ||
+ | ! rowspan=3 | Collapsed Sources | ||
+ | | style="text-align:center;" rowspan=3 | ''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 <code>'''<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> <nowiki><hr/></nowiki> <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; | ||
+ | |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 }} }} | ||
+ | |} | ||
+ | <br /> | ||
{{documentation|Template:Canadian election result/doc}} | {{documentation|Template:Canadian election result/doc}} | ||
− | |||
</noinclude> | </noinclude> |