Difference between revisions of "Template:People-section"
From Worms Knowledge Base
Explorer09 (Talk | contribs) |
Explorer09 (Talk | contribs) (add new parameter for customising the sort key) |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{| width="100%" border="1" cellpadding="2" cellspacing="0" | {| width="100%" border="1" cellpadding="2" cellspacing="0" | ||
<onlyinclude>|- style="background-color: #ccdeff;" | <onlyinclude>|- style="background-color: #ccdeff;" | ||
− | + | |style="border-right-width: 0; text-align: center;"| {{#if:{{{sortkey|}}}|<span style="display: none;">{{{sortkey}}}!</span>}}<span id="{{anchorencode:{{{1|}}}}}">'''{{{1}}}'''</span><!--Nickname--> | |
− | |style="border-width: 1px 0;"|<span style="display: none;">{{{1}}}</span> | + | |style="border-width: 1px 0;"| <span style="display: none;">{{{sortkey|{{{1}}}}}}</span><!--Clan--> |
− | |style="border-width: 1px 0;"|<span style="display: none;">{{{1}}}</span> | + | |style="border-width: 1px 0;"| <span style="display: none;">{{{sortkey|{{{1}}}}}}</span><!--Location--> |
− | |style="border-width: 1px 0;"|<span style="display: none;">{{{1}}}</span> | + | |style="border-width: 1px 0;"| <span style="display: none;">{{{sortkey|{{{1}}}}}}</span><!--First Name--> |
− | |style="border-width: 1px 0;"| <!--W2--> | + | |style="border-width: 1px 0;"| <!--W2--> |
− | |style="border-width: 1px 0;"| <!--WA--> | + | |style="border-width: 1px 0;"| <!--WA--> |
− | |style="border-width: 1px 0;"| <!--WWP--> | + | |style="border-width: 1px 0;"| <!--WWP--> |
− | |style="border-left-width: 0; text-align: right;"|[[[#top|top]]]</onlyinclude> | + | |style="border-left-width: 0; text-align: right;"|{{#if:{{{subpage|}}}|[[[{{{subpage}}}|view]]] [[[Talk:{{{subpage}}}|talk]]] [<span class="plainlinks">[{{fullurl:{{{subpage}}}|action=edit}} <span title="Edit section: {{{1}}}">edit</span>]</span>]}} [[[#top|top]]]</onlyinclude> |
|} | |} | ||
---- | ---- | ||
− | + | ==Usage== | |
− | + | <code><nowiki>{{People-section|name|sortkey=sortkey|subpage=subpage name}}</nowiki></code> | |
− | + | ||
− | :<code><nowiki>{{People-section|B}}</nowiki></code> | + | Parameters |
+ | *'''1''': (required) The section name, usually a letter like "A" or "B". | ||
+ | *'''sortkey''': (optional) Specify the sort key here if it is different from the section name. | ||
+ | *'''subpage''': (optional) A subpage name where the section links. | ||
+ | |||
+ | ==Examples== | ||
+ | <code><nowiki>{{People-section|B}}</nowiki></code> | ||
+ | {| width="100%" border="1" cellpadding="2" cellspacing="0" | ||
+ | {{People-section|B}} | ||
+ | |} | ||
+ | <code><nowiki>{{People-section|B|subpage=People (B)}}</nowiki></code> | ||
+ | {| width="100%" border="1" cellpadding="2" cellspacing="0" | ||
+ | {{People-section|B|subpage=People (B)}} | ||
+ | |} | ||
+ | <code><nowiki>{{People-section|0–9|sortkey=0}}</nowiki></code> | ||
+ | {| width="100%" border="1" cellpadding="2" cellspacing="0" | ||
+ | {{People-section|0–9|sortkey=0}} | ||
+ | |} |
Latest revision as of 00:18, 25 April 2010
{{{1}}} | [top] |
Usage
{{People-section|name|sortkey=sortkey|subpage=subpage name}}
Parameters
- 1: (required) The section name, usually a letter like "A" or "B".
- sortkey: (optional) Specify the sort key here if it is different from the section name.
- subpage: (optional) A subpage name where the section links.
Examples
{{People-section|B}}
B | [top] |
{{People-section|B|subpage=People (B)}}
B | [view] [talk] [edit] [top] |
{{People-section|0–9|sortkey=0}}
0–9 | [top] |