Difference between revisions of "Template:Cat more"
imported>Fuhghettaboutit m (Changed protection level of Template:Cat more: Enable access by template editors ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))) |
imported>Steel1943 (Transcluded template name update) |
||
Line 1: | Line 1: | ||
− | {{ | + | {{Hatnote|extraclasses=relarticle mainarticle|For more information, see '''[[{{{1<includeonly>|{{PAGENAME}}</includeonly>}}}{{#if:{{{l1|}}}|{{!}}{{{l1}}}}}]]'''{{#if:{{{2|}}}|{{#if:{{{3|}}}|, | and }} '''[[{{{2}}}{{#if:{{{l2|}}}|{{!}}{{{l2}}}}}]]'''{{#if:{{{3|}}}|{{#if:{{{4|}}}|, | and }} '''[[{{{3}}}{{#if:{{{l3|}}}|{{!}}{{{l3}}}}}]]'''{{#if:{{{4|}}}|{{#if:{{{5|}}}|, | and }} '''[[{{{4}}}{{#if:{{{l4|}}}|{{!}}{{{l4}}}}}]]'''{{#if:{{{5|}}}| and '''[[{{{5}}}{{#if:{{{l5|}}}|{{!}}{{{l5}}}}}]]'''}}}}}}}}.{{#if:{{{6|}}}|<br />— '''Error: [[Template:Cat more|Too many links specified (maximum is 5)]]'''}}}}<noinclude> |
<!-- Add categories and interwikis to the /doc subpage, not here! -->{{Documentation}} | <!-- Add categories and interwikis to the /doc subpage, not here! -->{{Documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 02:56, 28 May 2014
Usage
{{cat more|WP:WikiProject}}
produces:
{{cat more|WP:WikiProject|l1=WikiProject}}
produces:
Multiple link targets
{{cat more|1 BC}}
produces:{{cat more|Talk:1 BC|l1=1 BC}}
produces:{{cat more|1 BC|2 BC}}
produces:{{cat more|Talk:1 BC|l1=1 BC|Talk:2 BC|l2=2 BC}}
produces:{{cat more|1 BC|2 BC|3 BC}}
produces:{{cat more|Talk:1 BC|l1=1 BC|Talk:2 BC|l2=2 BC|Talk:3 BC|l3=3 BC}}
produces:{{cat more|1 BC|2 BC|3 BC|4 BC}}
produces:{{cat more|Talk:1 BC|l1=1 BC|Talk:2 BC|l2=2 BC|Talk:3 BC|l3=3 BC|Talk:4 BC|l4=4 BC}}
produces:{{cat more|1 BC|2 BC|3 BC|4 BC|5 BC}}
produces:{{cat more|Talk:1 BC|l1=1 BC|Talk:2 BC|l2=2 BC|Talk:3 BC|l3=3 BC|Talk:4 BC|l4=4 BC|Talk:5 BC|l5=5 BC}}
produces:
TemplateData
TemplateData for Cat more
This templates adds a 'For more information, see ...' statement with a maximum of 5 linked Wiki pages. Each link can be labelled with a user-defined new text. If no label is defined, the link will display with its original page name.
Parameter | Description | Type | Status | |
---|---|---|---|---|
first link | 1 | First link to a Wiki page, formatted as 'internal' Wiki-link, f.e. 'WP:WikiProject' or 'articlename' | String | required |
label first link | l1 | Format: l1=labeltext. A user-defined label for the first Wiki-link, f.e. 'WP:WikiProject' as first parameter and 'l1=Project' would display 'Project' but link to 'WP:WikiProject' | String | optional |
second link | 2 | Second link to another Wiki page, same formatting as the first link. Note: 3 more links 3,4,5 and (optional) labels l3,l4,l5 can be added manually | String | optional |
label second link | l2 | Format: l2=labeltext. A user-defined label for the second Wiki-link. Note: 3 more links 3,4,5 and (optional) labels l3,l4,l5 can be added manually | String | optional |
Redirects
{{Category more}}
See also
The above documentation is transcluded from Template:Cat more/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |