Template:PassiveIcon: Difference between revisions
From Portals of Phereon Wiki
Content added Content deleted
portalsofphereon>Olaroll No edit summary |
m (Added global passive) |
||
(72 intermediate revisions by 4 users not shown) | |||
Line 1:
<includeonly>{{#
|attack = [[File:StrengthIcon.png|
|
|
|
|seduced = [[File:LResIcon.png|On getting seduced|{{{px|14}}}px]]
|move = [[File:SpeedIcon.png|On move|{{{px|14}}}px]]
|
|
|
|
|combatstart = [[File:CombatStartIcon.svg|On combat start|{{{px|14}}}px]]
|combatend = [[File:CombatEndIcon.png|On combat end|{{{px|14}}}px]]
|
}}}}<!--
-->{{#if:{{#explode:{{{1|}}}|{{{delim|/}}}|1}}|{{#replace:{{{prefix|}}}{{#explode:{{{1}}}|{{{delim|/}}}|1}}{{{suffix|<nowiki/> <nowiki/>}}}|{{#ifeq:on|{{#explode:{{#explode:{{{1}}}|{{{delim|/}}}|1}}| |-2}}|<nowiki/> <nowiki/>on}}<nowiki/> <nowiki/>{{#explode:{{#explode:{{{1}}}|{{{delim|/}}}|1}}| |-1}}|}}{{#switch:{{lc:{{#explode:{{#explode:{{{1}}}|{{{delim|/}}}|1}}| |-1}}}}
|
|attacked = [[File:ArmorIcon.png|On getting attacked|{{{px|14}}}px]]
|defend = [[File:ArmorIcon.png|On getting attacked|{{{px|14}}}px]]
|
|
|
|
|fuck = [[File:SexIcon.svg|On fuck|{{{px|14}}}px]]
|turnstart = [[File:TurnStartIcon.svg|On turn start|{{{px|14}}}px]]
|
|
|
|
}}}}<!--
-->{{#if:{{#explode:{{{1|}}}|{{{delim|/}}}|2}}|{{#replace:{{{prefix|}}}{{#explode:{{{1}}}|{{{delim|/}}}|2}}{{{suffix|<nowiki/> <nowiki/>}}}|{{#ifeq:on|{{#explode:{{#explode:{{{1}}}|{{{delim|/}}}|2}}| |-2}}|<nowiki/> <nowiki/>on}}<nowiki/> <nowiki/>{{#explode:{{#explode:{{{1}}}|{{{delim|/}}}|2}}| |-1}}|}}{{#switch:{{lc:{{#explode:{{#explode:{{{1}}}|{{{delim|/}}}|2}}| |-1}}}}
|attack = [[File:StrengthIcon.png|On attack|{{{px|14}}}px]]
|attacked = [[File:ArmorIcon.png|On getting attacked|{{{px|14}}}px]]
|defend = [[File:ArmorIcon.png|On getting attacked|{{{px|14}}}px]]
|seduce = [[File:HeartIcon.png|On seduce|{{{px|14}}}px]]
|seduced = [[File:LResIcon.png|On getting seduced|{{{px|14}}}px]]
|move = [[File:SpeedIcon.png|On move|{{{px|14}}}px]]
|death = [[File:SkullIcon.svg|On death|{{{px|14}}}px]]
|fuck = [[File:SexIcon.svg|On fuck|{{{px|14}}}px]]
|turnstart = [[File:TurnStartIcon.svg|On turn start|{{{px|14}}}px]]
|turnend = [[File:TurnEndIcon.svg|On turn end|{{{px|14}}}px]]
|combatstart = [[File:CombatStartIcon.svg|On combat start|{{{px|14}}}px]]
|combatend = [[File:CombatEndIcon.png|On combat end|{{{px|14}}}px]]
|global = [[File:GlobalIcon.png|Global effect|{{{px|14}}}px]]
}}}}<!--
-->{{#if:{{#explode:{{{1|}}}|{{{delim|/}}}|3}}|{{#replace:{{{prefix|}}}{{#explode:{{{1}}}|{{{delim|/}}}|3}}{{{suffix|<nowiki/> <nowiki/>}}}|{{#ifeq:on|{{#explode:{{#explode:{{{1}}}|{{{delim|/}}}|3}}| |-2}}|<nowiki/> <nowiki/>on}}<nowiki/> <nowiki/>{{#explode:{{#explode:{{{1}}}|{{{delim|/}}}|3}}| |-1}}|}}{{#switch:{{lc:{{#explode:{{#explode:{{{1}}}|{{{delim|/}}}|3}}| |-1}}}}
|attack = [[File:StrengthIcon.png|On attack|{{{px|14}}}px]]
|attacked = [[File:ArmorIcon.png|On getting attacked|{{{px|14}}}px]]
|defend = [[File:ArmorIcon.png|On getting attacked|{{{px|14}}}px]]
|seduce = [[File:HeartIcon.png|On seduce|{{{px|14}}}px]]
|seduced = [[File:LResIcon.png|On getting seduced|{{{px|14}}}px]]
|move = [[File:SpeedIcon.png|On move|{{{px|14}}}px]]
|death = [[File:SkullIcon.svg|On death|{{{px|14}}}px]]
|fuck = [[File:SexIcon.svg|On fuck|{{{px|14}}}px]]
|turnstart = [[File:TurnStartIcon.svg|On turn start|{{{px|14}}}px]]
|turnend = [[File:TurnEndIcon.svg|On turn end|{{{px|14}}}px]]
|combatstart = [[File:CombatStartIcon.svg|On combat start|{{{px|14}}}px]]
|combatend = [[File:CombatEndIcon.png|On combat end|{{{px|14}}}px]]
|global = [[File:GlobalIcon.png|Global effect|{{{px|14}}}px]]
}}}}<!--
-->{{#if:{{#explode:{{{1|}}}|{{{delim|/}}}|4}}|{{#replace:{{{prefix|}}}{{#explode:{{{1}}}|{{{delim|/}}}|4}}{{{suffix|<nowiki/> <nowiki/>}}}|{{#ifeq:on|{{#explode:{{#explode:{{{1}}}|{{{delim|/}}}|4}}| |-2}}|<nowiki/> <nowiki/>on}}<nowiki/> <nowiki/>{{#explode:{{#explode:{{{1}}}|{{{delim|/}}}|4}}| |-1}}|}}{{#switch:{{lc:{{#explode:{{#explode:{{{1}}}|{{{delim|/}}}|4}}| |-1}}}}
|attack = [[File:StrengthIcon.png|On attack|{{{px|14}}}px]]
|attacked = [[File:ArmorIcon.png|On getting attacked|{{{px|14}}}px]]
|defend = [[File:ArmorIcon.png|On getting attacked|{{{px|14}}}px]]
|seduce = [[File:HeartIcon.png|On seduce|{{{px|14}}}px]]
|seduced = [[File:LResIcon.png|On getting seduced|{{{px|14}}}px]]
|move = [[File:SpeedIcon.png|On move|{{{px|14}}}px]]
|death = [[File:SkullIcon.svg|On death|{{{px|14}}}px]]
|fuck = [[File:SexIcon.svg|On fuck|{{{px|14}}}px]]
|turnstart = [[File:TurnStartIcon.svg|On turn start|{{{px|14}}}px]]
|turnend = [[File:TurnEndIcon.svg|On turn end|{{{px|14}}}px]]
|combatstart = [[File:CombatStartIcon.svg|On combat start|{{{px|14}}}px]]
|combatend = [[File:CombatEndIcon.png|On combat end|{{{px|14}}}px]]
|global = [[File:GlobalIcon.png|Global effect|{{{px|14}}}px]]
}}}}<!--
-->{{#if:{{#explode:{{{1|}}}|{{{delim|/}}}|5}}|{{#replace:{{{prefix|}}}{{#explode:{{{1}}}|{{{delim|/}}}|5}}{{{suffix|<nowiki/> <nowiki/>}}}|{{#ifeq:on|{{#explode:{{#explode:{{{1}}}|{{{delim|/}}}|5}}| |-2}}|<nowiki/> <nowiki/>on}}<nowiki/> <nowiki/>{{#explode:{{#explode:{{{1}}}|{{{delim|/}}}|5}}| |-1}}|}}{{#switch:{{lc:{{#explode:{{#explode:{{{1}}}|{{{delim|/}}}|5}}| |-1}}}}
|attack = [[File:StrengthIcon.png|On attack|{{{px|14}}}px]]
|attacked = [[File:ArmorIcon.png|On getting attacked|{{{px|14}}}px]]
|defend = [[File:ArmorIcon.png|On getting attacked|{{{px|14}}}px]]
|seduce = [[File:HeartIcon.png|On seduce|{{{px|14}}}px]]
|seduced = [[File:LResIcon.png|On getting seduced|{{{px|14}}}px]]
|move = [[File:SpeedIcon.png|On move|{{{px|14}}}px]]
|death = [[File:SkullIcon.svg|On death|{{{px|14}}}px]]
|fuck = [[File:SexIcon.svg|On fuck|{{{px|14}}}px]]
|turnstart = [[File:TurnStartIcon.svg|On turn start|{{{px|14}}}px]]
|turnend = [[File:TurnEndIcon.svg|On turn end|{{{px|14}}}px]]
|combatstart = [[File:CombatStartIcon.svg|On combat start|{{{px|14}}}px]]
|combatend = [[File:CombatEndIcon.png|On combat end|{{{px|14}}}px]]
|global = [[File:GlobalIcon.png|Global effect|{{{px|14}}}px]]
}}}}<!--
-->{{#if:{{#explode:{{{1|}}}|{{{delim|/}}}|6}}|{{#replace:{{{prefix|}}}{{#explode:{{{1}}}|{{{delim|/}}}|6}}{{{suffix|<nowiki/> <nowiki/>}}}|{{#ifeq:on|{{#explode:{{#explode:{{{1}}}|{{{delim|/}}}|6}}| |-2}}|<nowiki/> <nowiki/>on}}<nowiki/> <nowiki/>{{#explode:{{#explode:{{{1}}}|{{{delim|/}}}|6}}| |-1}}|}}{{#switch:{{lc:{{#explode:{{#explode:{{{1}}}|{{{delim|/}}}|6}}| |-1}}}}
|attack = [[File:StrengthIcon.png|On attack|{{{px|14}}}px]]
|attacked = [[File:ArmorIcon.png|On getting attacked|{{{px|14}}}px]]
|defend = [[File:ArmorIcon.png|On getting attacked|{{{px|14}}}px]]
|seduce = [[File:HeartIcon.png|On seduce|{{{px|14}}}px]]
|seduced = [[File:LResIcon.png|On getting seduced|{{{px|14}}}px]]
|move = [[File:SpeedIcon.png|On move|{{{px|14}}}px]]
|death = [[File:SkullIcon.svg|On death|{{{px|14}}}px]]
|fuck = [[File:SexIcon.svg|On fuck|{{{px|14}}}px]]
|turnstart = [[File:TurnStartIcon.svg|On turn start|{{{px|14}}}px]]
|turnend = [[File:TurnEndIcon.svg|On turn end|{{{px|14}}}px]]
|combatstart = [[File:CombatStartIcon.svg|On combat start|{{{px|14}}}px]]
|combatend = [[File:CombatEndIcon.png|On combat end|{{{px|14}}}px]]
|global = [[File:GlobalIcon.png|Global effect|{{{px|14}}}px]]
}}}}<!--
-->{{#if:{{#explode:{{{1|}}}|{{{delim|/}}}|7}}|{{#replace:{{{prefix|}}}{{#explode:{{{1}}}|{{{delim|/}}}|7}}{{{suffix|<nowiki/> <nowiki/>}}}|{{#ifeq:on|{{#explode:{{#explode:{{{1}}}|{{{delim|/}}}|7}}| |-2}}|<nowiki/> <nowiki/>on}}<nowiki/> <nowiki/>{{#explode:{{#explode:{{{1}}}|{{{delim|/}}}|7}}| |-1}}|}}{{#switch:{{lc:{{#explode:{{#explode:{{{1}}}|{{{delim|/}}}|7}}| |-1}}}}
|attack = [[File:StrengthIcon.png|On attack|{{{px|14}}}px]]
|attacked = [[File:ArmorIcon.png|On getting attacked|{{{px|14}}}px]]
|defend = [[File:ArmorIcon.png|On getting attacked|{{{px|14}}}px]]
|seduce = [[File:HeartIcon.png|On seduce|{{{px|14}}}px]]
|seduced = [[File:LResIcon.png|On getting seduced|{{{px|14}}}px]]
|move = [[File:SpeedIcon.png|On move|{{{px|14}}}px]]
|death = [[File:SkullIcon.svg|On death|{{{px|14}}}px]]
|fuck = [[File:SexIcon.svg|On fuck|{{{px|14}}}px]]
|turnstart = [[File:TurnStartIcon.svg|On turn start|{{{px|14}}}px]]
|turnend = [[File:TurnEndIcon.svg|On turn end|{{{px|14}}}px]]
|combatstart = [[File:CombatStartIcon.svg|On combat start|{{{px|14}}}px]]
|combatend = [[File:CombatEndIcon.png|On combat end|{{{px|14}}}px]]
|global = [[File:GlobalIcon.png|Global effect|{{{px|14}}}px]]
}}}}<!--
-->{{#if:{{#explode:{{{1|}}}|{{{delim|/}}}|8}}|{{#replace:{{{prefix|}}}{{#explode:{{{1}}}|{{{delim|/}}}|8}}{{{suffix|<nowiki/> <nowiki/>}}}|{{#ifeq:on|{{#explode:{{#explode:{{{1}}}|{{{delim|/}}}|8}}| |-2}}|<nowiki/> <nowiki/>on}}<nowiki/> <nowiki/>{{#explode:{{#explode:{{{1}}}|{{{delim|/}}}|8}}| |-1}}|}}{{#switch:{{lc:{{#explode:{{#explode:{{{1}}}|{{{delim|/}}}|8}}| |-1}}}}
|attack = [[File:StrengthIcon.png|On attack|{{{px|14}}}px]]
|attacked = [[File:ArmorIcon.png|On getting attacked|{{{px|14}}}px]]
|defend = [[File:ArmorIcon.png|On getting attacked|{{{px|14}}}px]]
|seduce = [[File:HeartIcon.png|On seduce|{{{px|14}}}px]]
|seduced = [[File:LResIcon.png|On getting seduced|{{{px|14}}}px]]
|move = [[File:SpeedIcon.png|On move|{{{px|14}}}px]]
|death = [[File:SkullIcon.svg|On death|{{{px|14}}}px]]
|fuck = [[File:SexIcon.svg|On fuck|{{{px|14}}}px]]
|turnstart = [[File:TurnStartIcon.svg|On turn start|{{{px|14}}}px]]
|turnend = [[File:TurnEndIcon.svg|On turn end|{{{px|14}}}px]]
|combatstart = [[File:CombatStartIcon.svg|On combat start|{{{px|14}}}px]]
|combatend = [[File:CombatEndIcon.png|On combat end|{{{px|14}}}px]]
|global = [[File:GlobalIcon.png|Global effect|{{{px|14}}}px]]
}}}}<!--
-->{{#if:{{#explode:{{{1|}}}|{{{delim|/}}}|9}}|{{#replace:{{{prefix|}}}{{#explode:{{{1}}}|{{{delim|/}}}|9}}{{{suffix|<nowiki/> <nowiki/>}}}|{{#ifeq:on|{{#explode:{{#explode:{{{1}}}|{{{delim|/}}}|9}}| |-2}}|<nowiki/> <nowiki/>on}}<nowiki/> <nowiki/>{{#explode:{{#explode:{{{1}}}|{{{delim|/}}}|9}}| |-1}}|}}{{#switch:{{lc:{{#explode:{{#explode:{{{1}}}|{{{delim|/}}}|9}}| |-1}}}}
|attack = [[File:StrengthIcon.png|On attack|{{{px|14}}}px]]
|attacked = [[File:ArmorIcon.png|On getting attacked|{{{px|14}}}px]]
|defend = [[File:ArmorIcon.png|On getting attacked|{{{px|14}}}px]]
|seduce = [[File:HeartIcon.png|On seduce|{{{px|14}}}px]]
|seduced = [[File:LResIcon.png|On getting seduced|{{{px|14}}}px]]
|move = [[File:SpeedIcon.png|On move|{{{px|14}}}px]]
|death = [[File:SkullIcon.svg|On death|{{{px|14}}}px]]
|fuck = [[File:SexIcon.svg|On fuck|{{{px|14}}}px]]
|turnstart = [[File:TurnStartIcon.svg|On turn start|{{{px|14}}}px]]
|turnend = [[File:TurnEndIcon.svg|On turn end|{{{px|14}}}px]]
|combatstart = [[File:CombatStartIcon.svg|On combat start|{{{px|14}}}px]]
|combatend = [[File:CombatEndIcon.png|On combat end|{{{px|14}}}px]]
|global = [[File:GlobalIcon.png|Global effect|{{{px|14}}}px]]
}}}}<!--
Error detection
-->{{#if:{{#explode:{{{1}}}|{{{delim|/}}}|10}}|<span class="error">[[Template:PassiveIcon]]: Too many entries; maximum is 10.</span>[[Category:Template errors]]}}</includeonly><!--
--><noinclude>{{Documentation}}</noinclude>
|
Latest revision as of 07:08, 25 June 2023
- Description
- Takes up to 10 delimiter separated strings, replaces the last word of each string with an appropriate icon and then returns it all as one string. Meant for adding icons to passive skills.
- Usage
Valid words that get replaced at the end are:
Extra parameters are:
- delim= sets the delimiter between strings (default=/)
- px= sets the image sizes (default=14)
- prefix= sets a prefix in front of each outputted string (default=)
- suffix= sets a suffix after each outputted string, but before the icon (default= )
- Use this to insert a string with spaces on the outside:
<nowiki/> only works with a single space on either side <nowiki/>
- Use this to insert a string with spaces on the outside:
- Example
Using this:
- Note: nowiki tags are being weird, check the source editor for the actual code
{{PassiveIcon|delim=%|prefix=<br>OwO<nowiki/> <nowiki/>|suffix= - |px=28|What's this? seduce%also defend%I'm sorry for the move%bad joke attack}}
Gets you this:
OwO What's this? -
OwO also -
OwO I'm sorry for the -
OwO bad joke -
OwO thanks -
[view | edit | purge]The above documentation is transcluded fromTemplate:PassiveIcon/doc.