Difference between revisions of "Template:Cmd"
Jump to navigation
Jump to search
(Make commands print in typewriter font, just like the old cmd tags.) |
(The {{cmd|command}} template now accepts {{cmd|command|params}}. The params are displayed, only.) |
||
Line 1: | Line 1: | ||
− | <tt>[[Command/{{{1}}}|\{{{1}}}]]</tt> | + | <onlyinclude><tt>[[Command/{{{1}}}|\{{{1}}}]]{{{2|}}}</tt></onlyinclude> |
+ | |||
+ | ---- | ||
+ | |||
+ | Link to a command; if any parameters are passed, display them in typewriter font. | ||
+ | |||
+ | Usage: | ||
+ | |||
+ | <nowiki>{{cmd|startalign}}</nowiki> | ||
+ | <nowiki>{{cmd|startalign|[middle]}}</nowiki> | ||
+ | <nowiki>{{cmd|section|{First section}}}</nowiki> | ||
+ | |||
+ | Result: | ||
+ | |||
+ | <nowiki><tt>[[Command/startalign|\startalign]]</tt></nowiki> | ||
+ | <nowiki><tt>[[Command/startalign|\startalign]][middle]</tt></nowiki> | ||
+ | <nowiki><tt>[[Command/startalign|\startalign]]{First section}</tt></nowiki> | ||
+ | |||
+ | |||
+ | Display: | ||
+ | |||
+ | * {{cmd|startalign}} | ||
+ | * {{cmd|startalign|[middle]}} | ||
+ | * {{cmd|section|{First section}}} |
Revision as of 12:51, 14 June 2012
[[Command/{{{1}}}|\{{{1}}}]]
Link to a command; if any parameters are passed, display them in typewriter font.
Usage:
{{cmd|startalign}} {{cmd|startalign|[middle]}} {{cmd|section|{First section}}}
Result:
<tt>[[Command/startalign|\startalign]]</tt> <tt>[[Command/startalign|\startalign]][middle]</tt> <tt>[[Command/startalign|\startalign]]{First section}</tt>
Display:
- \startalign
- \startalign[middle]
- \section{First section}