Template:For: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
<includeonly><div class=navigation>{{#if:{{{pre|}}}|{{{pre}}}. }}''For {{{2|more | <includeonly><div class=navigation>{{#if:{{{pre|}}}|{{{pre}}}. }}''For {{{2|more information}}}, see [[{{{1}}}|{{{3|{{{1}}}|}}}]].{{#if:{{{post|}}}| {{{post}}}|}}''</div></includeonly> | ||
<noinclude>This template should be used when the need arises to provide a link on a similar or related topic. This is to help prevent confusion when articles have similar names. | |||
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|St. Crispian's|more on Whereabouts Lane|this St. Crispian's}}</nowiki></code> produces: | 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|St. Crispian's|more on Whereabouts Lane|this St. Crispian's}}</nowiki></code> produces: | ||
{{for|St. Crispian's|more on Whereabouts Lane|St. Crispian's}} | {{for|St. Crispian's|more on Whereabouts Lane|St. Crispian's}} | ||
{{for|St. Crispian's}} | |||
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|Emma M. Lion#Family|Emma M. Lion the first|pre="Emma M. Lion" redirects here}}</nowiki></code> produces: | 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|Emma M. Lion#Family|Emma M. Lion the first|pre="Emma M. Lion" redirects here}}</nowiki></code> produces: | ||
| Line 11: | Line 11: | ||
== Usage Examples == | |||
{| style="width: 100%; text-align: left; margin: auto;" class="wikitable" | {| style="width: 100%; text-align: left; margin: auto;" class="wikitable" | ||
|- class="title" | |- class="title" | ||
| Line 19: | Line 19: | ||
| colspan="2" style="text-align: center;" | This is a test of a span description. | | colspan="2" style="text-align: center;" | This is a test of a span description. | ||
|- | |- | ||
| <pre>{{for | | <pre>{{for|St. Crispian's}}</pre> || style="text-align: center;" | {{for|St. Crispian's}} | ||
|- | |- | ||
| rowspan="2" style="text-align: center;" | '''Caption''' | | rowspan="2" style="text-align: center;" | '''Caption''' | ||
Revision as of 17:08, 19 March 2025
This template should be used when the need arises to provide a link on a similar or related topic. This is to help prevent confusion when articles have similar names.
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|St. Crispian's|more on Whereabouts Lane|this St. Crispian's}} 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|Emma M. Lion#Family|Emma M. Lion the first|pre="Emma M. Lion" redirects here}} produces:
Usage Examples
| Parameter | Code | Example |
|---|---|---|
| Caption | This is a test of a span description. | |
{{for|St. Crispian's}} |
||
| Caption | This is a test of a span description. | |
{{for|St. Crispian's|more on Whereabouts Lane|St. Crispian's}} |
||
| Caption | This is a test of a span description. | |
{{for|St. Crispian's|more on Whereabouts Lane|St. Crispian's}} |
||
| Caption | This is a test of a span description. | |
{{for|St. Crispian's|more on Whereabouts Lane|St. Crispian's}} |
||
| Caption | This is a test of a span description. | |
{{for|St. Crispian's|more on Whereabouts Lane|St. Crispian's}} |
||
| Caption | This is a test of a span description. | |
{{for|St. Crispian's|more on Whereabouts Lane|St. Crispian's}} |
||
Articles Using Template
- The Unselected Journals of Emma M. Lion: Volume 1 (transclusion) (← links | edit)
- Lapis Lazuli (transclusion) (← links | edit)
- The St. Crispian's Gazette (transclusion) (← links | edit)