Template:Item/doc: Difference between revisions

1,290 bytes added ,  20:11, 6 April 2022
delete fak
(more documentation)
(delete fak)
 
(19 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Doc/start}}
{| class="wikitable sortable"
{| class="wikitable sortable"
!Parameter
!Parameter
Line 11: Line 12:
|The image. If the item has no associate sprite, set equal to none.
|The image. If the item has no associate sprite, set equal to none.
|item name.png/none
|item name.png/none
|-
|lv
|The object's level.
|int
|-
|-
|pv
|pv
Line 59: Line 56:
|The bonus or penalty to hit
|The bonus or penalty to hit
|(+/-)int
|(+/-)int
|-
|ammodamagetypes
|the type(s) of damage caused by this weapon
|string list (delimited by </br> or ,)
|-
|-
|ammo
|ammo
Line 80: Line 81:
|int
|int
|-
|-
|liquidgen
|liquidgenrate
|for liquid generators. how many turns it takes for 1 dram to generate.
|for liquid generators. how many turns it takes for 1 dram to generate. (can be a number or a range like 20-40)
|int
|string
|-
|-
|liquidtype
|liquidgentype
|The type of liquid generated.
|The type of liquid generated.
|string
|string
|-
|inhaled
|"yes" if a gas is [[respiration]]-based, "no" if it isn't.
|boolean
|-
|seeping
|"yes" if a gas can seep through walls, "no" if it can't.
|boolean
|-
|-
|maxcharge
|maxcharge
Line 97: Line 106:
|-
|-
|chargeused
|chargeused
|How much charge is used a shot
|How much charge is consumed per use
|int
|-
|chargefunction
|What function the charge is necessary to support
|string
|-
|dramsperuse
|How many drams consumed per use of the object, if fueled by liquid
|int or float
|-
|imprintchargecost
|Charge cost to imprint a ProgrammableRecoiler
|int
|int
|-
|-
Line 103: Line 124:
|
|
|int
|int
|-
| featureweightinfo
| whether the weight should be featured near the top of the infobox (yes) or moved into the extra data field (no)
| string
|-
|-
|commerce
|commerce
Line 128: Line 153:
|yes/no
|yes/no
|-
|-
|skill
|empsensitive
| if it's sensitive to emp bursts.
| yes/no
|-
|weaponskill
|the skill tree required for use.
|the skill tree required for use.
|string
|string
Line 147: Line 176:
|Id in books.xml
|Id in books.xml
|string
|string
|-
|chairlevel
|The Chair Level of this chair. Affects the power of [[sitting]].
|int
|-
|-
|lightradius
|lightradius
Line 159: Line 192:
|how much thirst it slakes
|how much thirst it slakes
|int
|int
|-
| healing
| what the item heals
| string
|-
| harvestedinto
| what the item harvested from this is
| string
|-
| preservedinto
| what the item preserves into
| string
|-
| preservedquantity
| how much of the preserved item is made
| integer
|-
|-
|twohanded
|twohanded
Line 171: Line 220:
|if tag Name="Light"
|if tag Name="Light"
|yes/no
|yes/no
|-
|reflect
| if it reflects, what percentage of damage is reflected
| integer
|-
|-
|extra
|extra
|Any other features that do not have an associated variable.
|Any other features that do not have an associated variable. Uses [[Template:Extra info]].
|string
|<code><nowiki>{{Extra info| ...... }}</nowiki></code>
|-
|-
|agility/strength/willpower/toughness/agility/intelligence
|agility/strength/willpower/toughness/agility/intelligence
Line 193: Line 246:
|-
|-
| usesslots
| usesslots
| slots the item takes up.
| slots the item takes up. defaults to worn on if not specified.
| List (,) of string
|-
| supportedmods
| the list of mods this item supports
| List (,) of string
| List (,) of string
|-
|-
Line 202: Line 259:


==Usage==
==Usage==
<pre>
{{Item
{{Item
| title = Stopsvalinn
| title = Stopsvalinn
Line 210: Line 268:
| ego = +1
| ego = +1
}}
}}
Usage Example:
</pre>
<syntaxhighlight lang="xml">
{{Doc/end}}
{{Item
 
| title = Stopsvalinn
<noinclude>[[Category:Template documentation]]</noinclude>
| image = Stopsvalinn.png
| av = 3
| dv = 0
| ma = 0
| ego = +1
}}
</syntaxhighlight>