Templat:wikipedia/documentation
This template shows a right-floating sister-project box with a link to a Wikipedia page.
The template should be placed inside the section it refers to, immediately after the header. In the default case (a reference to the English Wikipedia) that is immediately following the ==English== header. If there are also images, box templates such as this should appear first. Alternatively, consider linking to Wikipedia in the "Further reading" section using the inline template Lua error in package.lua at line 80: module 'Module:Scribunto/metamethods' not found..[1]
Parameters
[bulö'ö]All parameters are optional.
lang=- Specifies the Wikimedia language code (see Wiktionary:Wikimedia language codes) of the Wikipedia version to link to. This is not the same as the Wiktionary-internal language code, as it supports language codes that are not allowed on Wiktionary itself, such as
hrfor Croatian. It defaults toenfor English. 1=- Specifies the Wikipedia page to link to. By default, this is the same as the name of the current Wiktionary page.
2=- Overrides the displayed form of the link.
cat=orcategory=- Specifies a category page to link to instead.
portal=- Specifies a portal page to link to instead.
mul=- Provides a second article to link to.
mullabel=- Overrides the displayed form of the second link.
mulcat=- Provides a second category to link to.
mulcatlabel=- Overrides the displayed form of the second category.
Examples
[bulö'ö]Basic formats:
{{wikipedia}}{{wikipedia|article}}{{wikipedia|article|link title}}{{wikipedia|lang=language code}}{{wikipedia|article|lang=language code}}{{wikipedia|article|link title|lang=language code}}{{wikipedia|article|link title|mul=second article}}{{wikipedia|article|link title|mul=second article|mullabel=second link title}}{{wikipedia|cat=category}}{{wikipedia|cat=category|link title}}{{wikipedia|cat=category|link title|mulcat=second category}}{{wikipedia|cat=category|link title|mulcat=second category|mulcatlabel=second link title}}{{wikipedia|portal=energy}}
{{wikipedia|afterlife}} |
afterlife (Wikipedia) |
{{wikipedia|Trunk (botany)|trunk}} |
Trunk (botany) (Wikipedia) |
{{wikipedia|Roma|lang=it}} |
Roma (Wikipedia) |
{{wikipedia|wrong (disambiguation)|wrong}} |
wrong (disambiguation) (Wikipedia) |
{{wikipedia|monarchy|mul=kingdom (biology)}} |
monarchy (Wikipedia) |
{{wikipedia|monarchy|tyranny
|mul=kingdom (biology)|mullabel=lionny}} |
monarchy (Wikipedia) |
{{wikipedia|category=colors}} |
wikipedia/documentation (Wikipedia) |
{{wikipedia|category=colors|mulcat=national colours}} |
wikipedia/documentation (Wikipedia) |
{{wikipedia|lang=es|category=colores
|colors|mulcat=pintura|mulcatlabel=painting}} |
colors (Wikipedia) |
{{wikipedia|portal=energy}} |
wikipedia/documentation (Wikipedia) |
Related templates
[bulö'ö]- Lua error in package.lua at line 80: module 'Module:Scribunto/metamethods' not found. — slimmer version of this template
- Lua error in package.lua at line 80: module 'Module:Scribunto/metamethods' not found. — plain inline text link to Wikipedia
- Lua error in package.lua at line 80: module 'Module:Scribunto/metamethods' not found. — for "External links", "See also" and "References" sections
- Lua error in package.lua at line 80: module 'Module:Scribunto/metamethods' not found. — for "Citations" pages
- Lua error in package.lua at line 80: module 'Module:Scribunto/metamethods' not found.
TemplateData
[bulö'ö]| This page has been nominated for speedy deletion. The reason given is "broken redirects". If you disagree with its speedy deletion, please explain why on its talk page. If this page obviously does not meet the criteria for speedy deletion, or you intend to fix it, please remove this notice, but do not remove this notice from a page that you have created yourself. Administrators, remember to check if anything links here and the page history (last edit) before deletion. |
- Redirect Template:TemplateData header
Links Wikipedia in a box that floats to the right
| Parameter | Keterangan | Jenis | Status | |
|---|---|---|---|---|
| Article to link | 1 | Article to link to on the Wikipedia
| Baris | disarankan |
| Link label | 2 | If provided, overrides the displayed form of the link
| Baris | opsional |
| Category to link | cat category | Category to link on Wikipedia, instead of an article
| Baris | opsional |
| Portal to link | portal | Portal to link on Wikipedia, instead of an article
| Baris | opsional |
| Language code | lang | Wikipedia language code for the Wikipedia language to link
| Baris | opsional |
| 2nd article to link | mul | Provides a second article to link to
| Baris | opsional |
| 2nd article label | mullabel | Overrides the displayed form of the second link.
| Baris | opsional |
| 2nd category to link | mulcat | Second category to link on Wikipedia, replacing the second article link | Baris | opsional |
| 2nd category label | mulcatlabel | If provided, overrides the displayed form of the second category | Baris | opsional |
Footnotes
[bulö'ö]- ↑ Some editors prefer inline linking in all cases, but there is currently no consensus for one approach over the other. See, for example, this 2017 Beer Parlour discussion. As of Feb 2021, Lua error in package.lua at line 80: module 'Module:Scribunto/metamethods' not found. had about 225,000 mainspace transclusions compared to about 28,000 for inline Lua error in package.lua at line 80: module 'Module:Scribunto/metamethods' not found..
