Template:Tag: Difference between revisions
From Spring
Jump to navigationJump to search
with the ok from flozi i updated the template definition. |
|||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
; <span style="color:#cccccc;text-shadow: #111 2px 2px 2px;">{{{name|?}}}</span> <span style="color:#00ff88">{{{type|?}}}</span> {{{range|}}} <span style="color:#ffff88"><b>{{{special}}}</b></span> : <span style="color:#999999;">Default: {{{default|?}}}</span>, {{{description|?}}}</includeonly><noinclude>A template for documenting various tags used in the engine (gamedata files, defs etc) | |||
Usage: | Usage: | ||
| Line 11: | Line 11: | ||
|name = bar | |name = bar | ||
|type = float | |type = float | ||
|range = [0-100] | |||
|special = Required | |||
|default = 3.14 | |default = 3.14 | ||
|description = Then your description}}</pre> | |description = Then your description}}</pre> | ||
Revision as of 13:11, 3 June 2012
A template for documenting various tags used in the engine (gamedata files, defs etc)
Usage:
{{tag|name=foo|type=int|default=10|description=Then type your description}}
or alternatively:
{{tag
|name = bar
|type = float
|range = [0-100]
|special = Required
|default = 3.14
|description = Then your description}}
Result:
- foo int {{{special}}}
- Default: 10, Then type your description
or alternatively:
- bar float {{{special}}}
- Default: 3.14, Then your description