Difference between revisions of "Template:Cmd"

From Wiki
Jump to navigation Jump to search
(The {{cmd|command}} template now accepts {{cmd|command|params}}. The params are displayed, only.)
(It works! (Of course it works, I tested it.) Also: Examples need \startalignment, not \startalign.)
Line 3: Line 3:
 
----
 
----
  
Link to a command; if any parameters are passed, display them in typewriter font.
+
Link to a command; any text in the second template parameter is comes right after the command, in typewriter font. Passing parameters is optional.
  
 
Usage:
 
Usage:
Line 20: Line 20:
 
Display:
 
Display:
  
* {{cmd|startalign}}
+
* {{cmd|startalignment}}
* {{cmd|startalign|[middle]}}
+
* {{cmd|startalignment|[middle]}}
 
* {{cmd|section|{First section}}}
 
* {{cmd|section|{First section}}}

Revision as of 12:55, 14 June 2012

[[Command/{{{1}}}|\{{{1}}}]]


Link to a command; any text in the second template parameter is comes right after the command, in typewriter font. Passing parameters is optional.

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: