Template:For: Difference between revisions
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
| [[File:Info_purple_icon.png|19px]] This article is about {{{1}}}. For the article about {{{2}}}, see [[{{{3}}}]]. | | [[File:Info_purple_icon.png|19px]] This article is about {{{1}}}. For the article about {{{2}}}, see [[{{{3}}}]]. | ||
|} | |} | ||
<noinclude> | <noinclude><br>{{For/doc}}[[Category:Templates]]</noinclude> | ||
[[Category:Templates]]</noinclude> |
Revision as of 22:50, 20 November 2021
This article is about {{{1}}}. For the article about {{{2}}}, see [[{{{3}}}]]. |
This template is for pages that have similar topics or page names compared to other pages. For example, there's a page on pottery, and another on the pottery building. So both of those pages should have this template to reduce possible confusion.
Place {{for|<CURRENT_PAGE>|<SIMILAR_PAGE>|<LINK_TO_SIMILAR_PAGE>|<WIDTH_IN_#>}}
at the top of the page. The link section only needs the page name - it doesn't need to be surrounded in brackets like standard links in source mode. The width part only requires the number, as it automatically goes by pixels, and no other units of measurement (such as percents).
Typing {{for|the color red|the color dark red|dark_red|650}}
produces the following:
This article is about the color red. For the article about the color dark red, see dark_red. |
Text can also be formatted, like this... {{for|'''{{color|the color red'''|lime}}|'''''the color dark red'''''|{{glow|dark_red|yellow|pink}}|670}}
...which produces the following:
This article is about the color red. For the article about the color dark red, see [[dark_red]]. |
Note how the link is now broken, so care should be taken to not format the link section to the point where it breaks the link.