Template:Effect: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
mNo edit summary
(this should be the last one. sorry)
Line 9: Line 9:
   variable definitions
   variable definitions


-->{{#vardefine:name|{{qud text|{{{1|}}}|notxml}}}}<!--
-->{{#vardefine:name|{{{title|{{qud text|{{{1|}}}|notxml}}}}}}}<!--


   infobox
   infobox
Line 23: Line 23:
</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.
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.
{| class="wikitable"
! 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.
|}
<pre>
{{Effect
| title =
| desc =
| id =
| type =
| gameversion =
}}
</pre>
</noinclude>
</noinclude>

Revision as of 19:45, 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 = 
}}