Template:Effect: Difference between revisions

245 bytes added ,  15:50, 24 November 2021
add damagetypes
mNo edit summary
(add damagetypes)
Line 1: Line 1:
<noinclude>{{#cargo_declare:_table=Effects|DisplayName=Wikitext|PlainName=String|Description=Wikitext|EffectID=String|Type=String|DontIndex=Boolean}}
<noinclude>{{#cargo_declare:_table=Effects|DisplayName=Wikitext|PlainName=String|Description=Wikitext|EffectID=String|Type=String|DamageTypes=String|DontIndex=Boolean}}
</noinclude><includeonly>{{#cargo_store:_table=Effects|DisplayName={{{title|{{qud text|{{{1|}}}|notxml}} }}}
</noinclude><includeonly>{{#cargo_store:_table=Effects|DisplayName={{{title|{{qud text|{{{1|}}}|notxml}} }}}
|PlainName={{#titleparts:{{#if:{{{1|}}}|{{strip color|{{{name|{{{1|}}}}}}|notxml}}|{{StripFormatting|1={{{title|{{#titleparts:{{PAGENAME}}}} }}} }} }} }}
|PlainName={{#titleparts:{{#if:{{{1|}}}|{{strip color|{{{name|{{{1|}}}}}}|notxml}}|{{StripFormatting|1={{{title|{{#titleparts:{{PAGENAME}}}} }}} }} }} }}
Line 5: Line 5:
|EffectID={{#ifeq:{{{dontindex|0}}}|0|{{{idoverride|{{{id|{{{3|}}}}}}}}} }}
|EffectID={{#ifeq:{{{dontindex|0}}}|0|{{{idoverride|{{{id|{{{3|}}}}}}}}} }}
|Type = {{{type|{{{4|0000000000000000000000000001}}}}}}
|Type = {{{type|{{{4|0000000000000000000000000001}}}}}}
|DamageTypes = {{{damagetypes|}}}
|DontIndex={{{dontindex|0}}}}}<!--
|DontIndex={{{dontindex|0}}}}}<!--


Line 19: Line 20:
| rows =
| rows =
{{infobox row|ID|{{{id|{{{3|}}}}}} }}
{{infobox row|ID|{{{id|{{{3|}}}}}} }}
{{#if:{{{4|}}}{{{type|}}} | {{infobox row|Type|{{#invoke:EffectType|getTypes|{{{4|{{{type}}}}}} }} }}|[[Category:Effects]]}}}}
{{#if:{{{4|}}}{{{type|}}} | {{infobox row|Type|{{#invoke:EffectType|getTypes|{{{4|{{{type}}}}}} }} }}|[[Category:Effects]]}}
{{#if:{{{damagetypes|}}} | {{infobox row|[[Damage Type]]|{{{damagetypes}}}}} }}
}}
{{qud look|text={{{desc|{{{2|}}}}}}|title={{{title|{{{1|}}} }}}|bottomtext=none|bordercolor=y }}</includeonly><noinclude>[[Category:Cargo Store Templates]]
{{qud look|text={{{desc|{{{2|}}}}}}|title={{{title|{{{1|}}} }}}|bottomtext=none|bordercolor=y }}</includeonly><noinclude>[[Category:Cargo Store Templates]]
for use in a table. 1st argument is the name of the effect, and the second argument is the description. third is id. fourth is effect type in base 2.
for use in a table. 1st argument is the name of the effect, and the second argument is the description. third is id. fourth is effect type in base 2.
Line 41: Line 44:
| type
| type
| a string of binary numbers that denotes the type of effect. this is from GetEffectType but converted into binary.
| a string of binary numbers that denotes the type of effect. this is from GetEffectType but converted into binary.
|-
| damagetypes
| a list (<code></br></code> delimited) of damage types caused by this effect, if applicable.
|-
|-
| dontindex
| dontindex