Template:DropsLineTest: Difference between revisions

From Roat Pkz
Jump to navigation Jump to search
No edit summary
No edit summary
 
(234 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#ifeq: {{{1|}}}|no | <!-- Do nothing if first parameter is "no" -->
<includeonly>
{{#if: {{{2|}}} <!-- Check if second parameter is provided -->
| <!-- If second parameter is provided, start generating row -->
|-
|-
| {{plinkt|{{{1}}}}} <!-- Item name, linked to its page -->
|[[File:{{{pic|{{{1}}}}}}.png|link=]]
| {{{2|}}} <!-- Quantity -->
| {{{txt|{{{1}}}}}}
{{#ifeq: {{{3|}}}|yes | style="background-color: #ff6262;" | <!-- Drop Rate 1 (red) -->
| {{{quantity|}}}
{{#ifeq: {{{4|}}}|yes | style="background-color: #ff863c;" | <!-- Drop Rate 2 (orange) -->
|{{#invoke:DropsLineTest|generateOutput|{{{droprate|0}}}}}
{{#ifeq: {{{5|}}}|yes | style="background-color: #ff863c;" | <!-- Drop Rate 3 (orange) -->
|{{Price|{{{1}}}|{{{quantity|}}}}}
{{#ifeq: {{{6|}}}|yes | style="background-color: #ff863c;" | <!-- Drop Rate 4 (orange) -->
|-
{{#ifeq: {{{7|}}}|yes | style="background-color: #ff863c;" | <!-- Drop Rate 5 (orange) -->
</includeonly>
{{#ifeq: {{{8|}}}|yes | style="background-color: #ff863c;" | <!-- Drop Rate 6 (orange) -->
{{#ifeq: {{{9|}}}|yes | style="background-color: #ff863c;" | <!-- Drop Rate 7 (orange) -->
| <!-- Default style for other drop rates -->
}}}}
{{#ifeq: {{{3|}}}|yes | <center>1/1024</center> | <!-- Drop Rate 1 -->
{{#ifeq: {{{4|}}}|yes | <center>1/870</center> | <!-- Drop Rate 2 -->
{{#ifeq: {{{5|}}}|yes | <center>1/778</center> | <!-- Drop Rate 3 -->
{{#ifeq: {{{6|}}}|yes | <center>1/716</center> | <!-- Drop Rate 4 -->
{{#ifeq: {{{7|}}}|yes | <center>1/665</center> | <!-- Drop Rate 5 -->
{{#ifeq: {{{8|}}}|yes | <center>1/614</center> | <!-- Drop Rate 6 -->
{{#ifeq: {{{9|}}}|yes | <center>1/588</center> | <!-- Drop Rate 7 -->
}}}}
| {{Price|{{{1|}}}}} <!-- Price template to display the price -->
}}}}}}}}}}}}

Latest revision as of 17:14, 5 May 2024