Template:For: Difference between revisions

From Songs of Syx Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| style="border: 1px rounded #222; padding: 3px; border-radius: 10px; background:#460B6F; margin-left: auto; margin-right: auto; width: {{{4}}}px; text-align: center;"
{| style="padding-left: 9px; padding-right: 9px; border-bottom: 2px solid #3a1455; border-right: 2px solid #3a1455; border-radius: 10px; background:#4d1b71; margin-left: auto; margin-right: auto; width: {{{4}}}px; text-align: center;"
|-
|-
| [[File:Info_icon.png|25px]]  This page is about {{{1}}}. For the page about {{{2}}}, see [[{{{3}}}]].
| [[File:Info_purple_icon.png|19px]]  This article is about {{{1}}}. For the article about {{{2}}}, see [[{{{3}}}]].
|}
|}
<noinclude>If you want to use this template, put <code><nowiki>{{for|<current page>|<similar page>|<link to similar page>|<width as #>}}</nowiki></code> at the top of the page.<br />
<noinclude><br>{{For/doc}}[[Category:Templates]]</noinclude>
This template is for pages that have similar topics or page names compared to another page.<br />
For example, there's a page on [[food]], and another on [[Food (buildings)|food related buildings]]. So both of those pages should have this template, to reduce possible confusion.<br />
''Note: When putting in the number for the width, adding the "px" part is not necessary, only the number itself.''
[[Category:Templates]]</noinclude>

Latest revision as of 07:15, 31 December 2021

 This article is about {{{1}}}. For the article about {{{2}}}, see [[{{{3}}}]].


Template Documentation

Description

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.

Syntax

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).

Examples

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.