Predloga:Short description/dok

Iz Wikipedije, proste enciklopedije

Predloga:Short description se uporablja za dodajanje kratkega opisa (ki se lahko ureja znotraj Wikipedije) na Wikipedijino stran. Ta opis se pojavi v Wikipedijinih mobilnih iskalnikih in tudi drugje, in pomaga uporabnikom identificirati želeni članek.

UUporaba[uredi kodo]

{{Short description|Napišite vaš kratek opis tukaj}}

Opis naj bo omejen na približno 40 znakov, kot je to razloženo v en:WP:SDFORMAT, skupaj z drugimi navodili v en:WP:SDCONTENT.

Parametri[uredi kodo]

Glejte mesečno poročilo o uporabi parametrov za to predlogo.

TemplateData za Short description

Kreira kratek opis za Wikipedijin članek, ki se uporablja v Visual Editorju za zagodovitev konteksta wikipovezavam.

Parametri predloge[Urejanje podatkov predloge]

Za to predlogo se uporablja postavitev po meri.

ParameterOpisVrstaStanje
Opis1

The short description of the article or 'none'.

Zgled
Chinese encyclopedia writer (1947–2001)
Vsebinazahtevano
No replace?2

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.

Samodejna vrednost
noreplace
Nizneobvezno
pagetypepagetype

The type of page. This puts it in the appropriate category - Things with short description. Normally unneeded, since handled through namespace detection.

Zgled
Redirect, Disambiguation page
Nizneobvezno

O pisanju dobrega kratkega opisa[uredi kodo]

This page is about the short description 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 en:WP:HOWTOSD. General information can be found at en:Wikipedia:Short description.

Informacije o predlogi[uredi kodo]

Vsak članek naj bi vseboval kratek opis:

  • pri neposredni uporabi te predloge, naj bi bil vsak kratek opis unikaten za članek
  • opisi vključeni v drugi predlogi, kot je razločitvena predloga, kjer je generičen kratek opis ustrezen za večje število strani
  • kjer je kratek opis vzet iz podatkov v infopolju

Avtomatsko generirani opisi znotraj predlog naj nastavijo drugi parameter kot noreplace, tako da ne prepišejo kakršenkoli kratek opis posebej dodan v članku.

Kraki opisi običajno niso potrebni na straneh, ki niso članki, kot so preusmeritve, anpak so prav tako lahko uporabni.

Če je naslov članka dovolj dober za zagotovitev zanesljive informacije o članku, se lahko uporabi null vrednost {{Short description|none}}.

Kratek opis nima nujno enake funkcije kot opis v Wikipodatkih in ni potrebno, da sta enaka. Nekateri opisi v Wikipodatkih so lahko neprimerni in jih je v primeru uvažanja potrebno preveriti, če so ustrezni. (Glej tudi Wikidata:Help:Description.)

Zgled[uredi kodo]

Zdravljenje s kisikom, doda sledeče na sam vrh članka:

  • {{Short description|Uporaba kisika kot medicinski poseg}}

Testiranje[uredi kodo]

For testing purposes, the display of this template can be enabled by adding a line to your Special:MyPage/common.css:

  • .shortdescription { display:block !important; }

This can be easily removed or disabled when finished testing.

If you want to always see short descriptions, you may prefer a more utilitarian layout, such as:

.shortdescription {
  display:block !important;
  white-space: pre-wrap;
}
.shortdescription::before { 
  content: "\A[Short description:\0020";
}
.shortdescription::after { 
  content: "]\A";
}

There is a test version of this template available as Predloga:Short description/test which displays its text by default.

  • {{Short description/test}} displays the short description if supplied
  • {{Short description/test}} displays nothing if none is supplied
  • {{Short description/test}} displays the description from Wikidata if wikidata is supplied.

Taking potapljanje z jeklenko (Q1096878) as an example:

  • {{Short description/test|Underwater diving where breathing is from equipment independent of the surface}}Underwater diving where breathing is from equipment independent of the surface
  • {{Short description/test|none }}
  • {{Short description/test|wikidata }}underwater diving where the diver breathes from apparatus (scuba) which is completely independent of surface supply

Pagetype parameter[uredi kodo]

Če parameter {{{Pagetype}}} ni nastavljen, potem ta predloga doda članek v kategorijo glede na imenski prostor:

Če {{{Pagetype}}} je nastavljen, potem ta predloga doda članek v kategorijo, ki ustreza parametru. Na primer:

Aliasi[uredi kodo]

While there are currently redirects to this template, they must not be used.

Other templates and gadgets attempt to extract the description from pages by explicitly searching for the use of the {{Short description}} template.
For example, {{Annotated link}} searches for templates "Short description" or "short description".

Do not start the template with a space: {{ Short description.... While this does create a valid short description, the space will prevent searches for the {{Short description... text.

Vzdrževalne kategorije[uredi kodo]

Glej tudi[uredi kodo]