Template:Link: Difference between revisions

From Ephinea PSO Wiki
m (Ryan moved page Template:ItemLink to Template:Link without leaving a redirect)
m (test pt 2)
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#if:{{{icon|}}}|
<span style="display: inline-block;">{{#if:{{{icon|}}}|
{{#switch:{{{icon}}}
{{#switch:{{{icon}}}
| sword
| sword
Line 16: Line 16:
| untekked
| untekked
| quest
| quest
| quest category
| viridia
| viridia
| greenill
| greenill
Line 27: Line 28:
| whitill
| whitill
| male
| male
| female = [[File:{{{icon}}}_icon.png|16px|middle|link={{#if:{{{nolink|}}}||{{{1|}}}}}]]
| female = [[File:{{{icon}}}_icon.png|16px|middle|link={{#if:{{{nolink|}}}||{{#ifeq:{{PAGENAME}}|{{{1|}}}||{{{1|}}}}}}}]]
| #default = [[File:{{{icon}}}.png|16px|middle|link={{#if:{{{nolink|}}}||{{{1|}}}}}]]
| #default = [[File:{{{icon}}}.png|16px|middle|link={{#if:{{{nolink|}}}||{{#ifeq:{{PAGENAME}}|{{{1|}}}||{{{1|}}}}}}}]]
}}}}{{#if:{{{nolink|}}}|<span class="{{{color|normal}}}">{{#if:{{{pre|}}}|{{{pre}}}&nbsp;}}{{#if:{{{text|}}}|{{{text}}}|{{{1|}}}}}{{#if:{{{post|}}}|&nbsp;{{{post}}}}}</span>|[[{{{1|}}}|<span class="{{{color|normal}}}">{{#if:{{{pre|}}}|{{{pre}}}&nbsp;}}{{#if:{{{text|}}}|{{{text}}}|{{{1|}}}}}{{#if:{{{post|}}}|&nbsp;{{{post}}}}}</span>]]}}<noinclude>
}}}}{{#if:{{{nolink|}}}|<span class="{{{color|link}}}">{{#if:{{{pre|}}}|{{{pre}}}&nbsp;}}{{#if:{{{text|}}}|{{{text}}}|{{#if:{{{2|}}}|{{{2}}}|{{{1|}}}}}}}{{#if:{{{post|}}}|&nbsp;{{{post}}}}}</span>|{{#ifeq:{{PAGENAME}}|{{{1|}}}|<span class="{{{color|link}}}">{{#if:{{{pre|}}}|{{{pre}}}&nbsp;}}{{#if:{{{text|}}}|{{{text}}}|{{#if:{{{2|}}}|'''{{{2}}}'''|'''{{{1|}}}'''}}}}{{#if:{{{post|}}}|'''&nbsp;{{{post}}}'''}}</span>|[[{{{1|}}}|<span class="{{{color|link}}}">{{#if:{{{pre|}}}|{{{pre}}}&nbsp;}}{{#if:{{{text|}}}|{{{text}}}|{{#if:{{{2|}}}|{{{2}}}|{{{1|}}}}}}}{{#if:{{{post|}}}|&nbsp;{{{post}}}}}</span>]]}}}}</span><noinclude>


==Usage and example==
==Usage and example==
<pre>
<pre>
{{ItemLink|icon=gun|color=attributes|pre=Charge|Vulcan|post=+9}}
{{Link|icon=gun|color=attributes|pre=Charge|Vulcan|post=+9}}
</pre>
</pre>
{{ItemLink|icon=gun|color=attributes|pre=Charge|Vulcan|post=+9}}
{{Link|icon=gun|color=attributes|pre=Charge|Vulcan|post=+9}}
<pre>
<pre>
{{ItemLink|icon=sword|Saber}}
{{Link|icon=sword|Saber}}
</pre>
</pre>
{{ItemLink|icon=sword|Saber}}
{{Link|icon=sword|Saber}}
<pre>
<pre>
5-{{ItemLink|color=rare|Event Egg|text=Egg}} Gamble
5-{{Link|color=rare|Event Egg|Egg}} Gamble
</pre>
</pre>
5-{{ItemLink|color=rare|Event Egg|text=Egg}} Gamble
5-{{Link|color=rare|Event Egg|Egg}} Gamble
<pre>
<pre>
{{ItemLink|icon=shifta|Shifta}} users
{{Link|icon=shifta|Shifta}} users
</pre>
</pre>
{{ItemLink|icon=shifta|Shifta}} users
{{Link|icon=shifta|Shifta}} users
<pre>
<pre>
{{ItemLink|icon=untekked|color=untekked|nolink=1|Special Weapon}}
{{Link|icon=untekked|color=untekked|nolink=1|Special Weapon}}
</pre>
</pre>
{{ItemLink|icon=untekked|color=untekked|nolink=1|Special Weapon}}
{{Link|icon=untekked|color=untekked|nolink=1|Special Weapon}}
</noinclude>
</noinclude>

Latest revision as of 18:33, 24 January 2024

[[|]]

Usage and example[edit source]

{{Link|icon=gun|color=attributes|pre=Charge|Vulcan|post=+9}}

Gun icon.pngCharge Vulcan +9

{{Link|icon=sword|Saber}}

Sword icon.pngSaber

5-{{Link|color=rare|Event Egg|Egg}} Gamble

5-Egg Gamble

{{Link|icon=shifta|Shifta}} users

Shifta.pngShifta users

{{Link|icon=untekked|color=untekked|nolink=1|Special Weapon}}

Untekked icon.pngSpecial Weapon