Template:Tag: Difference between revisions

From Spring
Jump to navigationJump to search
Flozi (talk | contribs)
mNo edit summary
Flozi (talk | contribs)
mNo edit summary
Line 1: Line 1:
<includeonly><span class="type" style="color:#0099cc; font-family:courier, monospace;">{{{type|type}}}</span> <span class="tagname" style="color:#105289; font-family:courier, monospace; font-weight:bold;">{{anchor|Tag:{{{name|name}}}}}{{{name|name}}}</span> default: <span class="value" style="color:#ff6600;font-family:courier, monospace;">{{{default|?}}}</span> {{{range|}}} {{{special|}}}
<includeonly><span class="type" style="color:#0099cc; font-family:courier, monospace;">{{{type|type}}}</span> <span class="tagname" style="color:#105289; font-family:courier, monospace; font-weight:bold;">{{anchor|Tag:{{{name|name}}}}}{{{name|name}}}</span> &emsp;default: <span class="value" style="color:#ff6600;font-family:courier, monospace;">{{{default|?}}}</span> {{{range|}}} {{{special|}}}
: {{{description|{{FIXME}}}}}</includeonly><noinclude>A template for documenting various tags used in the engine (gamedata files, defs etc)
: {{{description|{{FIXME}}}}}</includeonly><noinclude>A template for documenting various tags used in the engine (gamedata files, defs etc)



Revision as of 12:02, 2 June 2016

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

Usage:

{{tag}}

result: type name  default: ?

FIXME:

Usage:

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

Result: int foo  default: 10 [0-100] Required

Then type your description

Usage:

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

Result: int 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 bar  default: 3.14 [0-100] New in version 88.0

Then your description