Revision as of 23:56, 20 December 2014 view sourceSardanaphalus (talk | contribs)119,752 edits simplification (collapsible handling)← Previous edit | Revision as of 08:27, 21 December 2014 view source Koavf (talk | contribs)Extended confirmed users2,174,994 editsm Reverted edits by Sardanaphalus (talk) to last version by KoavfNext edit → | ||
Line 1: | Line 1: | ||
{| class="metadata plainlinks mbox-small{{#ifeq:{{lc:{{{position|}}}}}|left|-left}}" style="padding:0.25em 0.5em 0.5em 0.75em;border:1px solid #aaa;background:#f9f9f9;{{{style|}}}" | |||
<includeonly>{{Infobox | |||
|- style="height:25px;"<!----logos below all 25 by 25px----> | |||
| bodyclass = metadata plainlinks mbox-small{{#ifeq:{{lc:{{{position|}}}}}|left|-left}} {{#if:{{{collapsible|}}} |collapsible {{{collapsible|}}} }} | |||
|colspan="2" style="padding-bottom:0.5em;border-bottom:1px solid #aaa;margin:auto;text-align:center;"| Find more about<br>'''{{{display|{{{1|{{PAGENAME}}}}}}}}'''<br>at Misplaced Pages's ] | |||
| bodystyle = border:1px solid #aaa;background:#f9f9f9;padding:0.25em 0.5em 1.0em 0.5em;{{{style|}}} | |||
|- style="height:25px;" | |||
{{#ifeq:{{{wikt}}}|no | | |||
| abovestyle = font-size:100%;line-height:0.1em;font-weight:normal; padding-bottom:0.75em;border-bottom:1px solid #aaa; | |||
| {{!}}style="padding-top:0.75em;"{{!}} ] | |||
| above = <br/><div style="line-height:1.25em;"> Find more about<br/>'''{{{display|{{{1|{{PAGENAME}}}}}}}}'''<br/>at Misplaced Pages's ] </div> | |||
{{!}}style="padding-top:0.75em;"{{!}} ] from Wiktionary | |||
}} | |||
<!--(height 25px because images 25x25px:)--> | |||
|- style="height:25px;" | |||
| labelstyle = height:25px;vertical-align:middle;padding-left:0.75em;font-weight:normal; | |||
{{#ifeq:{{{commons}}}|no | | |||
| datastyle = height:25px;vertical-align:middle; | |||
| {{!}} ] | |||
{{!}} ] from Commons | |||
}} | |||
| data1 = <div style="padding-top:0.5em;"> {{#ifeq:{{{wikt}}}|no | |] from Wiktionary}} </div> | |||
|- style="height:25px;" | |||
{{#ifeq:{{{n}}}|no | | |||
| label2 = ] | |||
| |
| {{!}} ] | ||
{{!}} ] from Wikinews | |||
}} | |||
| label3 = ] | |||
|- style="height:25px;" | |||
| data3 = {{#ifeq:{{{n}}}|no | |] from Wikinews}} | |||
{{#ifeq:{{{q}}}|no | | |||
| |
| {{!}} ] | ||
{{!}} ] from Wikiquote | |||
}} | |||
|- style="height:25px;" | |||
{{#ifeq:{{{s}}}|no | | |||
| label5 = ] | |||
| {{#ifeq:{{{author|no}}}|yes | |||
| data5 = {{#ifeq:{{{s}}}|no | |] from Wikisource}} | |||
| {{!}} ] | |||
{{!}} ] from Wikisource | |||
| {{!}} ] | |||
{{!}} ] from Wikisource | |||
}} | |||
| label7 = ] | |||
}} | |||
| data7 = {{#ifeq: {{#switch:{{{voy|}}} |no=false |={{#ifeq:{{#property:P107}}|geographical feature |true |false}} |#default=true}} | true | |||
|- style="height:25px;" | |||
|<!--(then:)--> ] from Wikivoyage | |||
{{#ifeq:{{{b}}}|no | | |||
}} | |||
| {{!}} ] | |||
{{!}} ] from Wikibooks | |||
}} | |||
| data8 = {{#ifeq:{{{v}}}|no | |] from Wikiversity}} | |||
|- style="height:25px;" | |||
{{#ifeq: | |||
| label9 = ] | |||
{{#switch: {{{voy|<noinclude>yes</noinclude>}}} | |||
| data9 = {{#ifeq:{{{d|no}}}|no | |] on Wikidata}} | |||
| no = false | |||
| = {{#ifeq:{{#property:P107}}|geographical feature|true|false}} | |||
| label10 = ] | |||
| #default = true | |||
| data10 = {{#ifeq:{{{species|no}}}|no | |] from Wikispecies}} | |||
}} | |||
| true | |||
| label11 = ] | |||
| |
| {{!}} ] | ||
{{!}} ] from Wikivoyage | |||
}} | |||
| label12 = ] | |||
|- style="height:25px;" | |||
| data12 = {{#if:{{{m|}}} |] from Meta-Wiki}} | |||
{{#ifeq:{{{v}}}|no | | |||
| |
| {{!}} ] | ||
{{!}} ] from Wikiversity | |||
}} | |||
|- style="height:25px;" | |||
}}</includeonly><noinclude> | |||
{{#ifeq:{{{d<includeonly>|no</includeonly>}}}|no | | |||
{{Documentation}} | |||
| {{!}} ] | |||
{{!}} ] on Wikidata | |||
}} | |||
|- style="height:25px;" | |||
{{#ifeq:{{{species<includeonly>|no</includeonly>}}}|no | | |||
| {{!}} ] | |||
{{!}} ] from Wikispecies | |||
}} | |||
|- style="height:25px;" | |||
{{#ifeq:{{{species_author<includeonly>|no</includeonly>}}}|no | | |||
| {{!}} ] | |||
{{!}} ] on Wikispecies | |||
}} | |||
|- style="height:25px;" | |||
<includeonly>{{#if:{{{m|}}}| | |||
{{#switch:{{lc:{{{m}}}}} | |||
|yes = {{!}}</includeonly><noinclude>|</noinclude> ] | |||
<includeonly>{{!}}</includeonly><noinclude>|</noinclude> ] from Meta-Wiki | |||
<includeonly>|no = | |||
|{{!}} ] | |||
{{!}} ] from Meta-Wiki | |||
}} | |||
}}</includeonly> | |||
|- style="height:25px;" | |||
{{#ifeq:{{{mw<includeonly>|no</includeonly>}}}|no | | |||
| {{!}} ] | |||
{{!}} ] from MediaWiki | |||
}} | |||
|}<noinclude> | |||
{{documentation}} | |||
</noinclude> | </noinclude> |
Revision as of 08:27, 21 December 2014
Find more about Sister project links at Misplaced Pages's sister projects | |
Definitions from Wiktionary | |
Media from Commons | |
News stories from Wikinews | |
Quotations from Wikiquote | |
Source texts from Wikisource | |
Textbooks from Wikibooks | |
Travel information from Wikivoyage | |
Learning resources from Wikiversity | |
Database entry on Wikidata | |
Taxonomy of from Wikispecies | |
Species author on Wikispecies | |
Discussion from Meta-Wiki | |
Documentation on from MediaWiki |
This template is used on approximately 12,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template uses Lua: |
Find more about Sister project links at Misplaced Pages's sister projects | |
Definitions from Wiktionary | |
Media from Commons | |
News stories from Wikinews | |
Quotations from Wikiquote | |
Source texts from Wikisource | |
Textbooks from Wikibooks | |
Learning resources from Wikiversity |
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
Find more about ' at Misplaced Pages's sister projects | |
Definitions from Wiktionary | |
Media from Commons | |
News stories from Wikinews | |
Quotations from Wikiquote | |
Source texts from Wikisource | |
Textbooks from Wikibooks | |
Travel guide from Wikivoyage | |
Learning resources from Wikiversity | |
Database entry Yes on Wikidata | |
Taxonomy of yes from Wikispecies | |
Species authorJohn on Wikispecies | |
Discussion from Meta-Wiki | |
Documentation on yes from MediaWiki |
{{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= |f= <!-- 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 |f=yes |commonscat= |author= |cookbook= }}
Default display
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.
- If
Location
Generally:
- N Do not place this template or any box-type template in a section all by itself.
- N Do not place this template in a section containing columns without floating left.
- N Do not indent this template with colon (:) or a bullet (*) markup.
Specifically:
- In articles, this template should be placed at the top of the last section on the page so that it floats to the right of that section.
- See Misplaced Pages:Wikimedia sister projects#Where to place links for more information and alternatives.
- In disambiguation pages, this template is usually placed at the top of the page.
- In categories, this template should be grouped with other templates at the beginning of the category introduction. This avoids unnecessary white space as any text is floated around the template boxes.
Interwiki link
The |iw=
parameter is for use in articles about languages themselves. It is designed to be used instead of the {{InterWiki}} template: it links to the Main Page of Misplaced Pages that corresponds to the language code. See Template:InterWiki/doc for more information. Up to three sister Wikipedias can be linked, using |iw=
, |iw1=
, and |iw2=
.
TemplateData
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Sister project links in articles based on its TemplateData.TemplateData for Sister project links
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 ]. The value "Yes" means that the page will be found automatically.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Search term | 1 | Use if the ''search term'' differs from the pagename. E.g. to change the capitalization for Wiktionary links
| String | optional |
Display name | display | Use if the ''display name'' is different from the search term. For example, the bear article would be 'Bears'.
| String | optional |
Use wikidata to fill defaults | auto | 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.
| String | optional |
Collapsible? | collapsible | Set to "yes" to make the template collapsible. Set to "collapsed" to make the template collapsible and initially collapsed.
| String | optional |
Position | position | 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.)
| String | optional |
CSS style | style | Optional CSS style specifications. Use with caution. (And don't use for evil!) | String | optional |
Wiktionary link | wikt | Wiktionary link to show. Acceptable values are a page name, "yes", and "no".
| String | optional |
Commons link | c commons | Commons link to show. Acceptable values are a page name, "yes" and "no".
| String | optional |
Commons category? | commonscat | Specifies whether a link to a category on Wikimedia Commons is shown. Can be "yes" or "no".
| String | optional |
Wikinews link | n | Wikinews link to show. Acceptable values are a page name, "yes" and "no".
| String | optional |
Wikiquote link | q | Wikiquote link to show. Acceptable values are a page name, "yes" and "no".
| String | optional |
Wikisource link | s | Wikisource link to show. Acceptable values are a page name, "yes" and "no".
| String | optional |
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".
| String | optional |
Wikibooks link | b | Wikibooks link to show. Acceptable values are a page name, "yes" and "no".
| String | optional |
Cookbook | cookbook | If yes, link to Cookbook at wikibooks. If string, use that string as article title in Cookbooks.
| String | optional |
Wikiversity link | v | Wikiversity link to show. Acceptable values are a page name, "yes", and "no".
| String | optional |
Wikivoyage link | voy | Wikivoyage link to show. Acceptable values are a page name, "yes" and "no".
| String | optional |
Wikispecies taxon link | species | Wikispecies link to show. Acceptable values are a page name, "yes" and "no".
| String | optional |
Wikispecies author link | species_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"
| String | optional |
Interwiki link | iw | Link to other language edition. Acceptable values are a Misplaced Pages language code (e.g., "de"), "yes" and "no".
| String | optional |
Wikidata link | d | Wikidata link to show. Acceptable values are a QID, "yes" and "no".
| String | optional |
Meta link | m | Meta link to show. Acceptable values are a page name, "yes" and "no".
| String | optional |
MediaWiki link | mw | MediaWiki link to show. Acceptable values are a page name, "yes" and "no".
| String | optional |
Wikifunctions link | f | Wikifunctions link to show. Acceptable values are a page name, "yes" and "no".
| String | optional |
Images used
This template potentially displays the following images:
- Wiktionary logo
wikt
- Wikimedia Commons logo
c
orcommons
- Wikinews logo
n
- Wikiquote logo
q
- Wikisource logo
s
- Wikibooks logo
b
- Wikivoyage logo
voy
- Wikiversity logo
v
- Wikispecies logo
species
orspecies_author
- Misplaced Pages logo
iw
- Wikidata logo
d
- Meta-Wiki logo
m
- MediaWiki logo
mw
- Wikifunctions logo
f
Tracking categories
- Category:Pages using Sister project links with unknown parameters (2)
- Category:Pages using Sister project links with default search (4,286)
- Category:Pages using Sister project links with hidden wikidata (6,432)
- Category:Pages using Sister project links with wikidata namespace mismatch (1,062)
- Category:Pages using Sister project links with wikidata mismatch (571)
- Category:Pages with empty sister project links (62)
See also
- Template:Sister project – used on more than one million pages
- Template:Sister bar – a horizontal version
- Template:Subject bar – a horizontal version that includes optional portals
- Template:Commons
- Misplaced Pages:Template index/Sister projects
- Help:Interwiki linking
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template. Category: