Template:Short description: Difference between revisions

en>Trialpears
Add <nowiki /> when none is used to prevent whitespace issues when used with adjacent newlines
 
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#ifeq:{{lc:{{{1|}}}}}|none|<nowiki /><!--Prevents whitespace issues when used with adjacent newlines-->|<div class="shortdescription nomobile noexcerpt noprint searchaux" style="display:none">{{{1|}}}{{SHORTDESC:{{{1|}}}|{{{2|}}}}}</div>}}<includeonly>[[Category:{{{pagetype|{{pagetype |defaultns = extended |plural=y}}}}} with short description{{#ifeq:{{{pagetype}}}|Disambiguation pages|s}}]]</includeonly><!-- Start tracking
<includeonly><div id="mw-content-subtitle">{{{1|}}}</div></includeonly>
-->{{#invoke:Check for unknown parameters|check|unknown={{Main other|[[Category:Pages using short description with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Short description]] with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | pagetype | bot |plural }}<!--
<noinclude>
-->{{#ifexpr: {{#invoke:String|len|{{{1|}}}}}>100 | [[Category:{{{pagetype|{{pagetype |defaultns = extended |plural=y}}}}} with long short description]]}}<!--
This template displays a short description below the page title and does not add categories.
-->{{Main other |{{SDcat |sd={{{1|}}} }} }}<noinclude>
Usage:
{{Documentation}}
<pre>{{SHORTDESC:Your description}}</pre>
</noinclude>
</noinclude>