Template:Autofill tag/row: Difference between revisions
From Official Barotrauma Wiki
No edit summary |
(added c0tag) |
||
(29 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{doc}} | {{doc}} | ||
<includeonly><onlyinclude>{{#vardefine:c#|c{{#ifeq:{{{c1tag}}}|{{{1}}}|1|{{#ifeq:{{{c2tag}}}|{{{1}}}|2|{{#ifeq:{{{c3tag}}}|{{{1}}}|3|{{#ifeq:{{{c4tag}}}|{{{1}}}|4|{{#ifeq:{{{c5tag}}}|{{{1}}}|5|{{#ifeq:{{{c6tag}}}|{{{1}}}|6|{{#ifeq:{{{c7tag}}}|{{{1}}}|7|{{#ifeq:{{{c8tag}}}|{{{1}}}|8|{{#ifeq:{{{c9tag}}}|{{{1}}}|9|{{#ifeq:{{{c10tag}}}|{{{1}}}|10|{{#ifeq:{{{c11tag}}}|{{{1}}}|11|{{#ifeq:{{{c12tag}}}|{{{1}}}|12|{{#ifeq:{{{c13tag}}}|{{{1}}}|13|{{#ifeq:{{{c14tag}}}|{{{1}}}|14|{{#ifeq:{{{c15tag}}}|{{{1}}}|15|{{#ifeq:{{{c16tag}}}|{{{1}}}|16|{{#ifeq:{{{c17tag}}}|{{{1}}}|17|{{#ifeq:{{{c18tag}}}|{{{1}}}|18|{{#ifeq:{{{c19tag}}}|{{{1}}}|19}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} | <includeonly><onlyinclude>{{#vardefine:c#|c{{#ifeq:{{{c0tag}}}|{{{1}}}|0|{{#ifeq:{{{c1tag}}}|{{{1}}}|1|{{#ifeq:{{{c2tag}}}|{{{1}}}|2|{{#ifeq:{{{c3tag}}}|{{{1}}}|3|{{#ifeq:{{{c4tag}}}|{{{1}}}|4|{{#ifeq:{{{c5tag}}}|{{{1}}}|5|{{#ifeq:{{{c6tag}}}|{{{1}}}|6|{{#ifeq:{{{c7tag}}}|{{{1}}}|7|{{#ifeq:{{{c8tag}}}|{{{1}}}|8|{{#ifeq:{{{c9tag}}}|{{{1}}}|9|{{#ifeq:{{{c10tag}}}|{{{1}}}|10|{{#ifeq:{{{c11tag}}}|{{{1}}}|11|{{#ifeq:{{{c12tag}}}|{{{1}}}|12|{{#ifeq:{{{c13tag}}}|{{{1}}}|13|{{#ifeq:{{{c14tag}}}|{{{1}}}|14|{{#ifeq:{{{c15tag}}}|{{{1}}}|15|{{#ifeq:{{{c16tag}}}|{{{1}}}|16|{{#ifeq:{{{c17tag}}}|{{{1}}}|17|{{#ifeq:{{{c18tag}}}|{{{1}}}|18|{{#ifeq:{{{c19tag}}}|{{{1}}}|19}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} | ||
| {{#cargo_query:table=Items|fields=_pageName,identifier,name,icon|where=identifier{{=}}"{{{item}}}"|format=template|template=HyperlinkCargo|named args=yes|default=[[{{{item}}}]]}} | | {{#cargo_query:table=Items|fields=_pageName,identifier,name,icon|where=identifier{{=}}"{{{item}}}"|format=template|template=HyperlinkCargo{{!}}32|named args=yes|default=[[{{{item}}}]]}} | ||
| align=center | {{#ifeq:{{{ {{#var:c#}}notcampaign}}}|1| | | align=center | [[File:Checkmark {{#ifexpr:{{#ifeq:{{{ {{#var:c#}}notcampaign}}}|1|0|1}}and(({{{ {{#var:c#}}amount}}} > 0)or({{{ {{#var:c#}}maxamount}}} > 0))|True|False}}.png|32px]] | ||
| align=center | {{#ifeq:{{{ {{#var:c#}}amount|}}}|0|{{#ifexpr:{{{ {{#var:c#}}minamount}}}+{{{ {{#var:c#}}maxamount}}}>0 | | align=center | | ||
| align=center | {{#ifexpr:({{#if:{{{ {{#var:c#}}minamount|}}}|{{{ {{#var:c#}}minamount}}}|0}}+{{#if:{{{ {{#var:c#}}maxamount|}}}|{{{ {{#var:c#}}maxamount}}}|0}}+{{#if:{{{ {{#var:c#}}amount|}}}|{{{ {{#var:c#}}amount}}}|0}})>0|{{# | {{#ifeq:{{{ {{#var:c#}}amount|}}}|0 | ||
|{{#ifexpr:{{{ {{#var:c#}}minamount}}}+{{{ {{#var:c#}}maxamount}}}>0 | |||
|{{#ifeq:{{{ {{#var:c#}}minamount}}}|{{{ {{#var:c#}}maxamount}}} | |||
|{{#ifeq:{{{ {{#var:c#}}minamount|}}}|0 | |||
|<span style="color:#808080">0</span> | |||
|{{{ {{#var:c#}}minamount|}}} | |||
}} | |||
|{{{ {{#var:c#}}minamount}}}-{{{ {{#var:c#}}maxamount}}} | |||
}} | |||
|<span style="color:#808080">0</span> | |||
}} | |||
|{{{ {{#var:c#}}amount|}}} | |||
}} | |||
| align=center | {{#ifexpr:({{#if:{{{ {{#var:c#}}minamount|}}}|{{{ {{#var:c#}}minamount}}}|0}}+{{#if:{{{ {{#var:c#}}maxamount|}}}|{{{ {{#var:c#}}maxamount}}}|0}}+{{#if:{{{ {{#var:c#}}amount|}}}|{{{ {{#var:c#}}amount}}}|0}})>0|{{#ifeq:{{{ {{#var:c#}}spawnprobability|}}}|0|<span style="color:#808080">Cleanup only</span>|{{#expr:{{{ {{#var:c#}}spawnprobability}}}*100}}%|100%}}|<span style="color:#808080">Cleanup only</span>}}</onlyinclude></includeonly><noinclude><!-- | |||
This is what we want: | This is what we want: | ||
Line 17: | Line 30: | ||
if amount defined and >0: amount=amount | if amount defined and >0: amount=amount | ||
if amount undefined and minamount/maxamount defined: amount=minamount-maxamount | if amount undefined and minamount/maxamount defined: amount=minamount-maxamount | ||
if min==max: amount=minamount | if min==max: amount=minamount--></noinclude> | ||
--></noinclude> |
Latest revision as of 16:03, 24 April 2024
Item | Campaign Spawn | Amount | Probability |
---|---|---|---|
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
100% |
![]() |
![]() |
1 |
100% |
![]() |
![]() |
1 |
100% |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
100% |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() ![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
lightcomponentround | ![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
100% |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
100% |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
4-6 |
100% |
![]() |
![]() |
1 |
100% |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
![]() |
![]() |
1 |
Cleanup only |
The above documentation is transcluded from Template:Autofill tag/row/doc. (edit | history)