Template:Effect: Difference between revisions

Jump to navigation Jump to search
863 bytes added ,  15:52, 24 November 2021
m
no edit summary
mNo edit summary
mNo edit summary
 
(9 intermediate revisions by 2 users not shown)
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:{{strip color|{{{name|{{{1|}}}}}}|notxml}}}}
|PlainName={{#titleparts:{{#if:{{{1|}}}|{{strip color|{{{name|{{{1|}}}}}}|notxml}}|{{StripFormatting|1={{{title|{{#titleparts:{{PAGENAME}}}} }}} }} }} }}
|Description={{qud text|{{{desc|{{{2|}}}}}}|notxml|unbolded}}
|Description={{qud text|{{{desc|{{{2|}}}}}}|notxml|unbolded}}
|EffectID={{{id|{{{3|}}}}}}
|EffectID={{#ifeq:{{{dontindex|0}}}|0|{{{idoverride|{{{id|{{{3|}}}}}}}}} }}
|Type = {{{type|{{{4|0000000000000000000000000001}}}}}}
|Type = {{{type|{{{4|0000000000000000000000000001}}}}}}
|DontIndex=0}}<!--
|DamageTypes = {{{damagetypes|}}}
|DontIndex={{{dontindex|0}}}}}<!--


   variable definitions
   variable definitions
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|Effect Type|{{#invoke:EffectType|getTypes|{{{4|{{{type}}}}}} }} }}|[[Category:Effects]]}}
{{qud look|text={{{desc|{{{2|}}}}}}|title={{{title|{{{1|}}} }}} }}</includeonly><noinclude>[[Category:Cargo Store Templates]]
{{#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]]
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.
You can also used named parameters.
You can also used named parameters.
Line 35: Line 38:
| id
| id
| the cs class name
| the cs class name
|-
| idoverride
| an override ID for the wiki that is stored in cargo instead of the real ID. Should be used only rarely (example: Power Skating shares ID with Sprinting, but we want to treat them separately)
|-
|-
| 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 (<nowiki></br></nowiki> delimited) of damage types caused by this effect, if applicable.
|-
| dontindex
| 'yes' if this effect should not be indexed (usually because it is a variant of a similar effect that shares the same effect ID). Non-indexed effects do not appear in the effects navbox.
|}
|}
<pre>
<pre>
Line 45: Line 57:
| id =  
| id =  
| type =  
| type =  
| damagetypes =
| gameversion =  
| gameversion =  
}}
}}
</pre>
</pre>
</noinclude>
</noinclude>

Navigation menu