Predloga:Redirect category shell/dok

Iz Wikipedije, proste enciklopedije
Jump to navigation Jump to search

Namen[uredi kodo]

Ta predloga je namenjena standardizaciji preusmeritvenih predlog. Njen osnovni namen je poenostavitev procesa označevanja in kategorizacije preusmeritev.

Ta predloga lahko kategorizira in izpiše besedilo (s parametri) za katerokoli število preusmeritvenih kategorij (običajno od ene do sedem).
[Mbox note 1] [Printworthiness note 1]

Uporaba[uredi kodo]

Used by itself with no parameters, for example, {{Redirect category shell}} (and its alias {{Rcat shell}}), the template will appear as it does at the top of this page, and the redirect will populate Kategorija:Druge preusmeritve. That category will also be populated if the first parameter is left empty while rcats occupy the second parameter. This is useful when an editor adds rcats and yet feels unsure that there may be at least one other rcat with category that may be used to tag the redirect. Monitors of the Druge preusmeritve category will then help decide if another rcat(s) is needed. Then the empty first parameter may be excluded by removing either the first or second pipe. That will remove the redirect from Kategorija:Druge preusmeritve'. See below for more information.

This template may hold any number of different redirect category (rcat) templates, usually from one to seven. The choices for editors are listed at Wikipedia:Template messages/Redirect pages both alphabetically and by function. Any of those rcats may be used either with their full template name, e.g., R from alternative language, or with an alias (shortcut redirect), which may be found in each rcat's documentation.

An unnamed parameter, |1=, has been introduced in this template and works as follows:

{{Redirect category shell|1=
{{rcat 1}}
{{rcat 2}}
{{rcat 3}}
{{rcat N}}
}}
or the ​1=​ may be omitted:
{{Redirect category shell|
{{rcat 1}}
{{rcat 2}}
{{rcat 3}}
{{rcat N}}
}}

As with all templates that have unnamed (numbered) parameters, the numbers and equal signs may be omitted.

"N" represents the highest number of rcats that can be used in this template, and at this point the only limit would be any wikimarkup ceiling that may exist. Usually, from one to seven rcats suffice; however, more rcats can be used if required.

The actual sequence of rcats is left to editors – there is no priority as to which rcat should be "first" and which rcats should "follow" in any particular order.

A second unnamed parameter, |2=, has also been introduced. This gives this template the same "help" functionality that is used in the To je preusmeritev template. If the first parameter is left "empty", then Kategorija:Druge preusmeritve will be populated:

{{Redirect category shell|1=|2=
{{rcat 1}}
{{rcat 2}}
{{rcat N}}
}}
or if a second pipe is placed directly after the first pipe, then that will accomplish the same manifold sort:
{{Redirect category shell||
{{rcat 1}}
{{rcat 2}}
{{rcat N}}
}}

Note the double pipe after the word "shell" above, which indicates an empty first parameter. Editors who monitor the Druge preusmeritve category will come to the redirect and check, add or remove rcats as needed.

Also, when used by itself this template will appear as it does at the top of this page and populate the Druge preusmeritve category:

{{Redirect category shell}}

This template may be added to a redirect page in the following manner:

#PREUSMERITEV [[(ime ciljne strani)]]

{{Redirect category shell||
{{R from short name}}
{{R unprintworthy}}
}}
It can be noted here that the rcats can also go on the same line as the Redirect category shell template:
#PREUSMERITEV [[(ime ciljne strani)]]

{{Redirect category shell||{{R from short name}}{{R unprintworthy}}}}
Again, note the double pipe after "shell" above, which indicates an empty first parameter. Leave the first parameter empty to sort a redirect to Kategorija:Druge preusmeritve in addition to the categories of the rcats that are used. In this case the Redirects from short names and Unprintworthy redirects categories will also be populated. Monitors of the "Druge preusmeritve" category will help editors when needed.

Generally for good readability on the edit screen, this template is placed beginning on the third line of that screen as follows:

Line 1: #PREUSMERITEV [[(ime ciljne strani)]]
Line 2: (please leave this line blank for emphasis and ease of reading by editors)
Line 3: {{Redirect category shell|{{R from move}}{{R to section}}{{R printworthy}}}}
See also: section titled Mbox note below.

Parametri[uredi kodo]

In addition to the unnamed |1= and |2= parameters, there is a "hatnote" parameter, |h=, which provides an italicized TOP note when needed. For example:

{{Redirect category shell|h=This code has not been confirmed as an [[International Air Transport Association airport code|IATA]] airport code.|
{{R from airport code}}
}}

...uses the rcat {{R from airport code}} and produces:

An error box appears that illustrates what happens if an editor uses an rcat in the wrong namespace. Correct namespaces are found on individual rcat documentation pages. In addition to the error box, the redirect will not be sorted to the rcat's category; instead it will populate Kategorija:Pages with templates in the wrong namespace! If an error box appears when an edit is previewed, then appropriate changes can be made before the redirect page is actually saved.
Also, note the pipe symbol (|) that follows the text in the |h= parameter. If this pipe is omitted, very unusual results will be seen when your edit is previewed or saved. Be sure to include that pipe at the very end of the text if the |h= parameter is used to form a hatnote.

Rcat parametri[uredi kodo]

In addition to this template's ability to act as a shell template for rcats, it accepts all of the parameters that rcats accept. Rcat parameters, when needed, will work in this template as follows:

{{Redirect category shell|
{{R from plural|printworthy}}
}}

This subdues the Unprintworthy redirects category to which {{R from plural}} defaults and populates the Printworthy redirects category instead. The position an rcat holds will have no effect on the parameters of other rcats that are used to tag a redirect:

{{Redirect category shell|
{{R from move}}
{{R from modification}}
{{P zaradi alternativnega imena}}
{{R from alternative language|en|es}}
{{R for convenience}}
{{R from plural|printworthy}}
{{R printworthy}}
}}

In the above example, {{R from plural}} is the sixth rcat, and its first parameter is used to change from "unprintworthy" to "printworthy". {{R from alternative language}}) holds the 4th position, and its first parameter is used to house the ISO 639 language code of the source language, in this case  en  for English. Its second parameter houses the language code for the targeted page, in this case  es  for the Spanish language. It does not matter if the relative position of these rcats changes for any reason, their individual parameters will continue to be effective.

If more rcat parameters are used, then they work the same way. For example, if a redirect exists that is a misspelling of a title, it can be tagged with {{R from misspelling}} in the following manner:

{{Redirect category shell|
{{R from misspelling|(correct spelling if needed)|printworthy}}
{{R printworthy}}
}}

In this case, the rcat's |1= parameter is the correct spelling (used only if the target of the redirect is not the correct spelling). The rcat's |2= parameter can be used to change from the default "unprintworthy" categorization. Some misspellings may be helpful in a printed version of Wikipedia, so the second parameter in R from misspelling above is used to subdue its default "unprintworthy" category sort, and the redirect will populate Kategorija:Printworthy redirects instead. In this shell template, the order of the rcats will not affect the rcats' parameters. If an editor checks the page history and finds that the above redirect is also the result of a page move and inserts {{R from move}} at the top of the order:

{{Redirect category shell|
{{R from move}}
{{R from misspelling|(correct spelling)|printworthy}}
{{R printworthy}}
}}

...the parameters of the R from misspelling rcat template will not be affected, as they may be when used in the To je preusmeritev template.

An example of a "printworthy misspelling" can be found at template {{R from misspelling}}.

Another example:

{{Redirect category shell|
{{R from alternative language|ja|es}}
{{R unprintworthy}}
}}

The above code will sort the redirect into three categories:

See the lists of ISO 639-1 and ISO 639-2 codes for two- and three-letter language codes that can be used this way. See also Wikipedia:Template messages/Redirect language codes for common codes that are already used on redirects.

Samostojna uporaba[uredi kodo]

This template is designed to help contributors who are unfamiliar with categorizing redirects by enabling them to sort redirects into the monitored Druge preusmeritve category. Do not hesitate to use this important function to help with sorting redirects to correct and appropriate categories.

There are two ways to sort a redirect into the Druge preusmeritve category. When this template is used without any rcats, it will perform the miscellaneous sort:

{{Redirect category shell}}...

Also, if one or more rcats are known, but an editor is unsure that there might be one or more other rcats that are needed, then leave the first parameter blank (type two pipes together → ||):

{{Redirect category shell||
{{R from subtopic}}
{{R printworthy}}
}}

Monitors of the Druge preusmeritve category will check the redirect, add other rcats if needed and then remove the empty first parameter.

Primerjava[uredi kodo]

Template:Redirect category shell/Comparison shows the difference in the appearance of text between when individual rcats are used and when this template is used.

Druge predloge[uredi kodo]

This template may also carry and hold other templates within it. Even the {{DEFAULTSORT}} magic word and a sort key may be used either inside this template or below it. Another template commonly used within the Rcat shell template is {{Italic title}} and its shortcut {{ital}} to format titles in italics. Some rcats such as {{R from book}} and {{R from film}} automatically format the redirect names in italics. Any appropriate template may be used within this shell template in the following manner:

{{Redirect category shell|
{{R from move}}
{{P zaradi alternativnega imena}}
{{Italic title}}
{{DEFAULTSORT:Hobbit, The}}
}}

Opombe[uredi kodo]

Mbox note

  1. When the wikimarkup code of this template is opened, it is seen that this is an "mbox-based" template. "Mbox" stands for "multi namespace message box", which is a meta-template that works in all namespaces. There can be a problem with this mbox unless editors are careful to place Redirect category shell on its own line at the very beginning of the line. If this is done then all is well; if this is not done, then HTML Tidy may interfere with the mbox and cause this template to appear in an abnormal and unexpected manner when saved. So be careful where you leave this template placed in a redirect's Edit screen, take another look at the above readability guide, and be sure to preview your edits – all your edits.
    Pravilno:
    #PREUSMERITEV [[(ciljna stran)]]
    
    {{Redirect category shell||
    {{R unprintworthy}}
    }}
    
    Ni pravilno:
    #PREUSMERITEV [[(ciljna stran)]] {{Redirect category shell||{{R unprintworthy}}}}
    
    A blank line is usually placed between the redirect target and this template to make the "Edit" screen easier to read.

Printworthiness note

Glej tudi: Wikipedia:Printability
  1. Where the printworthiness of a mainspace redirect is concerned, there are three kinds of rcats:
    1. those that populate the Printworthy redirects category by default,
    2. those that populate the Unprintworthy redirects category by default, and
    3. those that do not default to either of the above, and which leave it to the editor to decide based upon best knowledge whether or not a mainspace redirect is suitable for a printed or DVD version of Wikipedia.
    At present, those that are types 1 and 2 will populate the appropriate printworthiness category, however the notice will not appear within the mbox of this template unless either {{R printworthy}} or {{R unprintworthy}} is listed as an rcat within this template. For example, if a redirect is tagged with:
    {{Redirect category shell|
    {{R from ambiguous term}}
    }}
    

    ...then the hidden categories populated will be Redirects from ambiguous pages and Unprintworthy redirects, and these will appear at the bottom of the redirect page only to registered users who are logged in and who have set their preferences to see hidden categories. The mbox that will appear to all readers would look like:

    If an editor wants the printworthiness category to appear in the mbox, then the redirect must be tagged as follows:

    {{Redirect category shell|
    {{R from ambiguous term}}
    {{R unprintworthy}}
    }}
    

    ...which produces:

    Only then will the printability, printworthy or unprintworthy, be described within this template's mbox on the redirect page.

Glej tudi[uredi kodo]

Ta seznam predlog nudi urejevalcem praktično orodje za hitro iskanje predlog za preusmeritev kategorij, ki se najpogosteje uporabljajo. Ta seznam je urejen glede na njihovo namembnost in v nekaterih primerih podaja primere kako in kdaj jih uporabiti

Predloge za preusmeritev kategorij[uredi kodo]

Slovnica, postavljanje ločil in črkovanje[uredi kodo]

Uporaba Predloga Primer(i)
Okrajšave
Initialisms
  • Za:
  • Ne za:
    • akronime (ustaljena okrajšava večbesednih imen)
    • expanded forms to initialisms
    • inicialke osebnih imen
{{R from initialism}} ZN → Združeni narodi
Države članice ZN → Države članice Združenih Narodov

ANZAC → Australian and New Zealand Army Corps ({{R from acronym}})
British Broadcasting Corporation → BBC ({{R from long name}})
J. S. Bach → Johann Sebastian Bach ({{R from short name}})
Uporaba velikih črk in črkovanje
Alternativno črkovanje
  • Za:
    • pravilno črkovanje alternativnih imen
    • cifre v besede
    • besede v cifre
  • Ne za:
    • napačno črkovanje
    • različen zapis besed, ki vodi do različne izgovorjave
{{R from alternative spelling}} Humor → Humour
Colonization of Africa → Colonisation of Africa
Shed 7 → Shed Sedem
Ena → 1 (cifra)

Alternate future → Alternative future ({{P zaradi alternativnega imena}})
življene → življenje ({{R from misspelling}})
Uporaba velikih črk
  • Za:
    • drugačna uporaba velikih črk
    • imena strani z napačno uporabljenimi velikimi črkami
{{R from other capitalisation}} Cody ChesnuTT → Cody Chesnutt
The beatles → The Beatles

TheBeatles → The Beatles ({{R from CamelCase}})
Napačno črkovanje
  • Za:
    • napačno črkovanje
{{R from misspelling}} življene → življenje
Travelling Wilburys → Traveling Wilburys
Slovnica in postavljanje ločil
Prilagoditve
  • Za:
    • drugačno postavitev ločil
    • preureditev besed
{{R from modification}}
Bližnjica: {{R mod}}
Severno-kavkaško zvezno okrožje → Severno kavkaško zvezno okrožje
Rusko – severnokorejski odnosi → Severnokorejsko – ruski odnosi
1962-63 Ashes series → 1962–63 Ashes series
Iz množine
  • Za:
    • samostalnike v množini ali samostalniške fraze v njihovo obliko v ednini
    • samostalnike v množini ali samostalniške fraze, ko oblika v ednini vodi na isti cilj
  • Ne za:
    • samostalnike v ednini ali samostalniške fraze v njihovo množinsko obliko
{{R from plural}} Psi → Pes
V množino
  • Za:
    • samostalnike v ednini ali samostalniške fraze v njihovo množinsko obliko
    • samostalnike v ednini ali samostalniške fraze, ko oblika v množini vodi na isti cilj
  • Ne za:
    • samostalnike v množini ali samostalniške fraze v njihovo obliko v ednini
{{R to plural}} nebinovka → nebinovke

Alternativna imena[uredi kodo]

Uporaba Predloga Primer(i)
Polna imena kot so
oblika Občina, država ali oblika Vas, Mesto v krajšo obliko imena
{{R from name and country}}
Polna imena
oseb, predmetov, tém v obliki, ki se preusmerjajo na imena člankov z bolj jedrnatim imenom
{{R from long name}}
Kratka imena
oseb, predmetov, tém v obliki, ki se preusmerjajo na polna imena članka
{{R from short name}}
Alternativna imena
prevdonimi, vzevki in sinonimi, ki niso zgodovinska imena ali polna imena kot je omenjeno zgoraj
{{P zaradi alternativnega imena}}
Nepravilna imena
članki, ki so bili preimenovani (prestavljeni) na pravilno ime, preusmeritev pa ni bila odstranjena
{{R from incorrect name}}
Prejšnja imena (brez zgodovinske pomembnosti) {{R from former name}}
Prejšnja imena z zgodovinsko pomembnostjo {{R from historic name}} Kalkuta → Kolkata
Znanstvena imena
  • iz uradnega imena v vsakdanje ime članka
  • vsakdanje ime v bolj uradnega
  • iz alternativnega znanstvenega imena v pravilno (oz. verjetno pravilno) znanstveno ime
  • iz kemijske formule v znanstveno ime ali splošno ime

{{R from scientific name}}
{{R to scientific name}}
{{R from alternative scientific name}}
{{R from molecular formula}}
Drugi jeziki {{R from alternative language}}
Ne-ASCII znaki {{R from ASCII}}
{{R from Unicode}}
Diakritična znamenja {{R from diacritics}}
{{R from title without diacritics}}
Dvoumni priimki {{R from surname}}

Razno[uredi kodo]

Uporaba Predloga Primer(i)
Starejši-slog CamelCase povezav {{R from CamelCase}}
Preusmeritev na članek o desetletju {{R to decade}}
Preusmeritev na razločitveno stran {{R to disambiguation page}}
Za nejasne izraze, ki so že vključene v drugi razločitveni strani {{R from ambiguous page}}
Avtomatsko-generirane povazeva iz EXIF informacije {{R from EXIF}}
Preusmeritev na seznam {{R to list entry}}
Ljudje, ki so člani skupin, organizacij, ansamblov ali ekip {{R from member}}
Pod-téme ali zelo sorodne téme, ki naj bi bile razložene v besedilu in lahko v prihodnosti postanejo samostojni članek {{R with possibilities}}
Sorodni izrazi ali tematike {{R to related topic}}
Sorodne besede {{R from related word}}
Iz škrbinskega članka o šoli na ustrezno lokacijo {{R from school}}
Razdelek {{P na razdelek}}
Preusmeritev zaradi bližnjice (ne "bližnjice predloge"—glej spodaj) {{P zaradi bližnjice}}
Preusmeritev iz bližnjice predloge {{R from template shortcut}}

Združitve, podvojitve in prestavitve[uredi kodo]

Uporaba Predloga Primer(i)
Podvojeni članki {{R from duplicated article}}
Združitve {{P zaradi združitve}}
Premik strani {{R from move}}

V imenske prostore[uredi kodo]

Uporaba Predloga Primer(i)
Imenski prostor kategorij
  • Za:
  • Ne za:
    • stran v imenskem prostoru kategorija na katerokoli
{{R to category}} KAT:A → Kategorija:Administratorji Wikipedije (KAT:A je v glavnem imenskem prostoru)
Kategorija:A → Kategorija:Administratorji Wikipedije
Imenski prostor pomoči
  • Za:
  • Ne za:
    • stran v imenskem prostoru pomoči na stran izven imenskega prostora pomoči
{{R to help}} Pomoč:BOT → Help:BOTI
P:P → Pomoč:Preusmeritev (P:P je v glavnem imenskem prostoru)
Wikipedija:Thumbnail → Pomoč:Datoteke
Glavni imenski prostor
  • Za:
  • Ne za:
    • stran v glavnem imenskem prostoru na katerokoli stran
{{R to main}} Predloga:DSM IV TR → Diagnostični in statistični priročnik za duševne motnje
Beatles → The Beatles
Imenski prostor portalov
  • Za:
  • Ne za:
    • stran v imenskem prostoru portalov na stran izven imenskega prostora portalov
{{R to portal}} Portal:Beatles → Portal:The Beatles
P:ENG → Portal:Anglija
Wikipedija:0 → Portal:Vsebina
Imenski prostor pogovornih strani
  • Za:
  • Ne za:
    • stran v pogovornem imenskem prostoru na stran izven pogovornega imenskega prostora
{{R to talk}} Pogovor:Ax → Pogovor:Axe
Wikipedija:Konflikt interesov → Pogovor o Wikipediji:Konflikt interesov
Uporabniški pogovor:Simon → Uporabnik:Simon ({{R to user}})
Imenski prostor predlog
  • Za:
  • Ne za:
    • stran v imenskegem prostoru predlog na katerokoli stran
{{R to template}} T:S → Predloga:Spotlight (T:S je v glavnem imenskem prostoru.)
Predloga:R from → Predloga:R template index
Imenski prostor uporabnikov
  • Za:
  • Ne za:
    • stran v imenskem prostoru uporabnikov na stran izven imenskega prostora uporabnikov, kot so strani v imenskem prostoru "Uporabniški pogovor"
{{R to user}} Wikipedija:MOS → Uporabnik:Jimbo Wales
Uporabniški pogovor:Tricky Ed → Uporabnik:SuperEditor

Uporabnik:SuperEditor → Uporabniški pogovor:Tricky Ed ({{R to talk}})
Imenski prostor Wikipedija (projekt)
  • Za:
  • Ne za:
    • stran v imenskem prostoru Wikipedia na stran izven imenskega prostora Wikipedija
{{R to project}} Wikipedia:MOS → Wikipedija:Slogovni priročnik
MOS:ABBR → Wikipedija:Slogovni priročnik (kratice)
Pomoč:IPA → Wikipedija:IPA


Glej tudi[uredi kodo]