No edit summary |
(added example and instruction using date parameter) |
||
Line 48: | Line 48: | ||
|} | |} | ||
There also an optional (recommended) parameter to include a date the row was last updated. This will help keep the information in the table current, and allow works to quickly see which counties may be stale. The " date" parameter is added after a pipe (|), and accepts any value. It should be used to enter the date the row was last modified. | |||
For example | |||
{{Tlx|FC/County|Monroe|in progress|joyriding|date{{=}}Aug '14}} | |||
→Produces | |||
{{FC/County|Monroe|in progress|joyriding|date=Aug '14}} | |||
This template is optimally deployed in sortable wiki table. This code should be place on the page where you want the table to be displayed, above where the template will be entered. | |||
<code>{| class="wikitable sortable" border="1" | |||
|+ FC Upgrade Status by County (sortable) | |||
|- | |||
! scope="col" | County | |||
! scope="col" | Editor(s) | |||
! scope="col" | Status | |||
! Scope="col" | Updated</code> | |||
The temlates are then added in your chosen order here. These can also be transcluded in from a subpage if you wish by adding the code referencing the subpage where the templates are store here. For example if the templates are isolated an stored on subpage /FC_table, you would put here. | |||
<code><nowiki>{{/FC table}}</nowiki></code> | |||
Otherwise add the templates here like this for example. | |||
{{Pre2|scroll|<nowiki>{{FC/County|Kings|in progress|date=07/14|PesachZ}} | |||
{{FC/County|Queens|date=July 2014|not started}} | |||
{{FC/County|New York|complete|pumrum|PesachZ|date=5/14}} | |||
{{FC/County|Richmond|something else|pumrum|PesachZ|third|4th|fifth_Wazer|FinalShownWazer|not displayed above limit}}</nowiki>}} | |||
And below where the templates will be added, you need this code to complete the table. | |||
<code>|}</code> | |||
→This produces | |||
{| class="wikitable sortable" border="1" | |||
|+ FC Upgrade Status by County (sortable) | |||
|- | |||
! scope="col" | County | |||
! scope="col" | Editor(s) | |||
! scope="col" | Status | |||
! Scope="col" | Updated | |||
{{FC/County|Kings|in progress|date=07/14|PesachZ}} | |||
{{FC/County|Queens|date=July 2014|not started}} | |||
{{FC/County|New York|complete|pumrum|PesachZ|date=5/14}} | |||
{{FC/County|Richmond|something else|pumrum|PesachZ|third|4th|fifth_Wazer|FinalShownWazer|not displayed above limit}} | |||
|} | |||
<includeonly> | <includeonly> | ||
<!-- ADD CATEGORIES BELOW THIS LINE --> | <!-- ADD CATEGORIES BELOW THIS LINE --> |
Revision as of 23:00, 14 August 2014
This is a documentation subpage for . It contains usage information, categories and other content that is not part of the original template page. |
This template is designed to be used to add rows to a table tracking FC upgrades by county.
It requires only two parameters at minimum, the county name, and it's upgrade status.
The template is designed to be transcluded enclosed inside a table.
{| border=1 Template goes here |}
For example
{{FC/County}}
→Produces
|- align="center" bgcolor="white" |COUNTY NAME |No volunteers yet |STATUS
But when enclosed in a table like this
{| border=1 {{FC/County|COUNTY NAME|STATUS}} |}
→It produces
COUNTY NAME | No volunteers yet | STATUS
|
It can change the color of the row if the status is set to one of these three options exactly |not started|in progress|complete|
It accepts up to six optional editor names, separated by a pipe (|). If no editors are added, it will display "No volunteers yet".
Example usage
{| border=1 {{FC/County|Kings|in progress|PesachZ} {{FC/County|Queens|not started} {{FC/County|New York|complete|pumrum|PesachZ} {{FC/County|Richmond|something else|pumrum|PesachZ|third|4th|fifth_Wazer|FinalShownWazer|not displayed above limit}} |}
→Produces
Kings | PesachZ (PM [Help]) | in progress
|
Queens | No volunteers yet | not started
|
New York | pumrum (PM [Help]) , PesachZ (PM [Help]) | complete
|
Richmond | pumrum (PM [Help]) , PesachZ (PM [Help]) , third (PM [Help]) , 4th (PM [Help]) , fifth_Wazer (PM [Help]) , FinalShownWazer (PM [Help]) | something else
|
There also an optional (recommended) parameter to include a date the row was last updated. This will help keep the information in the table current, and allow works to quickly see which counties may be stale. The " date" parameter is added after a pipe (|), and accepts any value. It should be used to enter the date the row was last modified.
For example
{{FC/County|Monroe|in progress|joyriding|date=Aug '14}}
→Produces
|- align="center" bgcolor="orange" |Monroe |joyriding (PM [Help]) |in progress |Aug '14
This template is optimally deployed in sortable wiki table. This code should be place on the page where you want the table to be displayed, above where the template will be entered.
{| class="wikitable sortable" border="1"
|+ FC Upgrade Status by County (sortable)
|-
! scope="col" | County
! scope="col" | Editor(s)
! scope="col" | Status
! Scope="col" | Updated
The temlates are then added in your chosen order here. These can also be transcluded in from a subpage if you wish by adding the code referencing the subpage where the templates are store here. For example if the templates are isolated an stored on subpage /FC_table, you would put here.
{{/FC table}}
Otherwise add the templates here like this for example.
{{FC/County|Kings|in progress|date=07/14|PesachZ}} {{FC/County|Queens|date=July 2014|not started}} {{FC/County|New York|complete|pumrum|PesachZ|date=5/14}} {{FC/County|Richmond|something else|pumrum|PesachZ|third|4th|fifth_Wazer|FinalShownWazer|not displayed above limit}}
And below where the templates will be added, you need this code to complete the table.
|}
→This produces
County | Editor(s) | Status | Updated |
---|---|---|---|
Kings | PesachZ (PM [Help]) | in progress | 07/14
|
Queens | No volunteers yet | not started | July 2014
|
New York | pumrum (PM [Help]) , PesachZ (PM [Help]) | complete | 5/14
|
Richmond | pumrum (PM [Help]) , PesachZ (PM [Help]) , third (PM [Help]) , 4th (PM [Help]) , fifth_Wazer (PM [Help]) , FinalShownWazer (PM [Help]) | something else
|