Template:PSO link: Difference between revisions
From Ephinea PSO Wiki
(For quickly assigning icons to internal links relevant to most types of PSO entities.) |
(Added special case for Meseta) |
||
Line 1: | Line 1: | ||
[[File:{{{1}}}_icon.png|link={{{2}}}]][[{{{2}}}| ]][[{{{2}}}]]<noinclude> | {{#switch:{{{1}}} | ||
|meseta|Meseta = [[File:Meseta_icon.png|link=Meseta]][[Meseta| ]][[Meseta]] | |||
|#default = [[File:{{{1}}}_icon.png|link={{{2}}}]][[{{{2}}}| ]][[{{{2}}}]]}}<noinclude> | |||
==Usage== | ==Usage== | ||
<pre> | <pre> | ||
Line 7: | Line 9: | ||
Useful for quickly assigning icons to internal links relevant to most types of PSO entities. | Useful for quickly assigning icons to internal links relevant to most types of PSO entities. | ||
<br> | |||
To reduce repetition, a special case is made for Meseta to not require the second parameter, though is optionally allowed. | |||
Alternative to using [[Template:PSO icon]] alongside a linked article, as | Alternative to using [[Template:PSO icon]] alongside a linked article, as '''Template:PSO link''' allows the icon to also link the linked article. | ||
Contrast with: | Contrast with: | ||
Line 15: | Line 19: | ||
</pre> | </pre> | ||
== | ==Examples== | ||
<pre> | <pre> | ||
{{PSO link|sword|Saber}} | {{PSO link|sword|Saber}} | ||
</pre> | </pre> | ||
{{PSO link|sword|Saber}} | {{PSO link|sword|Saber}} | ||
<pre> | |||
{{PSO link|meseta}} | |||
</pre> | |||
{{PSO link|meseta}} | |||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 20:03, 16 December 2021
[[File:{{{1}}}_icon.png|link={{{2}}}]][[{{{2}}}| ]][[{{{2}}}]]
Usage
{{PSO link|iconPrefix|article}}
A list of icons currently suitable for this template as of this writing can be found here.
Useful for quickly assigning icons to internal links relevant to most types of PSO entities.
To reduce repetition, a special case is made for Meseta to not require the second parameter, though is optionally allowed.
Alternative to using Template:PSO icon alongside a linked article, as Template:PSO link allows the icon to also link the linked article.
Contrast with:
[[File:Untekked_icon.png|link=Tekking]][[Tekking]]
Examples
{{PSO link|sword|Saber}}
{{PSO link|meseta}}