Template:Link: Difference between revisions

From Ephinea PSO Wiki
mNo edit summary
m (test pt 2)
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[File:{{{icon|tool}}}_icon.png|16px|middle|link={{{1|}}}]][[{{{1|}}}|<span class="{{{color|normal}}}">{{{pre|}}} {{{1|}}} {{{post|}}}</span>]]<noinclude>
<span style="display: inline-block;">{{#if:{{{icon|}}}|
{{#switch:{{{icon}}}
| sword
| gun
| cane
| frame
| unit
| shield
| mag
| disk
| mate
| fluid
| tool
| meseta
| trap
| untekked
| quest
| quest category
| viridia
| greenill
| skyly
| bluefull
| purplenum
| pinkal
| redria
| oran
| yellowboze
| whitill
| male
| female = [[File:{{{icon}}}_icon.png|16px|middle|link={{#if:{{{nolink|}}}||{{#ifeq:{{PAGENAME}}|{{{1|}}}||{{{1|}}}}}}}]]
| #default = [[File:{{{icon}}}.png|16px|middle|link={{#if:{{{nolink|}}}||{{#ifeq:{{PAGENAME}}|{{{1|}}}||{{{1|}}}}}}}]]
}}}}{{#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>
<br>
{{Link|icon=gun|color=attributes|pre=Charge|Vulcan|post=+9}}
{{ItemLink|icon=gun|color=attributes|pre=Charge|Vulcan|post=+9}}
<pre>
{{Link|icon=sword|Saber}}
</pre>
{{Link|icon=sword|Saber}}
<pre>
5-{{Link|color=rare|Event Egg|Egg}} Gamble
</pre>
5-{{Link|color=rare|Event Egg|Egg}} Gamble
<pre>
{{Link|icon=shifta|Shifta}} users
</pre>
{{Link|icon=shifta|Shifta}} users
<pre>
{{Link|icon=untekked|color=untekked|nolink=1|Special Weapon}}
</pre>
{{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