Difference between revisions of "User:Esteis/New command template"
Jump to navigation
Jump to search
(Add sketch for argument template) |
|||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | Example of a Semantic Form: | ||
+ | http://www.placeography.org/index.php?title=470_Hopkins_Street%2C_Saint_Paul%2C_Minnesota&action=formedit | ||
+ | |||
<pre> | <pre> | ||
+ | {{command infobox | ||
+ | | commandname = ... | ||
+ | | alias1 = ... | ||
+ | | alias2 = ... | ||
+ | | inheritsfrom1 = ... (mechanism it inherits from; possibly ''primitive'') | ||
+ | | inheritsfrom2 = ... (some things, like footnotes, use multiple mechanisms) | ||
+ | }} | ||
+ | |||
+ | {{command invocation | ||
+ | | commandname = ... | ||
+ | | argname1 = ... | ||
+ | | brackettype1 = ... | ||
+ | | arg2 = ... | ||
+ | | brackettype2 = ... | ||
+ | }} | ||
+ | |||
+ | {{command invocation | ||
+ | | commandname = ... | ||
+ | | argname1 = ... | ||
+ | | brackettype1 = ... | ||
+ | | arg2 = ... | ||
+ | | brackettype2 = ... | ||
+ | }} | ||
{{arg | {{arg | ||
| command = somecommandthat | | command = somecommandthat | ||
| argname = | | argname = | ||
− | | brackettype = square/brace/none | + | | brackettype = square/brace|braces|curly/none |
| argtype = keywords/keyval/other | | argtype = keywords/keyval/other | ||
| possible values described = ... (a wikitable) | | possible values described = ... (a wikitable) | ||
+ | }} | ||
+ | </pre> | ||
+ | |||
+ | <pre> | ||
+ | {{command page | ||
+ | | commandname = placefigure | ||
+ | | mechanism1 = placeFLOAT | ||
+ | | invocation1 = \placefigure[''placement''][''label'']{''caption''}{''float contents''} | ||
+ | | invocation2 = \placefigure[''placement'']{''caption''}{''float contents''} | ||
+ | | invocation2 = \placefigure{''caption''}{''float contents''} | ||
+ | <!-- --> | ||
+ | | arg1 = ''placement keywords'' | ||
+ | | bracket1 = [ | ||
+ | | arg2 = ''references'' | ||
+ | | bracket2 = [ | ||
+ | | arg3 = ''caption'' | ||
+ | | bracket3 = { | ||
+ | | arg4 = ''float contents'' | ||
+ | | bracket4 = { | ||
+ | <!-- argument description section --> | ||
+ | | describe_arg1 = stuff and bother | ||
+ | <!-- rest --> | ||
+ | | description = ... | ||
+ | | examples = ... | ||
+ | | seealso = ... | ||
}} | }} | ||
</pre> | </pre> |
Latest revision as of 01:44, 1 March 2013
Example of a Semantic Form: http://www.placeography.org/index.php?title=470_Hopkins_Street%2C_Saint_Paul%2C_Minnesota&action=formedit
{{command infobox | commandname = ... | alias1 = ... | alias2 = ... | inheritsfrom1 = ... (mechanism it inherits from; possibly ''primitive'') | inheritsfrom2 = ... (some things, like footnotes, use multiple mechanisms) }} {{command invocation | commandname = ... | argname1 = ... | brackettype1 = ... | arg2 = ... | brackettype2 = ... }} {{command invocation | commandname = ... | argname1 = ... | brackettype1 = ... | arg2 = ... | brackettype2 = ... }} {{arg | command = somecommandthat | argname = | brackettype = square/brace|braces|curly/none | argtype = keywords/keyval/other | possible values described = ... (a wikitable) }}
{{command page | commandname = placefigure | mechanism1 = placeFLOAT | invocation1 = \placefigure[''placement''][''label'']{''caption''}{''float contents''} | invocation2 = \placefigure[''placement'']{''caption''}{''float contents''} | invocation2 = \placefigure{''caption''}{''float contents''} <!-- --> | arg1 = ''placement keywords'' | bracket1 = [ | arg2 = ''references'' | bracket2 = [ | arg3 = ''caption'' | bracket3 = { | arg4 = ''float contents'' | bracket4 = { <!-- argument description section --> | describe_arg1 = stuff and bother <!-- rest --> | description = ... | examples = ... | seealso = ... }}