Template:PassiveIcon: Difference between revisions

From Portals of Phereon Wiki
Content added Content deleted
portalsofphereon>Olaroll
No edit summary
portalsofphereon>Olaroll
No edit summary
Line 88: Line 88:
}}}}<!--
}}}}<!--
Error detection
Error detection
-->{{#if{{#explode:{{{1}}}|{{{delim|/}}}|8}}|<span class="error">[[Template:PassiveIcon]]: Too many entries; maximum is 8.</span>[[Category:Template errors]]}}</includeonly><!--
-->{{#if{{#explode:{{{1}}}|{{{delim|/}}}|8}}|{{#explode:{{{1}}}|{{{delim|/}}}|8}}<span class="error">[[Template:PassiveIcon]]: Too many entries; maximum is 8.</span>[[Category:Template errors]]}}</includeonly><!--


--><noinclude>{{Documentation}}</noinclude>
--><noinclude>{{Documentation}}</noinclude>

Revision as of 02:00, 18 November 2019

[view | edit | purge]Documentation
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:

  • attack = On attack
  • defend = On getting attacked
  • seduce = On seduce
  • seduced = On getting seduced
  • fuck = On fuck
  • move = On move
  • death = On death
  • turnstart = On turn start{{#ifturnend = turnend|turnend = turnendTemplate:PassiveIcon: Too many entries; maximum is 8.}}


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/>
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? - On seduce
OwO also - On getting attacked
OwO I'm sorry for the - On move
OwO bad joke - On attack
OwO thanks - On getting attacked{{#if|Template:PassiveIcon: Too many entries; maximum is 8.}}

[view | edit | purge]The above documentation is transcluded fromTemplate:PassiveIcon/doc.