Template:IconLink: Difference between revisions

From Ephinea PSO Wiki
m (testing a thing)
mNo edit summary
Line 18: Line 18:
| dark
| dark
| olga2
| olga2
| glow = {{#if:{{{nolink|}}}|{{Link|icon={{{1}}}|color={{{2|}}}|{{{3|}}}|{{{4|}}}|nolink=1}}|{{#ifeq:{{{3|}}}|{{PAGENAME}}|''{{Link|icon={{{1}}}|color={{{2|}}}|{{{3|}}}|{{{4|}}}|nolink=1}}''|{{Link|icon={{{1}}}|color={{{2|}}}|{{{3|}}}|{{{4|}}}}}}}}}
| glow = {{#if:{{{nolink|}}}|{{Link|icon={{{1}}}|color={{{2|}}}|{{{3|}}}|{{{4|}}}|nolink=1}}|{{#ifeq:{{{3|}}}|{{PAGENAME}}|'''{{Link|icon={{{1}}}|color={{{2|}}}|{{{3|}}}|{{{4|}}}|nolink=1}}'''|{{Link|icon={{{1}}}|color={{{2|}}}|{{{3|}}}|{{{4|}}}}}}}}}
| #default = {{#if:{{{nolink|}}}|{{Link|icon={{{1}}}|color=link|{{{2|}}}|{{{3|}}}|nolink=1}}|{{#ifeq:{{{2|}}}|{{PAGENAME}}|''{{Link|icon={{{1}}}|color={{{2|}}}|{{{3|}}}|nolink=1}}''|{{Link|icon={{{1}}}|color={{{2|}}}|{{{3|}}}}}}}}}}}<noinclude>
| #default = {{#if:{{{nolink|}}}|{{Link|icon={{{1}}}|color=link|{{{2|}}}|{{{3|}}}|nolink=1}}|{{#ifeq:{{{2|}}}|{{PAGENAME}}|'''{{Link|icon={{{1}}}|color={{{2|}}}|{{{3|}}}|nolink=1}}'''|{{Link|icon={{{1}}}|color={{{2|}}}|{{{3|}}}}}}}}}}}<noinclude>
==Usage and example==
==Usage and example==
<pre>{{IconLink|sword|Saber}}</pre>
<pre>{{IconLink|sword|Saber}}</pre>

Revision as of 05:03, 16 April 2023

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

Usage and example

{{IconLink|sword|Saber}}

Sword icon.png[[|]]

{{IconLink|gun|attributes|Launcher|Charge Launcher +15}}

Gun icon.pngCharge Launcher +15

{{IconLink|unit|rare|V101}}

Unit icon.pngV101

{{IconLink|cane|es|ES Windmill}}

Cane icon.pngES Windmill