Difference between revisions of "Template:CodeChart/Char/sandbox"
< Template:CodeChart | Char
m (switch style if link begins with # or not) |
m |
||
| Line 1: | Line 1: | ||
<noinclude>==Template== | <noinclude>==Template== | ||
</noinclude><includeonly>{{#if:{{{2|}}}<!-- | </noinclude><includeonly>{{#if:{{{2|}}}<!-- | ||
| − | -->{{#ifeq:#|{{#sub:{{{2}}}|0|1}}<!-- | + | -->|{{#ifeq:#|{{#sub:{{{2}}}|0|1}}<!-- |
-->| style="background-color: lightgreen;" <!-- | -->| style="background-color: lightgreen;" <!-- | ||
-->| style="background-color: pink;" <!-- | -->| style="background-color: pink;" <!-- | ||
-->}} {{!}} [[{{{2}}}|'''{{{1}}}''']]<!-- | -->}} {{!}} [[{{{2}}}|'''{{{1}}}''']]<!-- | ||
| + | -->| '''{{{1}}}'''<!-- | ||
-->}}</includeonly><noinclude> | -->}}</includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude | </noinclude | ||
Revision as of 05:43, 16 January 2013
Template
|
|
This is the template sandbox page for Template:CodeChart/Char (diff). See also the companion subpage for test cases. |
This template is used to format a character cell in a control sequence code chart. The arguments are:
- Required: The character in the cell
- The link target for the cell. For a character terminating an escape sequence, use an anchor target like #cursor-address and explain the escape sequence on the same page with an anchor. For a non-terminal character in the escape sequence, link to a subpage of the current page like /ESC. Terminating characters and non-terminating characters are styled with different background colors to readily distinguish between them.
| The above documentation is transcluded from Template:CodeChart/Char/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |
</noinclude