Template:Effect: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
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={{{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={{{id|{{{3|}}}}}}

Revision as of 20:00, 31 March 2021

This template defines the table "Effects". View table. 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.

Parameter name Description
title title. unlike unnamed parameters, this is not automatically parsed and you must use qud text or qud shader.
desc effect description.
id the cs class name
type a string of binary numbers that denotes the type of effect. this is from GetEffectType but converted into binary.
{{Effect
| title = 
| desc = 
| id = 
| type = 
| gameversion = 
}}