<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://pool.calebcooper.ie/index.php?action=history&amp;feed=atom&amp;title=Template%3AMarkupv%2Fdoc</id>
	<title>Template:Markupv/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://pool.calebcooper.ie/index.php?action=history&amp;feed=atom&amp;title=Template%3AMarkupv%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Template:Markupv/doc&amp;action=history"/>
	<updated>2026-04-08T07:11:34Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://pool.calebcooper.ie/index.php?title=Template:Markupv/doc&amp;diff=16875&amp;oldid=prev</id>
		<title>Caleb Cooper: Created page with &quot;{{Documentation subpage}} &lt;!-- Please add categories at the bottom of this page, and interwikis at Wikidata (see Wikipedia:Wikidata) --&gt;  == Usage == This template is used to present markup or code in a vertical format above the rendered output.  Parameters: * &#039;&#039;&#039;markup&#039;&#039;&#039; or &#039;&#039;&#039;m&#039;&#039;&#039;: Content of &#039;&#039;Markup&#039;&#039; cell * &#039;&#039;&#039;renders&#039;&#039;&#039; or &#039;&#039;&#039;r&#039;&#039;&#039;: Content of &#039;&#039;Renders as&#039;&#039; cell * &#039;&#039;&#039;title&#039;&#039;&#039; or &#039;&#039;&#039;t&#039;&#039;&#039;: Title of table; defaults to none * &#039;&#039;&#039;margin&#039;&#039;&#039;: Set table left margin in em...&quot;</title>
		<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Template:Markupv/doc&amp;diff=16875&amp;oldid=prev"/>
		<updated>2023-04-20T14:21:27Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Documentation subpage}} &amp;lt;!-- Please add categories at the bottom of this page, and interwikis at Wikidata (see Wikipedia:Wikidata) --&amp;gt;  == Usage == This template is used to present markup or code in a vertical format above the rendered output.  Parameters: * &amp;#039;&amp;#039;&amp;#039;markup&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;m&amp;#039;&amp;#039;&amp;#039;: Content of &amp;#039;&amp;#039;Markup&amp;#039;&amp;#039; cell * &amp;#039;&amp;#039;&amp;#039;renders&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;r&amp;#039;&amp;#039;&amp;#039;: Content of &amp;#039;&amp;#039;Renders as&amp;#039;&amp;#039; cell * &amp;#039;&amp;#039;&amp;#039;title&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;t&amp;#039;&amp;#039;&amp;#039;: Title of table; defaults to none * &amp;#039;&amp;#039;&amp;#039;margin&amp;#039;&amp;#039;&amp;#039;: Set table left margin in em...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
&amp;lt;!-- Please add categories at the bottom of this page, and interwikis at Wikidata (see Wikipedia:Wikidata) --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
This template is used to present markup or code in a vertical format above the rendered output.&lt;br /&gt;
&lt;br /&gt;
Parameters:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;markup&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;m&amp;#039;&amp;#039;&amp;#039;: Content of &amp;#039;&amp;#039;Markup&amp;#039;&amp;#039; cell&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;renders&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;r&amp;#039;&amp;#039;&amp;#039;: Content of &amp;#039;&amp;#039;Renders as&amp;#039;&amp;#039; cell&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;title&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;t&amp;#039;&amp;#039;&amp;#039;: Title of table; defaults to none&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;margin&amp;#039;&amp;#039;&amp;#039;: Set table left margin in em&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;width&amp;#039;&amp;#039;&amp;#039;: Table width; defaults to 90%&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;style&amp;#039;&amp;#039;&amp;#039;: Additional CSS for the table&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;Markup&amp;#039;&amp;#039; cell is pre-formatted with {{tag|pre|o}} to retain newlines and spaces, but styled to allow content to wrap within the cell. It is usually desirable to escape the content of the &amp;#039;&amp;#039;Markup&amp;#039;&amp;#039; cell so that the markup is displayed by wrapping the markup in {{xtag|nowiki}}. It is technically not possible to add this feature to the template.&lt;br /&gt;
&lt;br /&gt;
In the &amp;#039;&amp;#039;Renders as&amp;#039;&amp;#039; cell, the content is usually the unescaped markup copied from the &amp;#039;&amp;#039;Markup&amp;#039;&amp;#039; cell. There are instances where this may differ:&lt;br /&gt;
* If the first line includes wikimarkup that must start on a new line such as #, *  or ; then use {{tag|nowiki|s}} before the first line.&lt;br /&gt;
* Header markup such as {{code|1===}} will show in the page table of contents; use {{tlx|fake heading}}.&lt;br /&gt;
* When using {{tlx|reflist}} with no other parameters, use {{tlx|reflist|2=close=1}} to ensure that the reference list is closed.&lt;br /&gt;
* Some templates will place the page in a maintenance category, which is usually undesired:&lt;br /&gt;
** Instead of {{tlx|citation needed}}, use {{tlx|fake citation needed}}.&lt;br /&gt;
* Some templates may have error checking that places the page in a maintenance category. Suppress the category as possible:&lt;br /&gt;
** {{cs1}} templates can suppress the maintenance category by setting {{para|template doc demo|true}}.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
The following meta-example uses {{tlf|markupv}} to create an example of using {{tag|score}}:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{markupv|title=Example:&lt;br /&gt;
|markup=&amp;lt;nowiki&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;score&amp;gt;\relative c&amp;#039; { c( b~ c b c b c b c~ c)}&amp;lt;/score&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|renders=&amp;lt;score&amp;gt;\relative c&amp;#039; { c( b~ c b c b c b c~ c)}&amp;lt;/score&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It generates:&lt;br /&gt;
{{markupv|title=Example:&lt;br /&gt;
|markup=&amp;lt;nowiki&amp;gt;&amp;lt;score&amp;gt;\relative c&amp;#039; { c( b~ c b c b c b c~ c)}&amp;lt;/score&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|renders=&amp;lt;score&amp;gt;\relative c&amp;#039; { c( b~ c b c b c b c~ c)}&amp;lt;/score&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Limitations ==&lt;br /&gt;
If you don&amp;#039;t wrap the content of the markup cell in {{xtag|nowiki}}, then any template markup will not be escaped, it will be expanded.&lt;br /&gt;
&lt;br /&gt;
This example shows the markup for &amp;lt;nowiki&amp;gt;{{tl|tag}}&amp;lt;/nowiki&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
{{markupv|t1=Renders as|t2=Expected rendering&lt;br /&gt;
|m={{tl|tag}}&lt;br /&gt;
|r=&amp;lt;nowiki&amp;gt;{{tl|tag}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
HTML entities are parsed in the markup cell&lt;br /&gt;
{{markupv|t1=Nowikied markup shows as |t2=Expected markup&lt;br /&gt;
|m=&amp;lt;nowiki&amp;gt;&amp;amp;nbsp;&amp;amp;ndash;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|r=&amp;amp;amp;nbsp;&amp;amp;amp;ndash;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
To work around this, replace the &amp;lt;code&amp;gt;&amp;amp;&amp;lt;/code&amp;gt; with &amp;lt;code&amp;gt;&amp;amp;amp;amp;&amp;lt;/code&amp;gt; thus &amp;lt;code&amp;gt;&amp;amp;amp;amp;nbsp;&amp;lt;/code&amp;gt; will show as &amp;lt;code&amp;gt;&amp;amp;amp;nbsp;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Simple examples:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
{{markupv&lt;br /&gt;
|m=&amp;lt;nowiki&amp;gt;&amp;#039;&amp;#039;&amp;#039;Bold text&amp;#039;&amp;#039;&amp;#039;&amp;lt;/nowiki&amp;gt;|r=&amp;#039;&amp;#039;&amp;#039;Bold text&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
}}{{markupv&lt;br /&gt;
|m=&amp;lt;nowiki&amp;gt;&amp;#039;&amp;#039;Italic text&amp;#039;&amp;#039;&amp;lt;/nowiki&amp;gt;|r=&amp;#039;&amp;#039;Italic text&amp;#039;&amp;#039;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Complex example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
Note that the second argument to {{tl2|markupv}} uses {{tl2|fake heading}} and {{tl2|fake citation needed}}.&lt;br /&gt;
{{markupv&lt;br /&gt;
|m=&amp;lt;nowiki&amp;gt;The quick brown fox jumps over the lazy dog.{{#tag:ref|A footnote.&amp;lt;ref&amp;gt;A reference for the footnote.&amp;lt;/ref&amp;gt;|group=nb}} The cow jumped over the moon.{{fact}}&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
{{Reflist|group=nb}}&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
{{Reflist}}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|r=The quick brown fox jumps over the lazy dog.{{#tag:ref|A footnote.&amp;lt;ref&amp;gt;A reference for the footnote.&amp;lt;/ref&amp;gt;|group=nb}} The cow jumped over the moon.{{fake citation needed}}&lt;br /&gt;
&lt;br /&gt;
{{fake heading|sub=3|Notes}}&lt;br /&gt;
{{Reflist|group=nb}}&lt;br /&gt;
&lt;br /&gt;
{{fake heading|sub=3|References}}&lt;br /&gt;
{{Reflist|close}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;With title:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
{{markupv|title=Foxes and dogs&lt;br /&gt;
|m=The quick brown fox jumps over the lazy dog.&lt;br /&gt;
|r=The quick brown fox jumps over the lazy dog.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
When a template is enclosed within {{tl|code}}, it shows the rendered HTML:&lt;br /&gt;
&lt;br /&gt;
{{markupv&lt;br /&gt;
|m=&amp;lt;nowiki&amp;gt;{{cite book |last=White |first=T. H. |title=The Book of Merlyn |year=1977}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|r={{cite book |last=White |first=T. H. |title=The Book of Merlyn |year=1977}}&lt;br /&gt;
}}{{markupv&lt;br /&gt;
|m=&amp;lt;nowiki&amp;gt;{{code|{{cite book |last=White |first=T. H. |title=The Book of Merlyn |year=1977}}}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|r={{code|{{cite book |last=White |first=T. H. |title=The Book of Merlyn |year=1977}}}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{tl|markup}}: side by side markup&lt;br /&gt;
* {{tl|markup2}}: bulleted and indented markup&lt;br /&gt;
* {{tl|markupv}}: above and below markup&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- Add categories below this line, and interwikis at Wikidata --&amp;gt;&lt;br /&gt;
[[Category:Template test cases| ]]&lt;br /&gt;
[[Category:Template namespace templates]]&lt;br /&gt;
[[Category:Documentation assistance templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Caleb Cooper</name></author>
	</entry>
</feed>