Open main menu

Changes

Template:Block bug documentation

24 bytes added, 22:44, 22 November 2021
br
<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]]}}
</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}} and a new line must exist before the list (or whatever) starts. Compare:
{| class="wikitable"
|-
! scope="row" | FAIL
|
{{{{BASEPAGENAME}}<nowiki>|</nowiki>{{{1|1}}}<nowiki>=
*Firstly, ...
*Secondly, ...
*Thirdly, ...
}}</nowiki>
| <includeonly>{{{{BASEPAGENAME}}|{{{1|1}}}=
*Firstly, ...
*Secondly, ...
! scope="row" | Works as intended
|
{{{{BASEPAGENAME}}<nowiki>|</nowiki>{{{1|1}}}<nowiki>=</nowiki>'''&lt;nowiki /&gt;'''<br/><nowiki>
*Firstly, ...
*Secondly, ...
*Thirdly, ...
}}</nowiki>
| <includeonly>{{{{BASEPAGENAME}}|{{{1|1}}}=<nowiki />
*Firstly, ...
*Secondly, ...
Anonymous user