Template:Tag: Difference between revisions

From Spring
Jump to navigationJump to search
Flozi (talk | contribs)
m Undo revision 26343 by Flozi (talk)
Flozi (talk | contribs)
m #3
Line 1: Line 1:
<includeonly>; <span style="color:#00ff88">{{{type|type}}}</span> <span style="color:#cccccc;text-shadow: #111 2px 2px 2px;">{{anchor|Tag:{{{name|name}}}}}{{{name|name}}}</span>  {{{range|}}} <span style="color:#999999;">Default: {{{default|?}}}</span> <span style="color:#ffff88"><b>{{{special|}}}</b></span> : {{{description|{{FIXME}}}}}</includeonly><noinclude>A template for documenting various tags used in the engine (gamedata files, defs etc)
<includeonly>; <span style="color:#00ff88">{{{type|type}}}</span> <span style="color:#cccccc;text-shadow: #111 2px 2px 2px;">{{anchor|Tag:{{{name|name}}}}}[[#Tag:{{{name|name}}}]]</span>  {{{range|}}} <span style="color:#999999;">Default: {{{default|?}}}</span> <span style="color:#ffff88"><b>{{{special|}}}</b></span> : {{{description|{{FIXME}}}}}</includeonly><noinclude>A template for documenting various tags used in the engine (gamedata files, defs etc)


'''Usage:'''
'''Usage:'''

Revision as of 20:36, 7 March 2013

A template for documenting various tags used in the engine (gamedata files, defs etc)

Usage:

{{tag}}

result:

type #Tag:name Default: ?
FIXME:

Usage:

{{tag|name=foo|type=int|range=[0-100]|special=Required|default=10|description=Then type your description}}

Result:

int #Tag:foo [0-100] Default: 10 Required
Then type your description

Usage:

{{tag|name=foo|type=int|default=10|description=Then type your description}}

Result:

int #Tag:foo Default: 10
Then type your description

Usage:

{{tag
|name = bar
|type = float
|range = [0-100]
|default = 3.14
|special = {{new|88.0}}
|description = Then your description}}

Result:

float #Tag:bar [0-100] Default: 3.14 New in version 88.0
Then your description