Difference between revisions of "User:Esteis/Cheat sheet"

From Wiki
Jump to navigation Jump to search
m (Show what stuff does)
(Put it in a table.)
Line 1: Line 1:
  <nowiki>
+
{|
  [[Category:Commands/subcat|the_command]]
+
| Categorize a command
 
+
| <code><nowiki>[[Category:Commands/subcat|the_command]]</nowiki></code>
  {{cmd|the_command}}
+
|-
 +
| Linkify a command (template) 
 +
| <code><nowiki>{{cmd|the_command}}</nowiki></code>
 +
|-
 +
| Linkify a command (tags)
 +
| <code><nowiki><cmd>the_command</cmd></nowiki></code>
 +
|-
 +
| Syntax-highlighted code (not run)
 +
| <code><nowiki><texcode>...</texcode></nowiki></code>
 +
|-
 +
| Syntax-highlighted code +
 +
text in between + result
 +
| <code><nowiki><context source="yes" text="bla">...</context></nowiki></code>
 +
|}
  
  <texcode>...</texcode>
+
The template and the tags don't quite produce the same result. Anyway, you should use the the template form, because the tags don't linkify the command properly.
 
 
  <cmd>...</cmd>
 
 
 
  <context source="yes">...</context>
 
  </nowiki>
 
  
 
Template:<br />
 
Template:<br />

Revision as of 13:17, 28 March 2012

Categorize a command [[Category:Commands/subcat|the_command]]
Linkify a command (template) {{cmd|the_command}}
Linkify a command (tags) <cmd>the_command</cmd>
Syntax-highlighted code (not run) <texcode>...</texcode>
Syntax-highlighted code +

text in between + result

<context source="yes" text="bla">...</context>

The template and the tags don't quite produce the same result. Anyway, you should use the the template form, because the tags don't linkify the command properly.

Template:
\setuphead

cmd tags:
\setupalign