Jump to content

Template:Short description: Difference between revisions

From Gyaanipedia
m Protected "Template:Short description" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
Tags: Mobile edit Mobile web edit
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{documentation}}
<noinclude>{{documentation}}
== Usage ==
== Usage ==
This template adds a short description to a page for search engines and mobile displays. The description is hidden from the main page view but appears in search results and metadata.
This template adds a short description to a page that appears under the page title, especially visible on mobile devices.


=== Examples ===
=== Examples ===
Line 7: Line 7:
* <code><nowiki>{{Short description|Capital city of France}}</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|Indian festival of lights}}</nowiki></code>
* <code><nowiki>{{Short description|none}}</nowiki></code> - Suppresses automatic descriptions
* <code><nowiki>{{Short description|none}}</nowiki></code> - Suppresses the description


=== Parameters ===
=== Parameters ===
Line 15: Line 15:
Pages using this template are automatically added to [[:Category:Pages with short description]].
Pages using this template are automatically added to [[:Category:Pages with short description]].


</noinclude><includeonly><span class="shortdescription nomobile noexcerpt noprint searchaux" style="display:none">{{#ifeq:{{{1|}}}|none||{{{1|}}}}}</span>{{#ifeq:{{{1|}}}|none||[[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>

Latest revision as of 08:20, 1 November 2025

Usage

This template adds a short description to a page that appears under the page title, especially visible on mobile devices.

Examples

  • {{Short description|American actor and filmmaker}}
  • {{Short description|Capital city of France}}
  • {{Short description|Indian festival of lights}}
  • {{Short description|none}} - 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.