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}}}}}}<!-- |
− | + | 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>}}}}}}<!-- |
− | + | Display IL and effects -->{{IL|{{#var:curr_quality}}}} {{#ifexpr:{{#explode:{{{amount}}}|#|{{#var:effectnum}}}}>0|+}}{{#explode:{{{amount}}}|#|{{#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= ({{#var:curr_bis_m}})}}}}{{#ifexpr:{{#count:{{#var:curr_bis_m}}|Shared}}>0|{{#switch:{{#explode:{{{#userparam}}}|#|2}}|bold=</b>|italic=</i>|underline=</u>|text= ({{#var:curr_bis_m}})}}}}}}<!-- | |
− | + | Apply general style at back -->{{#switch:{{#explode:{{{#userparam}}}|#|0}}|tablelist|ul=</li>|tight=<br>}}<!-- | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | Internal style by BiS message request (front) | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | Display IL and effects | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | Internal style by BiS message request (back) | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | Apply general style at back | ||
− | |||
-->}} | -->}} |