Template:Subpage: Difference between revisions
Jump to navigation
Jump to search
m (added a version for multiple subpages) |
m (code adjustment) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>:''See subpage{{#if:{{{2|}}}|s|}} [[{{PAGENAME}}/{{{1|}}}]] {{#if:{{{2|}}}|, [[{{PAGENAME}}/{{{2|}}}]]{{#if:{{{3|}}}|, [[{{PAGENAME}}/{{{3|}}}]]|}}|}}''</includeonly><!-- | <includeonly>:''See subpage{{#if:{{{2|}}}|s|}} [[{{PAGENAME}}/{{{1|}}}|{{{1}}}]]{{#if:{{{2|}}}|, [[{{PAGENAME}}/{{{2|}}}|{{{2}}}]]{{#if:{{{3|}}}|, [[{{PAGENAME}}/{{{3|}}}|{{{3}}}]]|}}|}}''</includeonly><!-- | ||
--><noinclude> | --><noinclude> | ||
A template used to point to an article's subpages. Simply enter the title of the subpage that appears after the /. | A template used to point to an article's subpages. Simply enter the title of the subpage that appears after the /. | ||
Line 15: | Line 15: | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | <templatedata> | ||
{ | |||
"params": { | |||
"1": { | |||
"label": "Subpage 1", | |||
"description": "The name of the subpage (only what appears after the / ).", | |||
"example": "Gallery", | |||
"type": "content", | |||
"required": true | |||
}, | |||
"2": { | |||
"label": "Subpage 2", | |||
"description": "The name of the subpage (only what appears after the / ).", | |||
"type": "content" | |||
}, | |||
"3": { | |||
"label": "Subpage 3", | |||
"description": "The name of the subpage (only what appears after the / ).", | |||
"type": "content" | |||
} | |||
}, | |||
"description": "A template used to point to an article's subpages. Simply enter the title of the subpage that appears after the /. Up to 3 subpages can be linked with this template.\n", | |||
"paramOrder": [ | |||
"1", | |||
"2", | |||
"3" | |||
] | |||
} | |||
</templatedata></noinclude> |
Latest revision as of 09:57, 25 September 2023
A template used to point to an article's subpages. Simply enter the title of the subpage that appears after the /.
- Examples
{{Subpage|Test}}
Results in:
- See subpage Test
{{Subpage|Test|Test 2|Test 3}}
Results in:
A template used to point to an article's subpages. Simply enter the title of the subpage that appears after the /. Up to 3 subpages can be linked with this template.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Subpage 1 | 1 | The name of the subpage (only what appears after the / ).
| Content | required |
Subpage 2 | 2 | The name of the subpage (only what appears after the / ). | Content | optional |
Subpage 3 | 3 | The name of the subpage (only what appears after the / ). | Content | optional |