Template:Tag: Difference between revisions

From Spring
Jump to navigationJump to search
Flozi (talk | contribs)
m should really not do this on the live template
Flozi (talk | contribs)
m colour tweaks
Line 1: Line 1:
<includeonly>; <span style="color:#0000ff">{{{type|type}}}</span> <span style="color:#888888;text-shadow: #111 2px 2px 2px;">{{anchor|Tag:{{{name|name}}}}}{{{name|name}}}</span>  {{{range|}}} <span style="color:#888888;">Default: {{{default|?}}}</span> <span style="color:#ff6600"><b>{{{special|}}}</b></span> : {{{description|{{FIXME}}}}}</includeonly><noinclude>A template for documenting various tags used in the engine (gamedata files, defs etc)
<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> &emsp; {{{range|}}} {{{special|}}} : {{{description|{{FIXME}}}}}</includeonly><noinclude>A template for documenting various tags used in the engine (gamedata files, defs etc)


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

Revision as of 11:50, 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