Шаблон:NormalizeRarity — различия между версиями

Материал из Энциклопедия EverQuest II
Перейти к: навигация, поиск
Строка 24: Строка 24:
 
| "РАБ. МАСТЕРА"
 
| "РАБ. МАСТЕРА"
 
| "ЭПИЧ."  
 
| "ЭПИЧ."  
| "МИФИЧ." = <span class="qc-{{lc:{{{1|}}}}}">[[:Category:{{ucfirst:{{lc:{{{1|}}}}}}} {{{2|}}}|{{uc:{{{1|}}}}}]]</span>[[Category:{{ucfirst:{{lc:{{{1|}}}}}}} {{{2|}}}]]
+
| "МИФИЧ." = <span class="qc-{{lc:{{{1|}}}}}">[[:Category:{{ucfirst: {{#if: {{{1}}}| {{#switch: {{uc: {{{1}}} }}
 +
| ЦЕННЫЙ = Ценное
 +
| РУЧН. РАБОТА = Ручной работы
 +
| РАБ. МАСТЕРА = Работы мастера
 +
| ЛЕГЕНД. = Легендарное
 +
| ЭПИЧ. = Эпическое
 +
| МИФИЧ. = Мифическое}}||}} }} {{{2|}}}|{{uc:{{{1|}}}}}]]</span>[[Category:{{ucfirst:{{#if: {{{1}}}| {{#switch: {{uc: {{{1}}} }}
 +
| ЦЕННЫЙ = Ценное
 +
| РУЧН. РАБОТА = Ручной работы
 +
| РАБ. МАСТЕРА = Работы мастера
 +
| ЛЕГЕНД. = Легендарное
 +
| ЭПИЧ. = Эпическое
 +
| МИФИЧ. = Мифическое}}||}} }} {{{2|}}}]]
 
| <span class="xqc-unknown">UNKNOWN</span>[[Category:Invalid Rarity]]
 
| <span class="xqc-unknown">UNKNOWN</span>[[Category:Invalid Rarity]]
 
}}}}<!--
 
}}}}<!--
Строка 36: Строка 48:
 
| "РАБ. МАСТЕРА"
 
| "РАБ. МАСТЕРА"
 
| "ЭПИЧ."  
 
| "ЭПИЧ."  
| "МИФИЧ." = <span class="xqc-{{lc:{{{1|}}}}}">[[:Category:{{ucfirst:{{lc:{{{1|}}}}}}} {{{2|}}}|{{uc:{{{1|}}}}}]]</span>[[Category:{{ucfirst:{{lc:{{{1|}}}}}}} {{{2|}}}]]
+
| "МИФИЧ." = <span class="xqc-{{lc:{{{1|}}}}}">[[:Category:{{ucfirst:{{#if: {{{1}}}| {{#switch: {{uc: {{{1}}} }}
 +
| ЦЕННЫЙ = Ценное
 +
| РУЧН. РАБОТА = Ручной работы
 +
| РАБ. МАСТЕРА = Работы мастера
 +
| ЛЕГЕНД. = Легендарное
 +
| ЭПИЧ. = Эпическое
 +
| МИФИЧ. = Мифическое}}||}}}} {{{2|}}}|{{uc:{{{1|}}}}}]]</span>[[Category:{{ucfirst:{{#if: {{{1}}}| {{#switch: {{uc: {{{1}}} }}
 +
| ЦЕННЫЙ = Ценное
 +
| РУЧН. РАБОТА = Ручной работы
 +
| РАБ. МАСТЕРА = Работы мастера
 +
| ЛЕГЕНД. = Легендарное
 +
| ЭПИЧ. = Эпическое
 +
| МИФИЧ. = Мифическое}}||}}}} {{{2|}}}]]
 
| <span class="xqc-unknown">UNKNOWN</span>[[Category:Invalid Rarity]]
 
| <span class="xqc-unknown">UNKNOWN</span>[[Category:Invalid Rarity]]
 
}}</span>}}<!--
 
}}</span>}}<!--
Строка 47: Строка 71:
 
| "РАБ. МАСТЕРА"
 
| "РАБ. МАСТЕРА"
 
| "ЭПИЧ."  
 
| "ЭПИЧ."  
| "МИФИЧ." = [[:Category:{{ucfirst:{{lc:{{{1|}}}}}}} {{{2|}}}|{{uc:{{{1|}}}}}]][[Category:{{ucfirst:{{lc:{{{1|}}}}}}} {{{2|}}}]]
+
| "МИФИЧ." = [[:Category:{{ucfirst:{{#if: {{{1}}}| {{#switch: {{uc: {{{1}}} }}
 +
| ЦЕННЫЙ = Ценное
 +
| РУЧН. РАБОТА = Ручной работы
 +
| РАБ. МАСТЕРА = Работы мастера
 +
| ЛЕГЕНД. = Легендарное
 +
| ЭПИЧ. = Эпическое
 +
| МИФИЧ. = Мифическое}}||}}}} {{{2|}}}|{{uc:{{{1|}}}}}]][[Category:{{ucfirst:{{#if: {{{1}}}| {{#switch: {{uc: {{{1}}} }}
 +
| ЦЕННЫЙ = Ценное
 +
| РУЧН. РАБОТА = Ручной работы
 +
| РАБ. МАСТЕРА = Работы мастера
 +
| ЛЕГЕНД. = Легендарное
 +
| ЭПИЧ. = Эпическое
 +
| МИФИЧ. = Мифическое}}||}}}} {{{2|}}}]]
 
| UNKNOWN[[Category:Invalid Rarity]]
 
| UNKNOWN[[Category:Invalid Rarity]]
 
}}}}</onlyinclude></includeonly>
 
}}}}</onlyinclude></includeonly>
  
 
{{SubTemplateHelper}}
 
{{SubTemplateHelper}}

Версия 15:16, 29 мая 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=}}

This is a sub-template, used by other templates, and is NOT intended for use by users!
Полезные ссылки: Все шаблоны Information Templates Class Templates

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=}}

This is a sub-template, used by other templates, and is NOT intended for use by users!
Полезные ссылки: Все шаблоны Information Templates Class Templates