Template:For: Difference between revisions

From The Reed and Rite
mNo edit summary
mNo edit summary
Line 4: Line 4:


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|this St. Crispian's}}
{{for|St. Crispian's|more on Whereabouts Lane|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:


{| style="width: 100%; text-align: left; margin: auto;" class="wikitable"
{| style="width: 100%; text-align: left; margin: auto;" class="wikitable"
|+ Usage Examples
|- class="title"
|- class="title"
! style="width: 10%;" | Parameter !! style="width: 15%;" | Description !! style="width: 20%;" | Code !! style="width: 55%;" | Example
! style="width: 10%;" | Parameter !! style="width: 20%;" | Code !! style="width: 70%;" | Example
|-
|-
! colspan="4" style="text-align: center;" | Common Parameters
| style="text-align: center;" |  '''''Caption''''' || <pre>{{for|St. Crispian's|more on Whereabouts Lane|St. Crispian's}}</pre> || style="text-align: center;" | {{for|St. Crispian's|more on Whereabouts Lane|St. Crispian's}}
|-
|-
| style="text-align: center;" | '''''None''''' || Only the file name is passed. || <pre>{{Image|Pen.png}}</pre> || {{Image|Pen.png}}
| colspan="3" style="text-align: center;" | This is a test of a span description.
|-
|-
| style="text-align: center;" |  '''''Caption''''' || File name and caption are passed. || <pre>{{Image|Pen.png|This is a caption}}</pre> || {{Image|Pen.png|This is a caption}}
| style="text-align: center;" |  <code>artist=</code> || <pre>{{Image|Pen.png|This is a caption|artist=Declan Lion}}</pre> || {{Image|Pen.png|This is a caption|artist=Declan Lion}}
|-
|-
| style="text-align: center;" |  <code>artist=</code> || Specifies the artist's name for the image. || <pre>{{Image|Pen.png|This is a caption|artist=Declan Lion}}</pre> || {{Image|Pen.png|This is a caption|artist=Declan Lion}}
| style="text-align: center;" |  <code>side=left</code> || <pre>{{Image|Pen.png|This is a caption|side=left}}</pre> || {{Image|Pen.png|This is a caption|side=left}}
|-
|-
! colspan="4" style="text-align: center;" |  Alignment Parameters
| style="text-align: center;" |  <code>side=right</code> || <pre>{{Image|Pen.png|This is a caption|side=right}}</pre> || {{Image|Pen.png|This is a caption|side=right}}
|-
|-
| style="text-align: center;" |  <code>side=left</code> || Pushes the image over to the left, allowing text to flow around it. || <pre>{{Image|Pen.png|This is a caption|side=left}}</pre> || {{Image|Pen.png|This is a caption|side=left}}
| style="text-align: center;" |  <code>height=</code> || <pre>{{Image|Pen.png|This is a caption|height=150px}}</pre> || {{Image|Pen.png|This is a caption|height=150px}}
|-
|-
| style="text-align: center;" |  <code>side=right</code> || Pushes the image over to the right, allowing text to flow around it. || <pre>{{Image|Pen.png|This is a caption|side=right}}</pre> || {{Image|Pen.png|This is a caption|side=right}}
| style="text-align: center;" |  <code>width=</code> || <pre>{{Image|Pen.png|This is a caption|width=200px}}</pre> || {{Image|Pen.png|This is a caption|width=200px}}
|-
|-
! colspan="4" style="text-align: center;" |  Resizing Parameters
| style="text-align: center;" |  <code>link=</code> <br>'''(Internal)'''|| <pre>{{Image|Pen.png|Click here for more details on [[Emma M. Lion]]|link=Emma M. Lion}}</pre> || {{Image|Pen.png|Click here for more details on [[Emma M. Lion]]|link=Emma M. Lion}}
|-
|-
| style="text-align: center;" |  <code>height=</code> || Sets the height of the image. If set, the width will adjust automatically to maintain aspect ratio. || <pre>{{Image|Pen.png|This is a caption|height=150px}}</pre> || {{Image|Pen.png|This is a caption|height=150px}}
| style="text-align: center;" |  <code>link=</code> <br>'''(External)''' || <pre>{{Image|Pen.png|Click here for more details on [https://www.bethbrower.com Beth Brower]|link=https://www.bethbrower.com}}</pre> || {{Image|Pen.png|Click here for more details on [https://www.bethbrower.com Beth Brower]|link=https://www.bethbrower.com}}
|-
| style="text-align: center;" |  <code>width=</code> || Sets the width of the image. If set, the height will adjust automatically to maintain aspect ratio. || <pre>{{Image|Pen.png|This is a caption|width=200px}}</pre> || {{Image|Pen.png|This is a caption|width=200px}}
|-
! colspan="4" style="text-align: center;" |  Link Parameters
|-
| style="text-align: center;" |  <code>link=</code> <br>'''(Internal)'''|| Makes the image clickable, linking it to a specific internal URL. || <pre>{{Image|Pen.png|Click here for more details on [[Emma M. Lion]]|link=Emma M. Lion}}</pre> || {{Image|Pen.png|Click here for more details on [[Emma M. Lion]]|link=Emma M. Lion}}
|-
| style="text-align: center;" |  <code>link=</code> <br>'''(External)''' || Makes the image clickable, linking it to a specific external URL. || <pre>{{Image|Pen.png|Click here for more details on [https://www.bethbrower.com Beth Brower]|link=https://www.bethbrower.com}}</pre> || {{Image|Pen.png|Click here for more details on [https://www.bethbrower.com Beth Brower]|link=https://www.bethbrower.com}}
|}
|}
== Articles using Template ==
== Articles Using Template ==
<div class="navaid">This list is limited to 100 articles. For a full listing see [[Special: WhatLinksHere/{{FULLPAGENAME}}|here]].</div>
<div class="navaid">This list is limited to 100 articles. For a full listing see [[Special: WhatLinksHere/{{FULLPAGENAME}}|here]].</div>
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=0|limit=100}}
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=0|limit=100}}

Revision as of 03:52, 19 March 2025


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|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:

Parameter Code Example
Caption
{{for|St. Crispian's|more on Whereabouts Lane|St. Crispian's}}
This is a test of a span description.
artist=
{{Image|Pen.png|This is a caption|artist=Declan Lion}}
This is a caption
side=left
{{Image|Pen.png|This is a caption|side=left}}
This is a caption
side=right
{{Image|Pen.png|This is a caption|side=right}}
This is a caption
height=
{{Image|Pen.png|This is a caption|height=150px}}
This is a caption
width=
{{Image|Pen.png|This is a caption|width=200px}}
This is a caption
link=
(Internal)
{{Image|Pen.png|Click here for more details on [[Emma M. Lion]]|link=Emma M. Lion}}
Click here for more details on Emma M. Lion
link=
(External)
{{Image|Pen.png|Click here for more details on [https://www.bethbrower.com Beth Brower]|link=https://www.bethbrower.com}}
Click here for more details on Beth Brower

Articles Using Template