r52 vs r53
......
206206
{{{#!if result_a=this.a.length
207207
}}}출력 (@result_a@글자)}}}
208208
209
=== if 변수로 정의하는 틀 출력 테스트 ===
210
HP bar 하나 정도를 만들어볼 수 있다. (유효한 변수 이름 : this.percentage)
211
{{{#!if this.percentage=
212
}}}{{{#!if +percentage>=60
213
{{{#!if color="lightgreen"
214
}}}}}}{{{#!if (+percentage>=40)&&(+percentage<60)
215
{{{#!if color="yellow"
216
}}}}}}{{{#!if (+percentage>=20)&&(+percentage<40)
217
{{{#!if color="orange"
218
}}}}}}{{{#!if (+percentage>=0)&&(+percentage<20)
219
{{{#!if color="red"
220
}}}}}}{{{#!if range=(percentage!=null)&&((+percentage>=0)&&(+percentage<=100)), !range
221
{{{#!if color="gray", percentage=100+0
222
}}}}}}
223
{{{#!if percentage=percentage.toString()
224
}}}{{{#!wiki style="display: inline-table; border: 1px solid gray; width: 25%; height: 1em; background: linear-gradient(to right, @color@ @percentage@%, transparent @percentage@%);"
225
{{{#!wiki style="text-align: center; vertical-align: 50%"
226
HP {{{#!if range
227
@percentage@%}}}{{{#!if !range
228
???%}}}}}}}}}
209229