Template:Effect: Difference between revisions

8 bytes removed ,  19:27, 31 March 2021
m
no edit summary
mNo edit summary
mNo edit summary
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|DontIndex=Boolean}}
</noinclude><includeonly>{{#cargo_store:_table=Effects|DisplayName={{{name|{{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:{{strip color|{{{name|{{{1|}}}}}}|notxml}}}}
|Description={{qud text|{{{desc|{{{2|}}}}}}|notxml|unbolded}}
|Description={{qud text|{{{desc|{{{2|}}}}}}|notxml|unbolded}}
Line 14: Line 14:


-->{{#invoke: infobox | infobox  
-->{{#invoke: infobox | infobox  
| title = {{{name|{{qud text|{{{1|}}}|notxml}}}}}
| title = {{qud text|{{{1|}}}|notxml}}
| image = none
| image = none
| class = qud-effect-infobox
| class = qud-effect-infobox
Line 20: Line 20:
{{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]]}}}}
{{qud look|text={{{desc|{{{2|}}}}}}|title={{{name|{{{1|}}} }}} }}
{{qud look|text={{{desc|{{{2|}}}}}}|title={{{title|{{{1|}}} }}} }}
</includeonly><noinclude>[[Category:Cargo Store Templates]]
</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.</noinclude>
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.
</noinclude>