Template:Subpage: Difference between revisions

From No Man's Land - A Trigun Wiki
Jump to navigation Jump to search
m (trying to make it work)
m (code adjustment)
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>:''See subpage [[{{{1|}}}]]''</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.
A template used to point to an article's subpages. Simply enter the title of the subpage that appears after the /.


;Examples
;Examples
<pre>{{Subpage|Vash the Stampede (anime)/Gallery}}</pre>
<pre>{{Subpage|Test}}</pre>
Results in:
Results in:
{{Subpage|Vash the Stampede (anime)/Gallery}}
{{Subpage|Test}}
 
<pre>{{Subpage|Test|Test 2|Test 3}}</pre>
Results in:
{{Subpage|Test|Test 2|Test 3}}






[[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:

See subpages Test, Test 2, Test 3

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.

[Edit template data]

Template parameters

ParameterDescriptionTypeStatus
Subpage 11

The name of the subpage (only what appears after the / ).

Example
Gallery
Contentrequired
Subpage 22

The name of the subpage (only what appears after the / ).

Contentoptional
Subpage 33

The name of the subpage (only what appears after the / ).

Contentoptional