Template:Tag: Difference between revisions
From Spring
Jump to navigationJump to search
m looks like we are stuck with this |
m testing |
||
| Line 2: | Line 2: | ||
Usage: | Usage: | ||
<pre>{{tag|name=foo|type=int|default=10 | <pre>{{tag|name=foo|type=int|default=10|description=Then type your description}} without a line break.</pre> | ||
Result: | Result: | ||
{{tag|name=foo|type=int|default=10}} | {{tag|name=foo|type=int|default=10|description=test 1}} | ||
{{tag|name=foo|type=int|default=10}} | {{tag|name=foo|type=int|default=10|description=test 2}} | ||
Don't type your description with a line break | Don't type your description with a line break | ||
</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><br>: {{{description}}}</includeonly> | ||
: </includeonly> | |||
Revision as of 18:18, 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|description=Then type your description}} without a line break.
Result:
foo- type:int- default:10
: test 1
foo- type:int- default:10
: test 2
Don't type your description with a line break