Template:Tag: Difference between revisions

From Spring
Jump to navigationJump to search
Flozi (talk | contribs)
m hopefully get rid of newline issues here too
Flozi (talk | contribs)
cleanup
Line 4: Line 4:
Usage:
Usage:


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


or alternatively:
or alternatively:
Line 12: Line 12:
|type = float
|type = float
|default = 3.14
|default = 3.14
}} Then your description</pre>
|description = Then your description}}</pre>


Result:  
Result:  
{{tag|name=foo|type=int|default=10}} Then type your description without a line break.
{{tag|name=foo|type=int|default=10|description=Then type your description}}
 
or alternatively:
 
{{tag
{{tag
|name = bar
|name = bar
|type = float
|type = float
|default = 3.14
|default = 3.14
}} Then your description
|description = Then your description}}
 
You should not use line breaks when using this template e.g.
<pre>{{tag|name=foo|type=int|default=10}}
Don't type your description with a line break</pre>


Result:
{{tag|name=foo|type=int|default=10}}
Don't type your description with a line break
</noinclude>
</noinclude>

Revision as of 23:38, 26 February 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
|default = 3.14
|description = Then your description}}

Result:

  • foo - type: int - default: 10
Then type your description

or alternatively:

  • bar - type: float - default: 3.14
Then your description