Template:Minecraft Wiki link

From EarthMC
(Redirected from Template:Mcwiki link)
Jump to navigation Jump to search

Minecraft
This template allows users to quickly create a hyperlink to Minecraft Wiki.

It can be abbreviated as {{mcwiki link}}.

Note: If the page name has spaces, please use the underscore "_" instead. If you do not want to display the underscore, please use the parameter 2

Usage

{{Minecraft Wiki link|1|2|3|4}} or {{mcwiki link|1|2|3|4}}.

Templates Description Default
1 Required. Page name in Minecraft Wiki Minecraft
2 Optional. Displayed text. If nothing is filled in, it is the same as 1. 1
3 Optional, specify the Minecraft Wiki in a specific language, and the default is en.
The content filled in must be the abbreviation of the language name in
the following table, otherwise it is invalid.
Language Abbreviation
English en
中文 zh
日本語 ja
Čeština cs
Deutsch de
Ελληνικά el
Español es
Français fr
Magyar hu
Italiano it
한국어 ko
Nederlands nl
Polski pl
Português pt
Русский ru
ไทย th
Türkçe tr
Українська uk
en
4 Optional. It only takes effect when parameter 3 is "zh",
which is used to specify whether the page is in simplified Chinese or traditional Chinese.
The available keywords are shown in the following table.
All other characters are regarded as No characters filled by default.
Keyword Species
rowspan="2" | Do not specify any(不指定任何一种)
All other characters
zh Default, no conversion(不转换)
cn Continental Simplified(大陆简体)
hk Hong Kong Traditional(香港繁體)
tw Taiwan Traditional(台灣正體)

Example 1 - Use parameter 1 only

{{mcwiki link|zombie}}

Effect

zombie

Example 2 - Use parameter 2

{{mcwiki link|zombie|my good friend}}

Effect

my good friend

Example 3 - Use parameter 3 but not parameter 2

{{mcwiki link|좀비||ko}}

Effect

좀비Example of use of parameter 4.

Example 4 - Use all parameters except parameter 4

{{mcwiki link|ゾンビ|Zombie's Japanese Minecraft Wiki page|ja}}

Effect

Zombie's Japanese Minecraft Wiki page

Example 5 - Example of use of parameter 4

{{mcwiki link|殭屍|僵尸在台灣のMinecraft Wiki page|zh|tw}}

Effect

僵尸在台灣のMinecraft Wiki page

Example 5.1 - Parameter 3 is "zh" but parameter 4 is not used

{{mcwiki link|僵尸|Chinese Zombie|zh}}{{mcwiki link|殭屍|Not HK Zombie|zh}}←''Although parameter 1 is written in traditional characters, it still jumps to the default no conversion page due to the lack of parameter 4.''

Effect 5.1

Chinese ZombieNot HK ZombieAlthough parameter 1 is written in traditional characters, it still jumps to the default no conversion page due to the lack of parameter 4.

Example 5.2 - Error example: Parameter 4 exists but parameter 3 is not "zh"

{{mcwiki link|Зомби|it's an error|ru|hk}}

Effect 5.2

pls don't do like this

The effect of this version is the same as that of the version without parameter 4 ({{mcwiki link|Зомби|it's an error|ru}}), except that 3 bytes are wasted.