Template:For/doc

From Workers & Resources: Soviet Republic Official Wiki
< Template:For
Revision as of 17:44, 14 June 2024 by JKM (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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
{{for|a list of all ore [[resources]]|Ore}}
Multiple links
{{for|a list of all ore [[resources]]|Ore|the [[resources]] that can moved on [[dumper]] trucks|Ore|t1=Raw ores}}
Hiding links - single
{{for|a list of all ore [[resources]]|Ore|t1=Raw ores}}
Hiding links - multiple
{{for|a list of all ore [[resources]]|Ore|t1=Raw ore|the [[resources]] that can [[dumper]] trucks move|Road vehicles#Dumper|t2=Dumper trucks|covered hull [[road vehicles]]|Road vehicles#Covered hull|t3=Covered hull trucks}}
Maximum complexity
{{for<!--
-->|a list of all ore [[resources]]|Ore<!--
-->|the [[resources]] that can moved on [[dumper]] trucks|Ore|t1=Raw ores<!--
-->|the [[vehicles]] that can move on [[roads]]|Road vehicles<!--
-->|the list of road vehicles with covered hulls|Covered hull|t4=Covered hull trucks<!--
-->|the [[buildings]] used on farming|Farming|t5=Farming equipment<!--
-->}}
{{for|a list of all ore [[resources]]|Ore|the [[resources]] that can moved on [[dumper]] trucks|Ore|t1=Raw ores|the [[vehicles]] that can move on [[roads]]|Road vehicles|the list of road vehicles with covered hulls|Covered hull|t4=Covered hull trucks|the [[buildings]] used on farming|Farming|t5=Farming equipment}}