Template:Tag: Difference between revisions
From Spring
Jump to navigationJump to search
m back to the start |
second style usage |
||
| Line 3: | Line 3: | ||
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> | ||
or alternatively: | |||
<pre>{{tag | |||
|name = bar | |||
|type = float | |||
|default = 3.14 | |||
}} Then your description</pre> | |||
Result: | Result: | ||
| Line 8: | Line 16: | ||
{{tag|name=foo|type=int|default=10}} | {{tag|name=foo|type=int|default=10}} | ||
Don't type your description with a line break | Don't type your description with a line break | ||
{{tag | |||
|name = bar | |||
|type = float | |||
|default = 3.14 | |||
}} Then your description | |||
</noinclude> | </noinclude> | ||
<includeonly>* '''<code>{{{name}}}</code>''' - type: <code>{{{type}}}</code> - default: <code>{{{default}}}</code> | <includeonly>* '''<code>{{{name}}}</code>''' - type: <code>{{{type}}}</code> - default: <code>{{{default}}}</code> | ||
: </includeonly> | : </includeonly> | ||
Revision as of 19:04, 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.
foo- type:int- default:10
Don't type your description with a line break
bar- type:float- default:3.14
- Then your description