Template:Tag: Difference between revisions
From Spring
Jump to navigationJump to search
m hopefully get rid of newline issues here too |
cleanup |
||
| Line 4: | Line 4: | ||
Usage: | Usage: | ||
<pre>{{tag|name=foo|type=int|default=10 | <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 | ||
|description = Then your description}}</pre> | |||
Result: | Result: | ||
{{tag|name=foo|type=int|default=10 | {{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 | ||
|description = Then your description}} | |||
</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