Template:PSO link: Difference between revisions

From Ephinea PSO Wiki
(For quickly assigning icons to internal links relevant to most types of PSO entities.)
 
mNo edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[File:{{{1}}}_icon.png|link={{{2}}}]][[{{{2}}}| ]][[{{{2}}}]]<noinclude>
{{#switch:{{{1}}}
|meseta|Meseta = [[File:Meseta_icon.png|16px|link=Meseta]][[Meseta]]
|#default = [[File:{{{1}}}_icon.png|16px|link={{{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 [[Template:PSO link]] allows the icon to also link the linked article.
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>


==Example==
==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>

Latest revision as of 20:00, 12 April 2023

[[File:{{{1}}}_icon.png|16px|link={{{2}}}]][[{{{2}}}]]

Usage[edit source]

{{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[edit source]

{{PSO link|sword|Saber}}

Sword icon.pngSaber

{{PSO link|meseta}}

Meseta icon.pngMeseta