https://en.seminaverbi.bibleget.io/w/index.php?title=Template:Block_bug_documentation&feed=atom&action=historyTemplate:Block bug documentation - Revision history2024-03-29T00:17:20ZRevision history for this page on the wikiMediaWiki 1.41.0https://en.seminaverbi.bibleget.io/w/index.php?title=Template:Block_bug_documentation&diff=108&oldid=prevJohnrdorazio: 1 revision imported2020-08-21T10:10:24Z<p>1 revision imported</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<tr class="diff-title" lang="en">
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 10:10, August 21, 2020</td>
</tr><tr><td colspan="2" class="diff-notice" lang="en"><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>Johnrdoraziohttps://en.seminaverbi.bibleget.io/w/index.php?title=Template:Block_bug_documentation&diff=107&oldid=preven>MJL: Category:Template documentation --> Category:Documentation shared content templates2019-08-17T00:52:48Z<p><a href="/w/index.php?title=Category:Template_documentation&action=edit&redlink=1" class="new" title="Category:Template documentation (page does not exist)">Category:Template documentation</a> --> <a href="/w/index.php?title=Category:Documentation_shared_content_templates&action=edit&redlink=1" class="new" title="Category:Documentation shared content templates (page does not exist)">Category:Documentation shared content templates</a></p>
<p><b>New page</b></p><div><noinclude>{{notice|Ignore any errors showing below; they do not appear when this snippet is transcluded (nor does this message box). This doc snippet's output only works when it's transcluded into the context of a specific template, e.g. at [[Template:Block indent/doc]]}}<br />
<br />
</noinclude>If the block-formatted content begins with a list (or any other wikimarkup that is dependent upon a specific markup character being at the beginning of a line) then due to a bug in [[MediaWiki]], a {{xtag|nowiki|s}} must exist before the list (or whatever) starts. Compare:<br />
{| class="wikitable"<br />
|-<br />
! &nbsp;<br />
! scope="col" | code<br />
! scope="col" | result<br />
|-<br />
! scope="row" | FAIL<br />
|<br />
{{{{BASEPAGENAME}}<nowiki>|</nowiki>{{{1|1}}}<nowiki>=<br />
*Firstly, ...<br />
*Secondly, ...<br />
*Thirdly, ...<br />
}}</nowiki><br />
| <includeonly>{{{{BASEPAGENAME}}|{{{1|1}}}=<br />
*Firstly, ...<br />
*Secondly, ...<br />
*Thirdly, ...<br />
}}</includeonly><noinclude>{{error|This output only works when this doc snippet is transcluded.}}</noinclude><br />
|-<br />
! scope="row" | Works as intended<br />
|<br />
{{{{BASEPAGENAME}}<nowiki>|</nowiki>{{{1|1}}}<nowiki>=</nowiki>'''&lt;nowiki /&gt;'''<nowiki><br />
*Firstly, ...<br />
*Secondly, ...<br />
*Thirdly, ...<br />
}}</nowiki><br />
| <includeonly>{{{{BASEPAGENAME}}|{{{1|1}}}=<nowiki /><br />
*Firstly, ...<br />
*Secondly, ...<br />
*Thirdly, ...<br />
}}</includeonly><noinclude>{{error|This output only works when this doc snippet is transcluded.}}</noinclude><br />
|}<br />
To embed a table in block markup like this, the block template's content parameter must be named or numbered and include the self-closing noinclude – as in <code><nowiki>|1=&lt;nowiki /&gt;</nowiki></code> – then every <code><nowiki>|</nowiki></code> character in the table markup must be escaped with {{tlx|!}}. An alternative is to use explicit HTML {{code|lang=html|code=<table>}}, {{code|lang=html|code=<tr>}}, {{code|lang=html|code=<th>}}, and {{code|lang=html|code=<td>}} markup.<noinclude><br />
{{Documentation|content=This is transcluded documentation, which can be transcluded in the /doc pages of various templates like {{tlx|Block indent}} and {{tlx|Quote}}, e.g. under a "Technical issue with block templates" heading or the like. Right now it takes no parameter other than {{para|1|{{var|foo}}}}, to change the <code><nowiki>{{{1}}}</nowiki></code> to something else, thus changing the display (and operation) to use something other than {{para|1}} in the shown template operations.<br />
<br />
[[Category:Documentation shared content templates]]<br />
}}<br />
</noinclude></div>en>MJL