Template:Markup
This template is used to present markup or code side by side with the output it renders.
Usage
Each pair of {{Markup}}'s arguments should be two copies of some wikitext markup, with the first of the pair enclosed in <nowiki> tags. The template produces output in two columns, the first showing the markup and the second showing how it is rendered. The template accepts up to 40 unnamed parameters, resulting in up to 20 rows of examples.
This:
{{markup|<nowiki>'''Bold text'''</nowiki>|'''Bold text'''}}
Produces this:
Markup | Renders as |
---|---|
'''Bold text''' |
Bold text |
It is advisable to begin both copies of the markup with a newline; this is necessary if the first line of the markup must start on a new line (such as #, * or ;).
Examples
Multiple rows
Markup | Renders as |
---|---|
'''Bold text''' |
Bold text |
''Italic text'' |
Italic text |
[[Arc Furnace]] |
|
{{Recipe | Building = Smoke Stack | Input1Name = Oxygen | Input1Qty = 200 | Time = 20 }} |
|
With custom title and column headers
Write this in wikitext | and this will appear in the article. |
---|---|
The quick brown [[fox]] jumps over the lazy [[dog]]. |
|
With HTML entities
HTML entities are parsed in the markup cell. To work around this, replace the &
with &
in the first column.
Markup | Renders as |
---|---|
– |
– |
If you're done making changes, please refresh the text. (Why?)
You can experiment in this template's sandbox (create | mirror ) and testcases (create) pages.
Please add categories and interwikis to Template:Markup/doc. (View all subpages of this page.)