Template:Short description: Difference between revisions

No edit summary
Tags: Mobile edit Mobile web edit
No edit summary
 
Line 1: Line 1:
<noinclude>
<noinclude>{{documentation}}
This template adds a short description under the page title.
 
'''Usage:''' <code><nowiki>{{Short description|Your description here}}</nowiki></code>
</noinclude><includeonly><div style="display: block; font-size: 90%; color: #54595d; font-style: italic; margin: 0.5em 0 1em 0; line-height: 1.4;">{{#ifeq:{{{1|}}}|none||{{{1}}}}}</div>[[Category:Pages with short description]]</includeonly>
 
== Usage ==
== Usage ==
This template adds a short description to a page that appears under the page title, especially visible on mobile devices.
This template adds a short description to a page that appears under the page title, especially visible on mobile devices.
Line 21: Line 16:


</noinclude><includeonly>{{#ifeq:{{{1|}}}|none||<div class="mw-shortdescription" style="display: block !important; font-size: 90%; color: #54595d; font-style: italic; margin: 0.5em 0 1em 0; line-height: 1.4; padding: 0;">{{{1}}}</div>[[Category:Pages with short description]]}}</includeonly>
</noinclude><includeonly>{{#ifeq:{{{1|}}}|none||<div class="mw-shortdescription" style="display: block !important; font-size: 90%; color: #54595d; font-style: italic; margin: 0.5em 0 1em 0; line-height: 1.4; padding: 0;">{{{1}}}</div>[[Category:Pages with short description]]}}</includeonly>
== Usage ==
This template adds a short description to a page that appears under the page title, especially visible on mobile devices.
=== Examples ===
* <code><nowiki>{{Short description|American actor and filmmaker}}</nowiki></code>
* <code><nowiki>{{Short description|Capital city of France}}</nowiki></code>
* <code><nowiki>{{Short description|Indian festival of lights}}</nowiki></code>
* <code><nowiki>{{Short description|none}}</nowiki></code> - Suppresses the description
=== Parameters ===
* '''1''' (required): The short description text, or "none" to suppress descriptions
== Category ==
Pages using this template are automatically added to [[:Category:Pages with short description]].
</noinclude><includeonly>{{#ifeq:{{{1|}}}|none||<div class="shortdescription">{{{1}}}</div>[[Category:Pages with short description]]}}</includeonly>