Template:Effect: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
m (remove "Perfect" from effect templates and use y instead of c bordercolor)
(support dontindex param)
Line 5: Line 5:
|EffectID={{{id|{{{3|}}}}}}
|EffectID={{{id|{{{3|}}}}}}
|Type = {{{type|{{{4|0000000000000000000000000001}}}}}}
|Type = {{{type|{{{4|0000000000000000000000000001}}}}}}
|DontIndex=0}}<!--
|DontIndex={{{dontindex|0}}}}}<!--


   variable definitions
   variable definitions
Line 38: Line 38:
| 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.
|-
| 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)
|}
|}
<pre>
<pre>

Revision as of 17:15, 6 October 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.
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)
{{Effect
| title = 
| desc = 
| id = 
| type = 
| gameversion = 
}}