Fallout中文維基
第12行: 第12行:
 
--></onlyinclude>
 
--></onlyinclude>
   
  +
{{Documentation}}
==使用方法==
 
<pre>{{for|first alternative|page name|second alternative|second page name|third alternative|third page name}}
 
 
Optional:
 
|intro=Appears in front of first "For, see" sentence.
 
</pre>
 
 
 
[[Category:导航模板|{{PAGENAME}}]]
 
[[Category:导航模板|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

2011年10月24日 (一) 23:50的版本

關於{{{1}}},參見[[:{{{2}}}|{{{2}}}]]。
Template documentation (for the template shown above, sometimes hidden or invisible)


關於a template which adds a navigation prompt at the beginning of an article, listing a similarly named page which users may be attempting to find,參見Template:For

A template which adds a navigation prompt at the beginning of an article, listing a similarly named page which users may be attempting to find.

Based on {{directionbox}}.

Usage

  • Place the following at the very top of the page:
{{for|description|page name}}
{{for|description1|page name1|description2|page name2}}
{{for|description|page name|t1=visible page name link}}
  • This template currently supports up to five navigation links.
{{for|{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8}}}|{{{9}}}|{{{10}}}}}

Copy paste

1 link
{{for||}}
2 links
{{for||||}}
3 links
{{for||||||}}
4 links
{{for||||||||}}
5 links
{{for||||||||||}}
Full parameters
{{for<!--
-->|||t1=<!--
-->|||t2=<!--
-->|||t3=<!--
-->|||t4=<!--
-->|||t5=<!--
-->}}

Parameters

Yes
"Description" - pipes {{{1}}}, {{{3}}}, {{{5}}}, {{{7}}}, {{{9}}}
Describes article(s) with similar name. The first part of a pair, describes the page in the navigation box, linking it after. All odd numbered unnamed pipes.
Yes
"Destination" - pipes {{{2}}}, {{{4}}}, {{{6}}}, {{{8}}}, {{{10}}}
A link of the intended article. The second part of a pair, linking to an article after the description. All even numbered unnamed pipes.
Neutral
"Alternate link text" - {{{t1}}}, {{{t2}}}, {{{t3}}}, {{{t4}}}, {{{t5}}}
Alternate display text for a "destination" link. Should always be used for hiding anchored links (using #) or those with parenthesis. Used after a description/page name pair (all even numbered unnamed pipes). For example, t1 changes the display text for the first page link, if multiple.
  • t1= → Corresponds with pipe 2 ({{{2}}})
  • t2= → Corresponds with pipe 4 ({{{4}}})
  • t3= → Corresponds with pipe 6 ({{{6}}})
  • t4= → Corresponds with pipe 8 ({{{8}}})
  • t5= → Corresponds with pipe 10 ({{{10}}})
Neutral
about
Inserts "This page is about about" text before the first "for, see" sentence (and behind the redirect text if present).
Neutral
redirect
Inserts "redirect redirects here" text at the beginning.

Examples

Single link
關於a list of all characters named Kate,參見Kate
{{for|a list of all characters named Kate|Kate}}
Multiple links
關於a list of all characters named Kate,參見Kate
關於the character in Fallout: New Vegas,參見Katherine Stone
{{for|a list of all characters named Kate|Kate|the character in ''Fallout: New Vegas''|Katherine Stone}}
Hiding links - single
關於the character in Fallout: New Vegas,參見Kate Stone
{{for|the character in ''Fallout: New Vegas''|Katherine Stone|t1=Kate Stone}}
Hiding links - multiple
關於the character in Fallout: New Vegas,參見Kate Stone
關於the character in Fallout 4,參見spelled different Kate
關於the character in Fallout 76,參見Bleeding Kate
{{for|the character in ''Fallout: New Vegas''|Katherine Stone|t1=Kate Stone|the character in ''Fallout 4''|Cait|t2=spelled different Kate|the character in ''Fallout 76''|Kate (Fallout 76)|t3=Bleeding Kate}}
Maximum complexity
關於a list of all characters named Kate,參見Kate Stone
關於the character in Fallout: New Vegas,參見Katherine Stone
關於the companion in Fallout 4,參見Cait
{{for<!--
-->|a list of all [[characters]] named Kate|Kate<!--
-->|the [[Fallout: New Vegas characters|character]] in ''[[Fallout: New Vegas]]''|Katherine Stone|t1=Kate Stone<!--
-->|the [[Fallout 4 companions|companion]] in ''[[Fallout 4]]''|Cait<!--
-->|the [[Fallout 76 characters|character]] in ''[[Fallout 76]]''|Kate (Fallout 76)|t4=Bleeding Kate<!--
-->|the [[Dog (Fallout 4)|dog]] in ''[[Fallout 4]]''|Kate (dog)|t5=Kate<!--
-->}}
{{for|a list of all [[characters]] named Kate|Kate|the [[Fallout: New Vegas characters|character]] in ''[[Fallout: New Vegas]]''|Katherine Stone|t1=Kate Stone|the [[Fallout 4 companions|companion]] in ''[[Fallout 4]]''|Cait|the [[Fallout 76 characters|character]] in ''[[Fallout 76]]''|Kate (Fallout 76)|t4=Bleeding Kate|the [[Dog (Fallout 4)|dog]] in ''[[Fallout 4]]''|Kate (dog)|t5=Kate}}
Documentation transcluded from Template:For/doc.