Template:Tag

From Spring
Revision as of 23:34, 26 February 2012 by Flozi (talk | contribs) (hopefully get rid of newline issues here too)
Jump to navigationJump to search

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

Usage:

{{tag|name=foo|type=int|default=10}} Then type your description without a line break.

or alternatively:

{{tag
|name = bar
|type = float
|default = 3.14
}} Then your description

Result:

  • foo - type: int - default: 10
{{{description}}} Then type your description without a line break.
  • bar - type: float - default: 3.14
{{{description}}} Then your description

You should not use line breaks when using this template e.g.

{{tag|name=foo|type=int|default=10}}
Don't type your description with a line break

Result:

  • foo - type: int - default: 10
{{{description}}}

Don't type your description with a line break