Template:Minecraft Wiki link: Difference between revisions

Jump to navigation Jump to search
Created page with "[https://minecraft.fandom.com/{{#switch:{{{3|en}}}|en=| #default={{{3}}}/}}wiki/{{{1|Minecraft}}}{{#switch:{{{3}}}|zh={{#switch:{{{4}}}|=|zh=?variant=zh|cn=?variant=zh-cn|hk=?variant=zh-hk|tw=?variant=zh-tw|#default=}}|#default=}} {{#switch:{{{2}}}|={{{1}}}| #default={{{2|{{{1|Minecraft}}}}}}}}] <noinclude> This template allows users to quickly create a hyperlink to [https://minecraft.fandom.com/wiki/ Minecraft Wiki]. It can be abbreviated as '''<nowiki>{{mcwiki link}}<..."
 
m add note
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
[https://minecraft.fandom.com/{{#switch:{{{3|en}}}|en=| #default={{{3}}}/}}wiki/{{{1|Minecraft}}}{{#switch:{{{3}}}|zh={{#switch:{{{4}}}|=|zh=?variant=zh|cn=?variant=zh-cn|hk=?variant=zh-hk|tw=?variant=zh-tw|#default=}}|#default=}} {{#switch:{{{2}}}|={{{1}}}| #default={{{2|{{{1|Minecraft}}}}}}}}]
[https://minecraft.fandom.com/{{#switch:{{{3|en}}}|en=| #default={{{3}}}/}}wiki/{{{1|Minecraft}}}{{#switch:{{{3}}}|zh={{#switch:{{{4}}}|=|zh=?variant=zh|cn=?variant=zh-cn|hk=?variant=zh-hk|tw=?variant=zh-tw|#default=}}|#default=}} {{#switch:{{{2}}}|={{{1|Minecraft}}}| #default={{{2|{{{1|Minecraft}}}}}}}}]<noinclude><br>
<noinclude>
This template allows users to quickly create a hyperlink to [https://minecraft.fandom.com/wiki/ Minecraft Wiki].
This template allows users to quickly create a hyperlink to [https://minecraft.fandom.com/wiki/ Minecraft Wiki].


It can be abbreviated as '''<nowiki>{{mcwiki link}}</nowiki>'''.
It can be abbreviated as '''<nowiki>{{mcwiki link}}</nowiki>'''.
'''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 ==
== Usage ==
<code><nowiki>{{Minecraft Wiki link|1|2|3|4}}</nowiki></code> or <code><nowiki>{{mcwiki link|1|2|3|4}}</nowiki></code>.
<code><nowiki>{{Minecraft Wiki link|1|2|3|4}}</nowiki></code> or <code><nowiki>{{mcwiki link|1|2|3|4}}</nowiki></code>.
Line 113: Line 114:
{{mcwiki link|Зомби|pls don't do like this|ru|hk}}
{{mcwiki link|Зомби|pls don't do like this|ru|hk}}


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