Difference between revisions of "User:Esteis/Cheat sheet"
Jump to navigation
Jump to search
m (moved User talk:Esteis to User:Esteis/Cheat sheet) |
(Add table example) |
||
Line 1: | Line 1: | ||
+ | == ConTeXt-related stuff == | ||
+ | |||
{| | {| | ||
| Categorize a command | | Categorize a command | ||
Line 24: | Line 26: | ||
To linkify a command you should use the the template form, because the tags don't create a working link. | To linkify a command you should use the the template form, because the tags don't create a working link. | ||
+ | |||
+ | == Tables == | ||
+ | A table with | ||
+ | * top-aligned cell entries | ||
+ | * left-aligned headers | ||
+ | * nice borders | ||
+ | * alternating row colors | ||
+ | |||
+ | There is no way to apply styles to columns, alas. | ||
+ | |||
+ | <pre> | ||
+ | {| align=right" class="zebra wikitable" | ||
+ | |- style="text-align: left" | ||
+ | ! Header 1 | ||
+ | ! Header 2 | ||
+ | |- style="vertical-align: top" | ||
+ | | Short entry | ||
+ | | This is a rather wide <br /> multi-line entry | ||
+ | |- | ||
+ | |} | ||
+ | </pre> | ||
+ | |||
+ | {| align=right" class="zebra wikitable" | ||
+ | |- style="text-align: left" | ||
+ | ! Header 1 | ||
+ | ! Header 2 | ||
+ | |- style="vertical-align: top" | ||
+ | | Short entry | ||
+ | | This is a rather wide <br /> multi-line entry | ||
+ | |- | ||
+ | |} |
Revision as of 13:48, 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 with
- top-aligned cell entries
- left-aligned headers
- nice borders
- alternating row colors
There is no way to apply styles to columns, alas.
{| align=right" class="zebra wikitable" |- style="text-align: left" ! Header 1 ! Header 2 |- style="vertical-align: top" | Short entry | This is a rather wide <br /> multi-line entry |- |}
Header 1 | Header 2 |
---|---|
Short entry | This is a rather wide multi-line entry |