Template:Markup View history

(Created page with "<includeonly>{| {{{width|width="90%"}}} style="border-width: medium; margin-left: {{{margin|}}}"}} {{#if: {{{title|}}} | {{!}}+ '''{{{title}}}'''}} {{#if: {{{notitle|}}} || !...")
 
No edit summary
 
Line 1: Line 1:
<includeonly>{| {{{width|width="90%"}}} style="border-width: medium; margin-left: {{{margin|}}}"}}
<includeonly>{| style="table-layout:fixed; width:{{{width|100%}}}; margin-top:0;margin-left:{{{margin-left|{{{margin|0}}}}}}; border-width:medium; padding:0; {{{style|}}}"
{{#if: {{{title|}}} | {{!}}+ '''{{{title}}}'''}}
{{#if:{{{title|}}} |{{!}}+ '''{{{title}}}'''}}
{{#if: {{{notitle|}}} || ! width="50%" scope="col" {{!}} {{{t1|Markup}}}}}
{{#if:{{{noheaders|}}}{{{notitle|}}} |
{{#if: {{{notitle|}}} || ! width="50%" scope="col" {{!}} {{{t2|Renders as}}}}}<!--
|!   scope="col" style="width:50%;{{{colheaderstyle|}}}{{{col1headerstyle|}}}"{{!}} {{{col1|{{{t1|Markup}}}}}} {{!!}}<!--
-->{{#if: {{{1|}}}|{{Markup/row|cell1={{{1|}}}|cell2={{{2|}}}}}}}<!--
  -->scope="col" style="width:50%;{{{colheaderstyle|}}}{{{col2headerstyle|}}}"{{!}} {{{col2|{{{t2|Renders as}}}}}}
-->{{#if: {{{3|}}}|{{Markup/row|cell1={{{3|}}}|cell2={{{4|}}}}}}}<!--
}}<!--
-->{{#if: {{{5|}}}|{{Markup/row|cell1={{{5|}}}|cell2={{{6|}}}}}}}<!--
-->{{#if:{{{1|}}} |{{Markup/row |c1style={{{col1style|{{{codestyle|{{{markupstyle|}}}}}}}}}|c1={{{1|}}} |c2style={{{col2style|{{{outputstyle|}}}}}}|c2={{{2|}}} }} }}<!--
-->{{#if: {{{7|}}}|{{Markup/row|cell1={{{7|}}}|cell2={{{8|}}}}}}}<!--
-->{{#if:{{{3|}}} |{{Markup/row |c1style={{{col1style|{{{codestyle|{{{markupstyle|}}}}}}}}}|c1={{{3|}}} |c2style={{{col2style|{{{outputstyle|}}}}}}|c2={{{4|}}} }} }}<!--
-->{{#if: {{{9|}}}|{{Markup/row|cell1={{{9|}}}|cell2={{{10|}}}}}}}<!--
-->{{#if:{{{5|}}} |{{Markup/row |c1style={{{col1style|{{{codestyle|{{{markupstyle|}}}}}}}}}|c1={{{5|}}} |c2style={{{col2style|{{{outputstyle|}}}}}}|c2={{{6|}}} }} }}<!--
-->{{#if: {{{11|}}}|{{Markup/row|cell1={{{11|}}}|cell2={{{12|}}}}}}}<!--
-->{{#if:{{{7|}}} |{{Markup/row |c1style={{{col1style|{{{codestyle|{{{markupstyle|}}}}}}}}}|c1={{{7|}}} |c2style={{{col2style|{{{outputstyle|}}}}}}|c2={{{8|}}} }} }}<!--
-->{{#if: {{{13|}}}|{{Markup/row|cell1={{{13|}}}|cell2={{{14|}}}}}}}<!--
-->{{#if:{{{9|}}} |{{Markup/row |c1style={{{col1style|{{{codestyle|{{{markupstyle|}}}}}}}}}|c1={{{9|}}} |c2style={{{col2style|{{{outputstyle|}}}}}}|c2={{{10|}}} }} }}<!--
-->{{#if: {{{15|}}}|{{Markup/row|cell1={{{15|}}}|cell2={{{16|}}}}}}}<!--
-->{{#if:{{{11|}}} |{{Markup/row |c1style={{{col1style|{{{codestyle|{{{markupstyle|}}}}}}}}}|c1={{{11|}}} |c2style={{{col2style|{{{outputstyle|}}}}}}|c2={{{12|}}} }} }}<!--
-->{{#if: {{{17|}}}|{{Markup/row|cell1={{{17|}}}|cell2={{{18|}}}}}}}<!--
-->{{#if:{{{13|}}} |{{Markup/row |c1style={{{col1style|{{{codestyle|{{{markupstyle|}}}}}}}}}|c1={{{13|}}} |c2style={{{col2style|{{{outputstyle|}}}}}}|c2={{{14|}}} }} }}<!--
-->{{#if: {{{19|}}}|{{Markup/row|cell1={{{19|}}}|cell2={{{20|}}}}}}}<!--
-->{{#if:{{{15|}}} |{{Markup/row |c1style={{{col1style|{{{codestyle|{{{markupstyle|}}}}}}}}}|c1={{{15|}}} |c2style={{{col2style|{{{outputstyle|}}}}}}|c2={{{16|}}} }} }}<!--
-->{{#if: {{{21|}}}|{{Markup/row|cell1={{{21|}}}|cell2={{{22|}}}}}}}<!--
-->{{#if:{{{17|}}} |{{Markup/row |c1style={{{col1style|{{{codestyle|{{{markupstyle|}}}}}}}}}|c1={{{17|}}} |c2style={{{col2style|{{{outputstyle|}}}}}}|c2={{{18|}}} }} }}<!--
-->{{#if: {{{23|}}}|{{Markup/row|cell1={{{23|}}}|cell2={{{24|}}}}}}}<!--
-->{{#if:{{{19|}}} |{{Markup/row |c1style={{{col1style|{{{codestyle|{{{markupstyle|}}}}}}}}}|c1={{{19|}}} |c2style={{{col2style|{{{outputstyle|}}}}}}|c2={{{20|}}} }} }}<!--
-->{{#if: {{{25|}}}|{{Markup/row|cell1={{{25|}}}|cell2={{{26|}}}}}}}<!--
-->{{#if:{{{21|}}} |{{Markup/row |c1style={{{col1style|{{{codestyle|{{{markupstyle|}}}}}}}}}|c1={{{21|}}} |c2style={{{col2style|{{{outputstyle|}}}}}}|c2={{{22|}}} }} }}<!--
-->{{#if: {{{27|}}}|{{Markup/row|cell1={{{27|}}}|cell2={{{28|}}}}}}}<!--
-->{{#if:{{{23|}}} |{{Markup/row |c1style={{{col1style|{{{codestyle|{{{markupstyle|}}}}}}}}}|c1={{{23|}}} |c2style={{{col2style|{{{outputstyle|}}}}}}|c2={{{24|}}} }} }}<!--
-->{{#if: {{{29|}}}|{{Markup/row|cell1={{{29|}}}|cell2={{{30|}}}}}}}<!--
-->{{#if:{{{25|}}} |{{Markup/row |c1style={{{col1style|{{{codestyle|{{{markupstyle|}}}}}}}}}|c1={{{25|}}} |c2style={{{col2style|{{{outputstyle|}}}}}}|c2={{{26|}}} }} }}<!--
-->{{#if: {{{31|}}}|{{Markup/row|cell1={{{31|}}}|cell2={{{32|}}}}}}}<!--
-->{{#if:{{{27|}}} |{{Markup/row |c1style={{{col1style|{{{codestyle|{{{markupstyle|}}}}}}}}}|c1={{{27|}}} |c2style={{{col2style|{{{outputstyle|}}}}}}|c2={{{28|}}} }} }}<!--
-->{{#if: {{{33|}}}|{{Markup/row|cell1={{{33|}}}|cell2={{{34|}}}}}}}<!--
-->{{#if:{{{29|}}} |{{Markup/row |c1style={{{col1style|{{{codestyle|{{{markupstyle|}}}}}}}}}|c1={{{29|}}} |c2style={{{col2style|{{{outputstyle|}}}}}}|c2={{{30|}}} }} }}<!--
-->{{#if: {{{35|}}}|{{Markup/row|cell1={{{35|}}}|cell2={{{36|}}}}}}}<!--
-->{{#if:{{{31|}}} |{{Markup/row |c1style={{{col1style|{{{codestyle|{{{markupstyle|}}}}}}}}}|c1={{{31|}}} |c2style={{{col2style|{{{outputstyle|}}}}}}|c2={{{32|}}} }} }}<!--
-->{{#if: {{{37|}}}|{{Markup/row|cell1={{{37|}}}|cell2={{{38|}}}}}}}<!--
-->{{#if:{{{33|}}} |{{Markup/row |c1style={{{col1style|{{{codestyle|{{{markupstyle|}}}}}}}}}|c1={{{33|}}} |c2style={{{col2style|{{{outputstyle|}}}}}}|c2={{{34|}}} }} }}<!--
-->{{#if: {{{39|}}}|{{Markup/row|cell1={{{39|}}}|cell2={{{40|}}}}}}}
-->{{#if:{{{35|}}} |{{Markup/row |c1style={{{col1style|{{{codestyle|{{{markupstyle|}}}}}}}}}|c1={{{35|}}} |c2style={{{col2style|{{{outputstyle|}}}}}}|c2={{{36|}}} }} }}<!--
-->{{#if:{{{37|}}} |{{Markup/row |c1style={{{col1style|{{{codestyle|{{{markupstyle|}}}}}}}}}|c1={{{37|}}} |c2style={{{col2style|{{{outputstyle|}}}}}}|c2={{{38|}}} }} }}<!--
-->{{#if:{{{39|}}} |{{Markup/row |c1style={{{col1style|{{{codestyle|{{{markupstyle|}}}}}}}}}|c1={{{39|}}} |c2style={{{col2style|{{{outputstyle|}}}}}}|c2={{{40|}}} }} }}
|-
|-
| scope="row" width="50%" style="border-width: 1px; padding: 5px; border-style: dashed none none none; border-color: gray; vertical-align:text-top;" |  
|style="width:50%; border-width:1px;border-style:solid none none none;border-color:#ddd; padding:5px; vertical-align:top;"|  
| width="50%" style="border-width: 1px; padding: 5px; border-style: dashed none none none; border-color: gray; vertical-align:text-top;" |
|style="width:50%; border-width:1px;border-style:solid none none none;border-color:#ddd; padding:5px; vertical-align:top;"|  
|}</includeonly><noinclude>{{documentation}}</noinclude>
|}</includeonly><noinclude>
{{Documentation}}
</noinclude>

Latest revision as of 04:21, 17 February 2016

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

This template is used to present markup or code side by side with the rendered output.

Parameters:

  • unnamed 1: Content of row 1, column 1
  • unnamed 2: Content of row 1, column 2
through
  • unnamed 39: Content of row 20, column 1
  • unnamed 40: Content of row 20, column 2
  • t1: Title of column one; defaults to Markup
  • t2: Title of column two; defaults to Renders as
  • title: Title of table; defaults to none
  • notitle: When set, suppresses table and column titles
  • margin: set table left margin in em


Limitations

If you don't wrap the content of the markup cell in <nowiki>, then any template markup will not be escaped, it will be expanded.

This example shows the markup for {{tl|tag}}:

Renders as Expected renderingTemplate:Markup/row

HTML entities are parsed in the markup cell

Mowikied markup shows as Expected markupTemplate:Markup/row

To work around this, replace the & with &amp; thus &amp;nbsp; will show as &nbsp;

Examples

See also

The above documentation is transcluded from Template:Markup/doc.
Please add categories to the /doc subpage.
Subpages of this template.