https://wiki.seshstation.com/index.php?title=Template:Short_description/doc&feed=atom&action=historyTemplate:Short description/doc - Revision history2024-03-29T08:15:01ZRevision history for this page on the wikiMediaWiki 1.36.1https://wiki.seshstation.com/index.php?title=Template:Short_description/doc&diff=410&oldid=prevSESHstation: 1 revision imported2021-11-21T11:11:25Z<p>1 revision imported</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<tr class="diff-title" lang="en">
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 11:11, 21 November 2021</td>
</tr><tr><td colspan="2" class="diff-notice" lang="en"><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>SESHstationhttps://wiki.seshstation.com/index.php?title=Template:Short_description/doc&diff=409&oldid=prevtmpl>JohnFromPinckney: /* Usage */ A quick hint as to one of the desired limits when using this template.2021-11-19T01:57:48Z<p><span dir="auto"><span class="autocomment">Usage: </span> A quick hint as to one of the desired limits when using this template.</span></p>
<p><b>New page</b></p><div>{{Documentation subpage}}<br />
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --><br />
{{High risk|all-pages = yes}}<br />
{{Warning|'''Please do not use redirects/shortcuts for this template''', as they cause problems with the [[User:Galobtter/Shortdesc helper|short description editing gadget]] and other maintenance tools.}}<br />
<br />
'''[[Template:Short description]]''' is used to add a [[Wikipedia:Short description|short description]] (which can be edited from within Wikipedia) to a Wikipedia page. These descriptions appear in Wikipedia mobile searches and elsewhere, and help users identify the desired article.<br />
<br />
== Usage ==<br />
{{tld|Short description|''Write your short description here''}}<br />
<br />
This should be limited to about 40 characters, as explained at [[WP:SDFORMAT]], along with the other guidance at [[WP:SDCONTENT]].<br />
<br />
== Parameters ==<br />
{{TemplateData header|noheader=1}}<br />
<templatedata><br />
{<br />
"description": {<br />
"en": "Creates a short description, for a Wikipedia article, which is used in the Visual Editor to provide context on wikilinks.",<br />
"es": "Crea una breve descripción, para un artículo de Wikipedia, que se utiliza en el Editor Visual para proporcionar contexto en los wikilinks (wikienlaces)."<br />
},<br />
"params": {<br />
"1": {<br />
"label": {<br />
"en": "Description",<br />
"es": "Descripción"<br />
},<br />
"description": {<br />
"en": "The short description of the article or 'none'.",<br />
"es": "La descripción corta del artículo"<br />
},<br />
"example": {<br />
"en": "Chinese encyclopedia writer (1947–2001)",<br />
"es": "La enciclopedia en línea que cualquiera puede editar"<br />
},<br />
"required": true,<br />
"type": "content"<br />
},<br />
"2": {<br />
"label": {<br />
"en": "No replace?",<br />
"es": "2"<br />
},<br />
"description": {<br />
"en": "Should be unused or 'noreplace'. Templates with noreplace will not replace a short description defined by an earlier template. Mainly for use within transcluded templates.",<br />
"es": "Se anula una descripción corta si se transcluye. Debe estar sin usar o con 'noreplace' (que significar no reemplazar)."<br />
},<br />
"example": {<br />
"es": "noreplace"<br />
},<br />
"required": false,<br />
"type": "string",<br />
"autovalue": "noreplace"<br />
},<br />
"pagetype": {<br />
"type": "string",<br />
"description": {<br />
"en": "The type of page. This puts it in the appropriate category - Things with short description. Normally unneeded, since handled through namespace detection.",<br />
"es": "El tipo de página. La coloca en la categoría apropiada - Cosas con descripción corta"<br />
},<br />
"example": "Redirect, Disambiguation page",<br />
"required": false<br />
}<br />
},<br />
"format": "{{_|_ = _}}\n"<br />
}<br />
</templatedata><br />
<br />
== About writing good short descriptions ==<br />
This page is about the short description {{em|template}}; it does not provide guidelines for writing a good short description. If you plan to use this template, you should make sure you read and follow the detailed guidance at [[WP:HOWTOSD]]. General information can be found at [[Wikipedia:Short description]].<br />
<br />
== Template information ==<br />
Eventually all articles should have a short description:<br />
* by directly using this template, in which case the short description will be unique to the article<br />
* transcluded in another template, such as a disambiguation template, where a generic short description is adequate for a large class of pages<br />
* where the short description is assembled from data in an infobox<br />
<br />
Automatically generated descriptions within templates should set the second parameter as {{code|noreplace}} so they do not override any short descriptions specifically added to the transcluding article.<br />
<br />
Short descriptions are not normally needed for non-article pages, such as redirects, but can be added if useful.<br />
<br />
If the article title alone is sufficient to ensure reliable identification of the desired article, a null value of {{tnull|Short description|none}} may be used.<br />
<br />
Short descriptions do not necessarily serve the same function as the Wikidata description for an item and they do not have to be the same, but some overlap is expected in many cases. Some Wikidata descriptions may be unsuitable, and if imported must be checked for relevance, accuracy and fitness for purpose. Responsibility for such imports lies with the importer. {{crossref|(See also [[d:Help:Description|Wikidata:Help:Description]].)}}<br />
<br />
=== Example ===<br />
At [[Oxygen therapy]], add the following at the very top of the article, above everything else:<br />
* {{tld|Short description|Use of oxygen as medical treatment}}<br />
<br />
== Testing ==<br />
For testing purposes, the display of this template can be enabled by adding a line to your [[Special:MyPage/common.css]]:<br />
* <syntaxhighlight lang="CSS" inline>.shortdescription { display:block !important; }</syntaxhighlight><br />
This can be easily removed or disabled when finished testing.<br />
<br />
If you want to {{em|always}} see short descriptions, you may prefer a more utilitarian layout, such as:<br />
<br />
<syntaxhighlight lang="CSS"><br />
.shortdescription {<br />
display:block !important;<br />
white-space: pre-wrap;<br />
}<br />
.shortdescription::before { <br />
content: "\A[Short description:\0020";<br />
}<br />
.shortdescription::after { <br />
content: "]\A";<br />
}<br />
</syntaxhighlight><br />
There is a test version of this template available as [[Template:Short description/test]] which displays its text by default.<br />
* {{tld|Short description/test}} displays the short description if supplied<br />
* {{tld|Short description/test}} displays nothing if <code>none</code> is supplied<br />
* {{tld|Short description/test}} displays the description from Wikidata if <code>wikidata</code> is supplied.<br />
<br />
Taking {{Q|Q1096878}} as an example:<br />
* <code><nowiki>{{short description/test|Underwater diving where breathing is from equipment independent of the surface}}</nowiki></code> → {{short description/test|Underwater diving where breathing is from equipment independent of the surface }}<br />
* <code><nowiki>{{short description/test|none }}</nowiki></code> → {{short description/test|none}}<br />
* <code><nowiki>{{short description/test|wikidata }}</nowiki></code> → {{short description/test|wikidata|qid=Q1096878}}<br />
<br />
===Pagetype parameter===<br />
If {{param|Pagetype}} is '''not''' set, then this template adds the article to a category based on the namespace:<br />
* {{clc|Articles with short description}}<br />
* {{clc|Categories with short description}}<br />
* {{clc|Drafts with short description}}<br />
* {{clc|Files with short description}}<br />
* {{clc|Help pages with short description}}<br />
* {{clc|Modules with short description}}<br />
* {{clc|Portals with short description}}<br />
* {{clc|Project pages with short description}}<br />
* {{clc|Templates with short description}}<br />
* {{clc|User pages with short description}}<br />
* {{clc|Redirects with short description}} {{--}} for redirects in any namespace<br />
<br />
If {{param|Pagetype}} '''is''' set, then this template adds the article to a category matching the parameter. For example:<br />
* {{clc|Disambiguation pages with short description}} {{--}} {{code|pagetype {{=}} Disambiguation page}}<br />
<br />
{{anchor|No-aliases}}<br />
== Aliases ==<br />
{{shortcut|WP:SDNOALIASES}}<br />
While there are currently <span class="plainlinks">[{{fullurl:Special:WhatLinksHere/Template:Short_description|hidetrans=1&hidelinks=1&limit=500}} redirects to this template]</span>, '''they must not be used'''.<br />
<br />
: Other templates and gadgets attempt to extract the description from pages by explicitly searching for the use of the {{tl|Short description}} template.<br />
: For example, {{tl|Annotated link}} searches for templates "Short description" or "short description".<br />
<br />
'''Do not''' start the template with a space: {{code|<nowiki> {{ Short description...</nowiki>}}. While this does create a valid short description, the space will prevent searches for the {{code|<nowiki>{{Short description...</nowiki>}} text.<br />
<br />
== Maintenance categories ==<br />
* {{clc|Pages using short description with unknown parameters}}<br />
* {{clc|Articles with long short description}}<br />
* {{clc|Wikipedia pages with long short description}}<br />
* {{clc|Templates that generate short descriptions}}<br />
* {{clc|Modules that create a short description}}<br />
* {{clc|Category:Short description matches Wikidata}}<br />
* {{clc|Category:Short description is different from Wikidata}}<br />
* {{clc|Category:Short description with empty Wikidata description}}<br />
<br />
==See also ==<br />
* {{tl|Auto short description}}<br />
* {{tl|Annotated link}}<br />
* [[Wikipedia:WikiProject Short descriptions]]<br />
<br />
<includeonly>{{Sandbox other||<br />
<!-- Categories below this line, please; interwikis at Wikidata --><br />
<!-- Category:Articles with short description (maintenance category)? --><br />
[[Category:Templates that add a tracking category]]<br />
}}</includeonly></div>tmpl>JohnFromPinckney