Template:子页面导航/doc

来自舰娘百科
跳转至: 导航搜索

用于特定条目的子页面的页首及页尾,以方便导航。标签指位于中间的部分,可选择该子页面的上一层条目名字作为标签名字。前一页和下一页是可选填选项。这两个选项必须指定正确条目名称方可使用。

使用方法

{{子页面导航|标签|前一页|下一页}}

{{子页面导航|Label|L1=1st Left navigator|L1l=1st Left navigator's label (Optional)|L2=2nd Left navigator (Optional)|L2l=2nd Left navigator's label (Optional)|R1=Right navigator|R1l=1st Right navigator's label (Optional)|R2=2nd Right navigator (Optional)}}
The Left and Right option can support up to 6 parameters with their labels optional

参数

Label
This is the label you should give to indicate the subpage is under which category such as Story, Spell Cards, etc.

简式子页面导航

Left navigator
The previous page's link
Right navigator
The next page's link

参数式子页面导航

L1
This parameter should stand for "Left 1", and is used to link to the previous page.
L1l
This parameter should stand for "Left 1 Link Label", and is for the previous page's link displayed in custom word instead of using the subpage as the name. Examples will be given here
R1
This parameter should stand for "Right 1", and is used to link to the next page.
R1l
This parameter should stand for "Right 1 Link Label", and is for the next page's link displayed in custom word instead of using the subpage as the name. Examples will be given here
L2
L2l
R2
R2l

etc. The number may go up to six for now, but if when needed more this template will adjust accordingly.

用例

* The coding below is served as a sample of how it will display, the link may not working due to the coding is not placed in proper subpage.

简式子页面导航

{{子页面导航|Spell Cards|Stage 1|Stage 3}}

will result as below:

< Stage 1   Spell Cards   Stage 3 >


{{子页面导航|Spell Cards||Stage 2}}

will result as below:

 Spell Cards   Stage 2 >


{{子页面导航|Spell Cards|Stage 6}}

will result as below:

< Stage 6   Spell Cards 


参数式子页面导航

Example one
Let's say, you are on page "Game/Spell Cards/Stage 3". The next page will have two different stages with two different spell card appearing. With this information your template should look like:
{{子页面导航|Spell Card|L1=Stage 2|R1=Stage 4A|R2=Stage 4B}}

Thus will end up looking like this:

< Stage 2   Spell Card   Stage 4A
 Stage 4B
>


Example two
You want to link to a certain Music Column of Bohemian Archive in Japanese Red, but also to the next "Article and Interview" page.
{{子页面导航|[[Bohemian Archive in Japanese Red]]|L1=Rumia|L1l=Article and Interview: Rumia|R1=Three Fairies|R1l=Article and Interview: Three Fairies|R2=Music Columns#Septette for the Dead Princess|R2l=Music Column: Septette for the Dead Princess}}

Thus will end up looking like this:

< Rumia   Bohemian Archive in Japanese Red   Article and Interview: Three Fairies
 Music Column: Septette for the Dead Princess
>