Difference between revisions of "User:Esteis/Cheat sheet"
Jump to navigation
Jump to search
(Put it in a table.) |
m |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | == ConTeXt-related stuff == | ||
+ | |||
{| | {| | ||
| 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 15: | Line 20: | ||
text in between + result | text in between + result | ||
| <code><nowiki><context source="yes" text="bla">...</context></nowiki></code> | | <code><nowiki><context source="yes" text="bla">...</context></nowiki></code> | ||
+ | |- | ||
+ | | To run the code as mkiv | ||
+ | | <code><nowiki><context mode=mkiv>...</context></nowiki></code> | ||
|} | |} | ||
− | + | To linkify a command you should use the the template form, because the tags don't create a working link. | |
+ | |||
+ | == Tables == | ||
+ | A table that | ||
+ | * floats to the right | ||
+ | * has top-aligned cell entries | ||
+ | * has left-aligned headers | ||
+ | * has nice borders. | ||
− | + | There is no way to apply styles to columns, alas. | |
− | |||
− | + | {| align="right" class="wikitable" | |
− | < | + | |- |
+ | ! style="text-align: left" | Header 1 | ||
+ | ! style="text-align: left" | Header 2 | ||
+ | |- style="vertical-align: top" | ||
+ | | Short entry | ||
+ | | This is a rather wide <br /> multi-line entry | ||
+ | |- style="vertical-align: top" | ||
+ | | Short entry | ||
+ | | This is a rather wide <br /> multi-line entry | ||
+ | |- | ||
+ | |} | ||
+ | |||
+ | <pre> | ||
+ | {| align="right" class="wikitable" | ||
+ | |- | ||
+ | ! style="text-align: left" | Header 1 | ||
+ | ! style="text-align: left" | Header 2 | ||
+ | |- style="vertical-align: top" | ||
+ | | Short entry | ||
+ | | This is a rather wide <br /> multi-line entry | ||
+ | |- style="vertical-align: top" | ||
+ | | Short entry | ||
+ | | This is a rather wide <br /> multi-line entry | ||
+ | |- | ||
+ | |} | ||
+ | </pre> |
Latest revision as of 14:36, 31 May 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>
|
To run the code as mkiv | <context mode=mkiv>...</context>
|
To linkify a command you should use the the template form, because the tags don't create a working link.
Tables
A table that
- floats to the right
- has top-aligned cell entries
- has left-aligned headers
- has nice borders.
There is no way to apply styles to columns, alas.
Header 1 | Header 2 |
---|---|
Short entry | This is a rather wide multi-line entry |
Short entry | This is a rather wide multi-line entry |
{| align="right" class="wikitable" |- ! style="text-align: left" | Header 1 ! style="text-align: left" | Header 2 |- style="vertical-align: top" | Short entry | This is a rather wide <br /> multi-line entry |- style="vertical-align: top" | Short entry | This is a rather wide <br /> multi-line entry |- |}