Anonymous
Not logged in
Talk
Contributions
Log in
Request account
Rest of What I Know
Search
Editing
Template:Block bug documentation
From Rest of What I Know
Namespaces
Template
Discussion
More
More
Page actions
Read
Edit
History
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
<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 uses a ''named'' parameter (including {{para|1}}) and begins with a list (or any other wikimarkup that is dependent upon a specific markup character being at the beginning of a line), because [[MediaWiki]] behavior is to strip whitespace from named parameters, a {{xtag|nowiki|s}} and a new line must exist before the list (or whatever) starts. This no longer affects ''unnamed'' parameters. Compare: {| class="wikitable" |- ! ! scope="col" | code ! scope="col" | result |- ! scope="row" | Works as intended |{{tlx|nolink=true|{{BASEPAGENAME}}|<br>*Firstly, ...<br/>*Secondly, ...<br/>*Thirdly, ...<br/>}} | <includeonly>{{ {{BASEPAGENAME}}| *Firstly, ... *Secondly, ... *Thirdly, ... }}</includeonly><noinclude>{{error|This output only works when this doc snippet is transcluded.}}</noinclude> |- ! scope="row" | FAIL |{{tlx|nolink=true|{{BASEPAGENAME}}|{{nowrap|{{{1|1}}}{{=}}}}<br>*Firstly, ...<br/>*Secondly, ...<br/>*Thirdly, ...<br/>}} | <includeonly>{{ {{BASEPAGENAME}}|{{{1|1}}}= *Firstly, ... *Secondly, ... *Thirdly, ... }}</includeonly><noinclude>{{error|This output only works when this doc snippet is transcluded.}}</noinclude> |- ! scope="row" | Works as intended |{{tlx|nolink=true|{{BASEPAGENAME}}|{{{1|1}}}{{=}}'''<nowiki />'''<br/>*Firstly, ...<br/>*Secondly, ...<br/>*Thirdly, ...<br/>}} | <includeonly>{{ {{BASEPAGENAME}}|{{{1|1}}}=<nowiki /> *Firstly, ... *Secondly, ... *Thirdly, ... }}</includeonly><noinclude>{{error|This output only works when this doc snippet is transcluded.}}</noinclude> |} 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 nowiki β as in <code><nowiki>|1=<nowiki /></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 {{tag|table|o}}, {{tag|tr|o}}, {{tag|th|o}}, and {{tag|td|o}} markup.<noinclude> {{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. [[Category:Documentation shared content templates]] }} </noinclude>
Summary:
Please note that all contributions to Rest of What I Know are considered to be released under the Creative Commons Attribution-ShareAlike (see
Rest of What I Know:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Wiki tools
Wiki tools
Special pages
Page tools
Page tools
User page tools
More
What links here
Related changes
Page information
Page logs