Template talk:Xtag
Text has been copied to or from this page; see the list below. The source pages now serve to provide attribution for the content in the destination pages and must not be deleted as long as the copies exist. For attribution and to access older versions of the copied text, please see the history links below.
|
lines
[edit]<poem>
is being renamed to <lines>
.[1]
Test: <lines> 123 </lines>
-- Gadget850 talk 19:56, 10 February 2014 (UTC)
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)
- Fixed
<syntaxhighlight enclose="div" lang="text">...</syntaxhighlight>
-- Gadget850 talk 11:58, 28 November 2014 (UTC)
- Thanks. --Mrjulesd (talk) 12:47, 28 November 2014 (UTC)
- Single was also missing a space. Fixed. -- Gadget850 talk 17:12, 28 November 2014 (UTC)
Breaks inside links
[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:
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)
- The code
{{xtag|syntaxhighlight}}
expands towhich includes a link. You are therefore trying to make this:<code class="nowrap"><[[mw:Extension:SyntaxHighlight|syntaxhighlight]]><!--nothing--></code>
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)[[mw:Extension:SyntaxHighlight|the <code class="nowrap"><[[mw:Extension:SyntaxHighlight|syntaxhighlight]]><!--nothing--></code> MediaWiki tag]]