Template:MultiLanguageKey: Difference between revisions

m add Allow abbreviations
m update
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
[[{{{2|Earthmc_Wiki}}}|<span style="width:100px;height:24px;border-radius:12.5px;background:linear-gradient(135deg,#72B8FF,#4090FF);color:#FFF;margin:2px;padding:2px;">{{{1|English}}}</span>]]
<big>[[{{{2|Earthmc_Wiki}}}|<span style="width:100px;height:24px;border-radius:12.5px;background:linear-gradient(135deg,#50AAFF,#1050EE);color:#FFF;margin:2px;padding:2px;">-{{{1|English}}}-</span>]]</big>
<noinclude>
<noinclude>


Line 11: Line 11:
Fill in the name of the language in 1 place (Default is "<code>English</code>"), and fill in the title of the corresponding page in 2 places (Default is "<code>Earthmc_Wiki</code>").
Fill in the name of the language in 1 place (Default is "<code>English</code>"), and fill in the title of the corresponding page in 2 places (Default is "<code>Earthmc_Wiki</code>").


===Example:===
==Example==


<code><nowiki>{{MultiLanguageKey|简体中文|Ronne/Ronne(简体中文)}}</nowiki></code>
<code><nowiki>{{MultiLanguageKey|简体中文|Ronne/Ronne(简体中文)}}</nowiki></code>
Line 17: Line 17:
<code><nowiki>{{MLK|Русский язык|Ronne/Ronne(Русский язык)}}</nowiki></code>
<code><nowiki>{{MLK|Русский язык|Ronne/Ronne(Русский язык)}}</nowiki></code>


===Effect:===
===Effect===


{{MultiLanguageKey|简体中文|Ronne/Ronne(简体中文)}}
{{MultiLanguageKey|简体中文|Ronne/Ronne(简体中文)}}