Editing Template:Item Effects/template

From Fallen London Wiki

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 3: Line 3:
 
|{{#expr:{{#count:{{{quality}}}|#}}+1}}<!-- Loop for amount of effects -->
 
|{{#expr:{{#count:{{{quality}}}|#}}+1}}<!-- Loop for amount of effects -->
 
|{{#switch:{{#explode:{{{#userparam}}}|#|0}}|tablelist|ul=<li>}}<!-- Apply general style at front
 
|{{#switch:{{#explode:{{{#userparam}}}|#|0}}|tablelist|ul=<li>}}<!-- Apply general style at front
Separate current quality  
+
Separate current quality -->{{#vardefine:curr_quality|{{#explode:{{{quality}}}|#|{{#var:effectnum}}}}}}<!--
-->{{#vardefine:curr_quality|{{#explode:{{{quality}}}|#|{{#var:effectnum}}}}}}<!--
+
Separate current BiS message if exists for current quality-->{{#vardefine:curr_bis_m|none}}{{#ifexpr:{{#count:{{{bis_q|}}}|{{#var:curr_quality}}}}>0|{{#vardefine:curr_bis_m|{{#explode:{{{bis_m}}}|#|{{#loop:place|0|{{#expr:{{#count:{{{bis_q}}}|#}}+1}}|{{#ifeq:{{#var:curr_quality}}|{{#explode:{{{bis_q}}}|#|{{#var:place}}}}|{{#var:place}}}}}}}}}}}}<!--
Separate current BiS message if exists for current quality
+
Internal style by BiS message request (front)-->{{#ifeq:{{#var:curr_bis_m}}|none||{{#ifexpr:{{#count:{{#var:curr_bis_m}}|Strict}}>0|{{#switch:{{#explode:{{{#userparam}}}|#|1}}|bold=<b>|italic=<i>|underline=<u>}}}}{{#ifexpr:{{#count:{{#var:curr_bis_m}}|Shared}}>0|{{#switch:{{#explode:{{{#userparam}}}|#|2}}|bold=<b>|italic=<i>|underline=<u>}}}}}}<!--
-->{{#vardefine:curr_bis_m|none}}<!--
+
Display IL and effects -->{{IL|{{#var:curr_quality}}}}&nbsp;{{#ifexpr:{{#explode:{{{amount}}}|#|{{#var:effectnum}}}}>0|+}}{{#explode:{{{amount}}}|#|{{#var:effectnum}}}}<!--
-->{{#ifexpr:{{#count:{{{bis_q|}}}|{{#var:curr_quality}}}} > 0<!--
+
Internal style by BiS message request (back)-->{{#ifeq:{{#var:curr_bis_m}}|none||{{#ifexpr:{{#count:{{#var:curr_bis_m}}|Strict}}>0|{{#switch:{{#explode:{{{#userparam}}}|#|1}}|bold=</b>|italic=</i>|underline=</u>|text=&nbsp;({{#var:curr_bis_m}})}}}}{{#ifexpr:{{#count:{{#var:curr_bis_m}}|Shared}}>0|{{#switch:{{#explode:{{{#userparam}}}|#|2}}|bold=</b>|italic=</i>|underline=</u>|text=&nbsp;({{#var:curr_bis_m}})}}}}}}<!--
  -->|{{#vardefine:curr_bis_m<!--
+
Apply general style at back -->{{#switch:{{#explode:{{{#userparam}}}|#|0}}|tablelist|ul=</li>|tight=<br>}}<!--
    -->|{{#explode:{{{bis_m}}}|#<!--
 
      -->|{{#loop:place|0|{{#expr:{{#count:{{{bis_q}}}|#}}+1}}<!--
 
        -->|{{#ifeq:{{#var:curr_quality}}|{{#explode:{{{bis_q}}}|#|{{#var:place}}}}<!--
 
          -->|{{#var:place}}<!--
 
        -->}}<!--
 
      -->}}<!--
 
    -->}}<!--
 
  -->}}<!--
 
-->}}<!--
 
Internal style by BiS message request (front)
 
-->{{#ifeq:{{#var:curr_bis_m}}|none<!--
 
  -->|<!--
 
  -->|{{#ifexpr:{{#count:{{#var:curr_bis_m}}|Strict}} > 0<!--
 
    -->|{{#switch:{{#explode:{{{#userparam}}}|#|1}}|bold=<b>|italic=<i>|underline=<u>}}<!--
 
  -->}}<!--
 
  -->{{#ifexpr:{{#count:{{#var:curr_bis_m}}|Shared}} > 0<!--
 
    -->|{{#switch:{{#explode:{{{#userparam}}}|#|2}}|bold=<b>|italic=<i>|underline=<u>}}<!--
 
  -->}}<!--
 
-->}}<!--
 
Display IL and effects
 
-->{{IL|{{#var:curr_quality}}}}&nbsp;<!--
 
-->{{#ifexpr:{{#explode:{{{amount|0}}}|#|{{#var:effectnum}}}} > 0<!--
 
  -->|+<!--
 
-->}}<!--
 
-->{{#explode:{{{amount|}}}|#|{{#var:effectnum}}}}<!--
 
-->{{#explode:{{{gainamount|}}}|#|{{#var:effectnum}}}}<!--
 
Internal style by BiS message request (back)
 
-->{{#ifeq:{{#var:curr_bis_m}}|none<!--
 
  -->|<!--
 
  -->|{{#ifexpr:{{#count:{{#var:curr_bis_m}}|Strict}} > 0<!--
 
    -->|{{#switch:{{#explode:{{{#userparam}}}|#|1}}<!--
 
      -->|bold=</b><!--
 
      -->|italic=</i><!--
 
      -->|underline=</u><!--
 
      -->|text=&nbsp;({{#var:curr_bis_m}})<!--
 
      -->}}<!--
 
    -->}}<!--
 
    -->{{#ifexpr:{{#count:{{#var:curr_bis_m}}|Shared}} > 0<!--
 
    -->|{{#switch:{{#explode:{{{#userparam}}}|#|2}}<!--
 
      -->|bold=</b><!--
 
      -->|italic=</i><!--
 
      -->|underline=</u><!--
 
      -->|text=&nbsp;({{#var:curr_bis_m}})<!--
 
      -->}}<!--
 
    -->}}<!--
 
-->}}<!--
 
Apply general style at back
 
-->{{#switch:{{#explode:{{{#userparam}}}|#|0}}|tablelist|ul=</li>|tight=<br>}}<!--
 
 
-->}}
 
-->}}

Please note that all contributions to Fallen London Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see Fallen London Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)
Preview page with this template

Template used on this page: