Jump to content

Template talk:Xtag

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
(Redirected from Template talk:Xtag/doc)

lines

[edit]

<poem> is being renamed to <lines>.[1]

Test: <lines> 123 </lines>

--  Gadget850 talk 19:56, 10 February 2014 (UTC)[reply]

Bug

[edit]

I think there is a bug with this template. With {{xtag|syntaxhighlight|p|params=enclose="div" lang="text"}} a space should be rendered between the syntaxhighlight tag and the attribute enclose, e.g. <syntaxhighlight enclose="div" lang="text">...</syntaxhighlight> rather than <syntaxhighlightenclose="div" lang="text">...</syntaxhighlight></nowiki> . --Mrjulesd (talk) 09:42, 28 November 2014 (UTC)[reply]

 Fixed <syntaxhighlight enclose="div" lang="text">...</syntaxhighlight> --  Gadget850 talk 11:58, 28 November 2014 (UTC)[reply]
Thanks. --Mrjulesd (talk) 12:47, 28 November 2014 (UTC)[reply]
Single was also missing a space. Fixed. --  Gadget850 talk 17:12, 28 November 2014 (UTC)[reply]
[edit]

This should work:

[[mw:Extension:SyntaxHighlight|the {{xtag|syntaxhighlight}} MediaWiki tag]]

but it does not:

[[mw:Extension:SyntaxHighlight|the <syntaxhighlight> MediaWiki tag]]

This, however:

[[mw:Extension:SyntaxHighlight|the {{tag|o|syntaxhighlight}} MediaWiki tag]]

does work:

the <syntaxhighlight> MediaWiki tag

It's probably matter of escaping some character in there. Also, this template should probably get a safesubst conversion.  — SMcCandlish ¢ 😼  00:01, 8 February 2021 (UTC)[reply]

The code {{xtag|syntaxhighlight}} expands to
<code class="nowrap">&lt;[[mw:Extension:SyntaxHighlight|syntaxhighlight]]&gt;<!--nothing--></code>
which includes a link. You are therefore trying to make this:
[[mw:Extension:SyntaxHighlight|the <code class="nowrap">&lt;[[mw:Extension:SyntaxHighlight|syntaxhighlight]]&gt;<!--nothing--></code> MediaWiki tag]]
which has a link inside a link, which is forbidden. Why would you want to link mw:Extension:SyntaxHighlight twice, anyway? --Redrose64 🌹 (talk) 16:42, 8 February 2021 (UTC)[reply]