Difference between revisions of "User:Esteis/Cheat sheet"
Jump to navigation
Jump to search
m (use same command) |
(Add code to link directly to a category.) |
||
Line 2: | Line 2: | ||
| Categorize a command | | Categorize a command | ||
| <code><nowiki>[[Category:Commands/subcat|the_command]]</nowiki></code> | | <code><nowiki>[[Category:Commands/subcat|the_command]]</nowiki></code> | ||
+ | |- | ||
+ | | Link directly to a category page: | ||
+ | | <code><nowiki>[[:Category:Commands/subcat|Subcat]]</nowiki></code> | ||
|- | |- | ||
| Linkify a command (template) | | Linkify a command (template) | ||
| <code><nowiki>{{cmd|the_command}}</nowiki></code> | | <code><nowiki>{{cmd|the_command}}</nowiki></code> | ||
|- | |- | ||
− | | Linkify a command (tags) | + | | Linkify a command (tags) (deprecated) |
| <code><nowiki><cmd>the_command</cmd></nowiki></code> | | <code><nowiki><cmd>the_command</cmd></nowiki></code> | ||
|- | |- | ||
Line 17: | Line 20: | ||
|} | |} | ||
− | + | You should use the the template form, because the tags don't linkify the command properly. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 14:03, 23 April 2012
Categorize a command | [[Category:Commands/subcat|the_command]]
|
Link directly to a category page: | [[:Category:Commands/subcat|Subcat]]
|
Linkify a command (template) | {{cmd|the_command}}
|
Linkify a command (tags) (deprecated) | <cmd>the_command</cmd>
|
Syntax-highlighted code (not run) | <texcode>...</texcode>
|
Syntax-highlighted code +
text in between + result |
<context source="yes" text="bla">...</context>
|
You should use the the template form, because the tags don't linkify the command properly.