แม่แบบ:วิกิพีเดีย
- เอกสารการใช้งานต่อไปนี้ตั้งอยู่ที่ แม่แบบ:วิกิพีเดีย/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.
Consider using the inline version of this template instead, {{projectlink|pedia}}
(shortcut: {{pedia}}
).
Parameters[แก้ไข]
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 support language codes that are not allowed on Wiktionary itself, such as
hr
for Croatian. It defaults toen
for 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.
dab=
ordisambiguation=
- Specifies a disambiguation page to link to instead.
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[แก้ไข]
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|dab=disambiguation page}}
- {{wikipedia|dab=disambiguation page|link title}}
- {{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}} | |
{{wikipedia|Trunk (botany)|trunk}} | |
{{wikipedia|Roma|lang=it}} | |
{{wikipedia|dab=authoring}} | ข้อผิดพลาด Lua ใน มอดูล:interproject บรรทัดที่ 61: The parameter "dab" is not used by this template. |
{{wikipedia|dab=wrong (disambiguation)|wrong}} | ข้อผิดพลาด Lua ใน มอดูล:interproject บรรทัดที่ 61: The parameter "dab" is not used by this template. |
{{wikipedia|monarchy|mul=kingdom (biology)}} | |
{{wikipedia|monarchy|tyranny |mul=kingdom (biology)|mullabel=lionny}} | |
{{wikipedia|category=colors}} | |
{{wikipedia|category=colors|mulcat=national colours}} | |
{{wikipedia|lang=es|category=colores |colors|mulcat=pintura|mulcatlabel=painting}} | |
{{wikipedia|portal=energy}} |
Related templates[แก้ไข]
{{slim-wikipedia}}
— slimmer version of this template{{w}}
— plain inline text link to Wikipedia{{projectlink}}
— for linking to other affiliated projects{{pedia}}
— for "External links", "See also" and "References" sections{{quote-wikipedia}}
- for "Citations" pages{{warn notwikipedia}}
TemplateData[แก้ไข]
Links Wikipedia in a box that floats to the right
พารามิเตอร์ | คำอธิบาย | ชนิด | สถานะ | |
---|---|---|---|---|
Article to link | 1 | Article to link to on the Wikipedia
| บรรทัด | แนะนำ |
Link label | 2 | If provided, overrides the displayed form of the link
| บรรทัด | เลือกได้ |
Disambiguation page to link | dab disambiguation | Disambiguation page to link on Wikipedia, instead of linking to an article
| บรรทัด | เลือกได้ |
Category to link | cat category | Category to link on Wikipedia, instead of an article
| บรรทัด | เลือกได้ |
Portal to link | portal | Portal to link on Wikipedia, instead of an article
| บรรทัด | เลือกได้ |
Language code | lang | Wikipedia language code for the Wikipedia language to link
| บรรทัด | เลือกได้ |
2nd article to link | mul | Provides a second article to link to
| บรรทัด | เลือกได้ |
2nd article label | mullabel | Overrides the displayed form of the second link.
| บรรทัด | เลือกได้ |
2nd category to link | mulcat | Second category to link on Wikipedia, replacing the second article link | บรรทัด | เลือกได้ |
2nd category label | mulcatlabel | If provided, overrides the displayed form of the second category | บรรทัด | เลือกได้ |