Template:For: Difference between revisions

From The Reed and Rite
No edit summary
mNo edit summary
Line 10: Line 10:
{{for|Summary:The Unselected Journals of Emma M. Lion: Volume 1#1 April 1883|Emma M. Lion the first|pre="Emma M. Lion" redirects here|3=Emma M. Lion}}
{{for|Summary:The Unselected Journals of Emma M. Lion: Volume 1#1 April 1883|Emma M. Lion the first|pre="Emma M. Lion" redirects here|3=Emma M. Lion}}


 
{| style="width: 100%; text-align: left; margin: auto;" class="wikitable"
[[Category:Navigation Aids]]
|+ Usage Examples
[[Category:Templates]]
|- class="title"
 
! style="width: 10%;" | Parameter !! style="width: 15%;" | Description !! style="width: 20%;" | Code !! style="width: 55%;" | Example
|-
! colspan="4" style="text-align: center;" |  Common Parameters
|-
| style="text-align: center;" |  '''''None''''' || Only the file name is passed. || <pre>{{Image|Pen.png}}</pre> || {{Image|Pen.png}}
|-
| 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> || 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}}
|-
! colspan="4" style="text-align: center;" |  Alignment Parameters
|-
| 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>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}}
|-
! colspan="4" style="text-align: center;" |  Resizing Parameters
|-
| 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>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}}
[[Category:Navigation]]
[[Category:Templates]]

Revision as of 03:36, 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:

Usage Examples
Parameter Description Code Example
Common Parameters
None Only the file name is passed.
{{Image|Pen.png}}
Caption File name and caption are passed.
{{Image|Pen.png|This is a caption}}
This is a caption
artist= Specifies the artist's name for the image.
{{Image|Pen.png|This is a caption|artist=Declan Lion}}
This is a caption
Alignment Parameters
side=left Pushes the image over to the left, allowing text to flow around it.
{{Image|Pen.png|This is a caption|side=left}}
This is a caption
side=right Pushes the image over to the right, allowing text to flow around it.
{{Image|Pen.png|This is a caption|side=right}}
This is a caption
Resizing Parameters
height= Sets the height of the image. If set, the width will adjust automatically to maintain aspect ratio.
{{Image|Pen.png|This is a caption|height=150px}}
This is a caption
width= Sets the width of the image. If set, the height will adjust automatically to maintain aspect ratio.
{{Image|Pen.png|This is a caption|width=200px}}
This is a caption
Link Parameters
link=
(Internal)
Makes the image clickable, linking it to a specific internal URL.
{{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)
Makes the image clickable, linking it to a specific external URL.
{{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