Difference between revisions of "Template:For"

From The Coppermind
Jump to navigation Jump to search
m (+listing)
(add documentation)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
<div class=navaid>{{#if:{{{pre|}}}|{{{pre}}}.&nbsp;}}For {{{2|more information}}}, see [[{{{1}}}|{{{3|{{{1}}}|}}}]].{{#if:{{{post|}}}|&nbsp;{{{post}}}|}}</div><noinclude>
 
<div class=navaid>{{#if:{{{pre|}}}|{{{pre}}}.&nbsp;}}For {{{2|more information}}}, see [[{{{1}}}|{{{3|{{{1}}}|}}}]].{{#if:{{{post|}}}|&nbsp;{{{post}}}|}}</div><noinclude>
   
Use this template when you have a ''similar'' topic that should be linked to somewhere else.
+
Use this template when you have a ''similar'' topic that should be prominently linked to another article, either for more information or to avoid confusion between similarly-named articles.
  +
  +
It generally takes one unnamed parameter, <code>{{{1}}}</code>, as input. By default, it returns "For more information, see <code>{{{1}}}</code>", where <code>{{{1}}}</code> is a link to the referenced article. A second unnamed parameter will replace "more information" and a third will replace the text which refers to the linked article. For example, <code><nowiki>{{for|cosmere|oodles of information|this page about the cosmere}}</nowiki></code> produces:
  +
: {{for|cosmere|oodles of information|this page about the cosmere}}
  +
  +
The template is intended to be brief, but additional optional parameters <code>|pre=</code> and <code>|post=</code> allow you to add additional explanatory text at the beginning or end of the displayed text, if necessary. For example, <code><nowiki>{{for|Wulfden the First|the first Wyrn named Wulfden|pre='Wulfden' redirects here}}</nowiki></code> produces:
  +
: {{for|Wulfden the First|the first Wyrn named Wulfden|pre='Wulfden' redirects here}}
  +
 
[[Category:Navigation aids]]
 
[[Category:Navigation aids]]
</noinclude>
 
   
 
== Articles using Template ==
 
== Articles using Template ==

Latest revision as of 22:42, 19 November 2021

Use this template when you have a similar topic that should be prominently linked to another article, either for more information or to avoid confusion between similarly-named articles.

It generally takes one unnamed parameter, {{{1}}}, as input. By default, it returns "For more information, see {{{1}}}", where {{{1}}} is a link to the referenced article. A second unnamed parameter will replace "more information" and a third will replace the text which refers to the linked article. For example, {{for|cosmere|oodles of information|this page about the cosmere}} produces:

The template is intended to be brief, but additional optional parameters |pre= and |post= allow you to add additional explanatory text at the beginning or end of the displayed text, if necessary. For example, {{for|Wulfden the First|the first Wyrn named Wulfden|pre='Wulfden' redirects here}} produces:

Articles using Template[edit]