Template:Tag: Difference between revisions
From Spring
Jump to navigationJump to search
make usage clearer |
again |
||
| Line 1: | Line 1: | ||
<noinclude>A template for documenting various tags used in the engine (gamedata files, defs etc) | <noinclude>A template for documenting various tags used in the engine (gamedata files, defs etc) | ||
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}} Then type your description without a line break.</pre> | ||
| Line 14: | Line 15: | ||
Result: | Result: | ||
{{tag|name=foo|type=int|default=10}} Then type your description without a line break. | {{tag|name=foo|type=int|default=10}} Then type your description without a line break. | ||
{{tag | |||
|name = bar | |||
|type = float | |||
|default = 3.14 | |||
}} Then your description | |||
You should not use line breaks when using this template e.g. | You should not use line breaks when using this template e.g. | ||
| Line 23: | Line 29: | ||
Don't type your description with a line break | Don't type your description with a line break | ||
</noinclude> | </noinclude> | ||
Revision as of 19:12, 12 February 2012
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
- Then type your description without a line break.
bar- type:float- default:3.14
- 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
Don't type your description with a line break