Difference between revisions of "Template:CodeChart/Char/sandbox"

From Terminals
Jump to: navigation, search
m (anchors are terminal)
m (eliminate duplication)
Line 1: Line 1:
 
<noinclude>==Template==
 
<noinclude>==Template==
 
</noinclude><includeonly>{{#if:{{{2|}}}<!--
 
</noinclude><includeonly>{{#if:{{{2|}}}<!--
-->|{{#ifeq:#|{{#sub:{{{2}}}|0|1}}<!--
+
-->| style="background-color: {{#ifeq:#|{{#sub:{{{2}}}|0|1}}<!--
   -->| style="background-color: pink;" <!--
+
   -->|pink<!--
   -->| style="background-color: lightgreen;" <!--
+
   -->|lightgreen<!--
   -->}} {{!}} [[{{{2}}}|'''{{{1}}}''']]<!--
+
   -->}}<!--
 +
  -->;" {{!}} [[{{{2}}}|'''{{{1}}}''']]<!--
 
-->| {{{1}}}<!--
 
-->| {{{1}}}<!--
 
-->}}</includeonly><noinclude>
 
-->}}</includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude
 
</noinclude

Revision as of 06:00, 16 January 2013

Template

[edit] [history] [purge] Documentation icon Template documentation

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.

</noinclude