Шаблон:NormalizeRarity — различия между версиями
Blinnna (обсуждение | вклад) |
Blinnna (обсуждение | вклад) |
||
Строка 21: | Строка 21: | ||
| "ЦЕННЫЙ" | | "ЦЕННЫЙ" | ||
| "ЛЕГЕНД" | | "ЛЕГЕНД" | ||
− | | "РУЧН. РАБОТА" | + | | "РУЧН. РАБОТА" = [[Category:{{{2|}}} ручной работы]] |
− | | "РАБ. МАСТЕРА" | + | | "РАБ. МАСТЕРА" = [[Category:{{{2|}}} работы мастера]] |
| "ЭПИЧ." | | "ЭПИЧ." | ||
| "МИФИЧ." = <span class="qc-{{lc:{{{1|}}}}}">[[:Category:{{ucfirst: {{#if: {{{1}}}| {{#switch: {{uc: {{{1}}} }} | | "МИФИЧ." = <span class="qc-{{lc:{{{1|}}}}}">[[:Category:{{ucfirst: {{#if: {{{1}}}| {{#switch: {{uc: {{{1}}} }} | ||
Строка 45: | Строка 45: | ||
| "ЦЕННЫЙ" | | "ЦЕННЫЙ" | ||
| "ЛЕГЕНД" | | "ЛЕГЕНД" | ||
− | | "РУЧН. РАБОТА" | + | | "РУЧН. РАБОТА" = [[Category:{{{2|}}} ручной работы]] |
− | | "РАБ. МАСТЕРА" | + | | "РАБ. МАСТЕРА" = [[Category:{{{2|}}} работы мастера]] |
| "ЭПИЧ." | | "ЭПИЧ." | ||
| "МИФИЧ." = <span class="xqc-{{lc:{{{1|}}}}}">[[:Category:{{ucfirst:{{#if: {{{1}}}| {{#switch: {{uc: {{{1}}} }} | | "МИФИЧ." = <span class="xqc-{{lc:{{{1|}}}}}">[[:Category:{{ucfirst:{{#if: {{{1}}}| {{#switch: {{uc: {{{1}}} }} | ||
Строка 68: | Строка 68: | ||
| "ЦЕННЫЙ" | | "ЦЕННЫЙ" | ||
| "ЛЕГЕНД" | | "ЛЕГЕНД" | ||
− | | "РУЧН. РАБОТА" | + | | "РУЧН. РАБОТА" = [[Category:{{{2|}}} ручной работы]] |
− | | "РАБ. МАСТЕРА" | + | | "РАБ. МАСТЕРА" = [[Category:{{{2|}}} работы мастера]] |
| "ЭПИЧ." | | "ЭПИЧ." | ||
| "МИФИЧ." = [[:Category:{{ucfirst:{{#if: {{{1}}}| {{#switch: {{uc: {{{1}}} }} | | "МИФИЧ." = [[:Category:{{ucfirst:{{#if: {{{1}}}| {{#switch: {{uc: {{{1}}} }} |
Версия 16:22, 3 июня 2008
This template accepts 2 parameters, <rarity> and <link>,plus a few named switches, and tests <rarity> against a list of VALID Drop Frequencies. It then builds a link to Category:<rarity> <link>. For instance, if you wanted a link to "Treasured Items", <rarity> is Treasured and <link> is Items.
If <link> is blank, BAD category links will be made! (don't do it!)
If color is not blank, the displayed link will be colored for a light background
If xwin is not blank, the displayed link will be colored for a dark background
Do NOT define both color and xwin!
The ONLY valid values for <rarity> at this time are Common, Treasured, Legendary, Handcrafted, Mastercrafted, Fabled and Mythical. <rarity> cannot be blank. If icat (the var used most often) is blank, the caller should pass COMMON.
usage: {{NormalizeRarity|rarity|link|color=|xwin=}}
Полезные ссылки: | Все шаблоны | Information Templates | Class Templates |
---|