Predloga:Povezave v sorodne projekte

Iz Wikipedije, proste enciklopedije
(Preusmerjeno s strani Predloga:V sorodnikih)
Dokumentacija za predlogo[poglej] [uredi] [zgodovina] [osveži]

The {{Sister project links}} template provides one box with links to corresponding pages on various Wikimedia sister projects. The following pages are sought, in order:

  • An explicit page chosen by an editor (if provided)
  • A sitelink in Wikidata (if exists)
  • A search page on the sister project

Sending a reader to a search page can be an unpleasant experience, if there is no corresponding page for that subject. Editors have a choice between two methods to prevent this negative experience:

  • Manually check each project for a relevant page, if missing, then set argument to "no" (e.g., |wikt=n)
  • Use "automatic mode", which only displays a sister project by default if sitelink exists (e.g., |auto=yes)

Note that {{Sister project auto}} is equivalent to {{Sister project links|auto=yes}}.

Usage[uredi kodo]

{{Sister project links
<!-- Configuration parameters. -->
 |1= |display= |auto= |collapsible= |position= |style= 

<!-- Note: The order of the projects is as they appear in the navbox. -->
<!-- First part: Projects that default to "yes" when auto=no -->
 |wikt= |c= |n= |q= |s= |b= |v=

<!-- Second part: Projects that default to "no" when auto=no -->
 |voy= |species= |species_author= |iw= |d= |m= |mw=

<!-- The following parameters specifying search options for pages above. -->
 |commonscat= <!-- (relevant for c) force link to commons category -->
 |author= <!-- (relevant for s) force search for author name in wikisource -->
 |cookbook= <!-- (relevant for b) force link to cookbook at wikibooks -->
}}

Example with all parameters and all projects displayed (see right):

{{Sister project links 
 |1= |display= |auto= |collapsible= |position= |style= 
 |wikt= |c= |n= |q= |s= |b= |v=
 |voy=yes |species=yes |species_author=John |iw=en |d=yes |m=yes |mw=yes
 |commonscat= |author= |cookbook= 
}}

Default display[uredi kodo]

For any project parameter, there are four acceptable values:

  • "yes" means find a reasonable link for the sister project (wikidata, or default back to search)
  • "no" means exclude this sister project: no link
  • a string means link to the page with whose title is that string
  • blank or missing means use the default
    • If |auto=yes, default is either use wikidata (if present), or drop the link
    • If |auto=no, if project is in the "yes" list above, either use wikidata or search. Otherwise drop the link.

Location[uredi kodo]

If using a large, graphical template produces odd layout problems, like the excessive white space shown on the right of this screenshot, then switch to a different sister template.

Generally:

N Do not place this template in a section all by itself.
N Do not place this template in a section containing columns.

Specifically:

TemplateData[uredi kodo]

To je dokumentacija TemplateData za predlogo, ki jo uporabljajo Vizualni urejevalnik in druga orodja; glejte mesečno poročilo o uporabi parametrov za to predlogo.

TemplateData za Povezave v sorodne projekte

Displays a terminal window with a set of commands. If the titles in the individual sister projects differ, use the following parameters, which are taken from [[Help:Interwiki linking]]. The value "Yes" means that the page will be found automatically.

Parametri predloge[Urejanje podatkov predloge]

ParameterOpisVrstaStanje
Search term1

Use if the ''search term'' differs from the pagename.

Privzeto
{{PAGENAME}}
Nizneobvezno
Display namedisplay

Use if the ''display name'' is different from the search term. For example, the bear article would be 'Bears'.

Privzeto
{{PAGENAME}}
Nizneobvezno
Use wikidata to fill defaultsauto

If auto="yes", then sister projects with wikidata sitelinks are filled-in, others are off by default. Each project can be overridden with its own parameter.

Privzeto
No
Nizneobvezno
Collapsible?collapsible

Set to "yes" to make the template collapsible. Set to "collapsed" to make the template collapsible and initially collapsed.

Privzeto
No
Nizneobvezno
Positionposition

Specifies whether the box floats to the left or right. The only acceptable value is "left" which causes the box to float to the left. Any other value (not specifying this parameter) activates the default. (Float to the right.)

Privzeto
right
Nizneobvezno
CSS stylestyle

Optional CSS style specifications. Use with caution. (And don't use for evil!)

Nizneobvezno
Wiktionary linkwikt

Wiktionary link to show. Acceptable values are a page name, "yes", and "no".

Privzeto
Yes
Nizneobvezno
Commons linkc commons

Commons link to show. Acceptable values are a page name, "yes" and "no".

Privzeto
Yes
Nizneobvezno
Commons category?commonscat

Specifies whether a link to a category on Wikimedia Commons is shown. Can be "yes" or "no".

Privzeto
No
Nizneobvezno
Wikinews linkn

Wikinews link to show. Acceptable values are a page name, "yes" and "no".

Privzeto
Yes
Nizneobvezno
Wikiquote linkq

Wikiquote link to show. Acceptable values are a page name, "yes" and "no".

Privzeto
Yes
Nizneobvezno
Wikisource links

Wikisource link to show. Acceptable values are a page name, "yes" and "no".

Privzeto
Yes
Nizneobvezno
Wikisource author?author

Use for articles about authors to force the Wikisource links to include the "Author:" prefix. Can be set to "yes" or "no".

Privzeto
No
Nizneobvezno
Wikibooks linkb

Wikibooks link to show. Acceptable values are a page name, "yes" and "no".

Privzeto
Yes
Nizneobvezno
Cookbookcookbook

If yes, link to Cookbook at wikibooks. If string, use that string as article title in Cookbooks.

Privzeto
No
Nizneobvezno
Wikiversity linkv

Wikiversity link to show. Acceptable values are a page name, "yes", and "no".

Privzeto
Yes
Nizneobvezno
Wikivoyage linkvoy

Wikivoyage link to show. Acceptable values are a page name, "yes" and "no".

Privzeto
No
Nizneobvezno
Wikispecies taxon linkspecies

Wikispecies link to show. Acceptable values are a page name, "yes" and "no".

Privzeto
No
Nizneobvezno
Wikispecies author linkspecies_author

Wikispecies author link to show. Acceptable values are a page name, "yes" and "no". Even if "yes" it will be only displayed when species ≠ "yes"

Privzeto
No
Nizneobvezno
Interwiki linkiw

Link to other language edition. Acceptable values are a Wikipedia language code (e.g., "de"), "yes" and "no".

Privzeto
No
Nizneobvezno
Wikidata linkd

Wikidata link to show. Acceptable values are a QID, "yes" and "no".

Privzeto
No
Nizneobvezno
Meta linkm

Meta link to show. Acceptable values are a page name, "yes" and "no".

Privzeto
No
Nizneobvezno
MediaWiki linkmw

MediaWiki link to show. Acceptable values are a page name, "yes" and "no".

Privzeto
No
Nizneobvezno

Images used[uredi kodo]

This template potentially displays the following images:

Wiktionary logo wikt
Wikimedia Commons logo c or commons
Wikinews logo n
Wikiquote logo q
Wikisource logo s
Wikibooks logo b
Wikivoyage logo voy
Wikiversity logo v
Wikispecies logo species or species_author
Wikipedia logo iw
Wikidata logo d
Meta-Wiki logo m
MediaWiki logo mw

Tracking categories[uredi kodo]

See also[uredi kodo]