<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://moasspedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AXtag%2Fdoc</id>
	<title>Template:Xtag/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://moasspedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AXtag%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Template:Xtag/doc&amp;action=history"/>
	<updated>2026-04-09T14:48:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>https://moasspedia.org/w/index.php?title=Template:Xtag/doc&amp;diff=39705&amp;oldid=prev</id>
		<title>Wikipedia&gt;Andrybak: Category:HTML typing-aid templates Category:Wikitext typing-aid templates</title>
		<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Template:Xtag/doc&amp;diff=39705&amp;oldid=prev"/>
		<updated>2020-10-03T12:18:23Z</updated>

		<summary type="html">&lt;p&gt;&lt;a href=&quot;/w/index.php?title=Category:HTML_typing-aid_templates&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Category:HTML typing-aid templates (page does not exist)&quot;&gt;Category:HTML typing-aid templates&lt;/a&gt; &lt;a href=&quot;/w/index.php?title=Category:Wikitext_typing-aid_templates&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Category:Wikitext typing-aid templates (page does not exist)&quot;&gt;Category:Wikitext typing-aid templates&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&amp;lt;!----Categories where indicated at the bottom of this page, please----&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This template adds a formatted MediaWiki parser or extension tag that links to the help or extension page. This template is similar to {{tl|tag}}, but it links the tag and defaults to open.&lt;br /&gt;
&lt;br /&gt;
===Parser and extension tags===&lt;br /&gt;
&amp;lt;section begin=&amp;quot;xtag&amp;quot; /&amp;gt;{{Xtag/list}}&amp;lt;section end=&amp;quot;xtag&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Parameters===&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;first parameter&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;(mandatory)&amp;#039;&amp;#039;:  the name of the HTML tag&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;second parameter&amp;#039;&amp;#039;&amp;#039;: what type of tag to display:&lt;br /&gt;
** &amp;lt;code&amp;gt;p&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;pair&amp;lt;/code&amp;gt;:  display a matched pair of open-and-close tags&lt;br /&gt;
*** To suppress the ellipsis which appears between the tags, add an empty {{para|content}} parameter&lt;br /&gt;
** &amp;lt;code&amp;gt;o&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;open&amp;lt;/code&amp;gt; &amp;#039;&amp;#039;(default)&amp;#039;&amp;#039;:  display only the opening tag of an open-and-close pair&lt;br /&gt;
** &amp;lt;code&amp;gt;c&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;close&amp;lt;/code&amp;gt;: display only the closing tag of an open-and-close pair&lt;br /&gt;
** &amp;lt;code&amp;gt;s&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;single&amp;lt;/code&amp;gt;: display a single tag&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;content=&amp;#039;&amp;#039;&amp;#039; the text content of the tags&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;params=&amp;#039;&amp;#039;&amp;#039; any parameters to be included in the opening tag&lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
{{markup&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;{{xtag|nowiki}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|{{xtag|nowiki}}&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;{{xtag|nowiki|s}}&amp;lt;/nowiki&amp;gt;}&lt;br /&gt;
|{{xtag|nowiki|s}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Markup &amp;amp;rarr; Renders as: &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{xtag | syntaxhighlight | p | params= enclose=&amp;quot;div&amp;quot; lang=&amp;quot;text&amp;quot;}}&amp;lt;/nowiki&amp;gt; &amp;lt;/code&amp;gt;&amp;amp;rarr;&amp;lt;br /&amp;gt;&lt;br /&gt;
{{xtag | syntaxhighlight | p | params= enclose=&amp;quot;div&amp;quot; lang=&amp;quot;text&amp;quot;}}&lt;br /&gt;
&lt;br /&gt;
===See also===&lt;br /&gt;
* {{tl|tag}}&lt;br /&gt;
&lt;br /&gt;
====Other formatting templates====&lt;br /&gt;
{{#lsth:Template:Template-linking_templates|Other formatting templates}}&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!----Categories below this line, please:----&amp;gt;&lt;br /&gt;
[[Category:HTML typing-aid templates]]&lt;br /&gt;
[[Category:Wikitext typing-aid templates]]&lt;br /&gt;
[[Category:Wikipedia XHTML tag-replacing templates| ]]&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;Andrybak</name></author>
	</entry>
</feed>