Шаблон:ClassTable — различия между версиями
м (1 версия) |
Fuego (обсуждение | вклад) |
||
Строка 1: | Строка 1: | ||
__NOEDITSECTION__<includeonly>__NOTOC__ | __NOEDITSECTION__<includeonly>__NOTOC__ | ||
− | <table width="{{{width}}}" cellpadding="2" cellspacing="5" style="vertical-align:top; background-color:{{ArchColors|{{{archetype}}}|weak}}; border:1px solid {{ArchColors|{{{archetype}}}|border}};"> | + | <table width="{{{width}}}" cellpadding="2" cellspacing="5" style="vertical-align:top; background-color:{{ArchColors|{{#switch:{{lc:{{{archetype}}}}} |
− | <tr style="background-color:{{ArchColors|{{{archetype}}}|strong}}"> | + | | боец = fighter |
− | <td width="100%" style="border:1px solid {{ArchColors|{{{archetype}}}|border}};"> | + | | маг = mage |
− | <H2 style="margin:0; background-color:{{ArchColors|{{{archetype}}}|strong}}; font-size:"120%"; border:1px solid {{ArchColors|{{{archetype}}}|border}}; text-align:left; color:#000; padding-left:0.4em; padding-top:0.2em; padding-bottom:0.2em;"> | + | | жрец = prist |
+ | | разведчик = scout | ||
+ | }}|weak}}; border:1px solid {{ArchColors|{{#switch:{{lc:{{{archetype}}}}} | ||
+ | | боец = fighter | ||
+ | | маг = mage | ||
+ | | жрец = prist | ||
+ | | разведчик = scout | ||
+ | }}|border}};"> | ||
+ | <tr style="background-color:{{ArchColors|{{#switch:{{lc:{{{archetype}}}}} | ||
+ | | боец = fighter | ||
+ | | маг = mage | ||
+ | | жрец = prist | ||
+ | | разведчик = scout | ||
+ | }}|strong}}"> | ||
+ | <td width="100%" style="border:1px solid {{ArchColors|{{#switch:{{lc:{{{archetype}}}}} | ||
+ | | боец = fighter | ||
+ | | маг = mage | ||
+ | | жрец = prist | ||
+ | | разведчик = scout | ||
+ | }}|border}};"> | ||
+ | <H2 style="margin:0; background-color:{{ArchColors|{{#switch:{{lc:{{{archetype}}}}} | ||
+ | | боец = fighter | ||
+ | | маг = mage | ||
+ | | жрец = prist | ||
+ | | разведчик = scout | ||
+ | }}|strong}}; font-size:"120%"; border:1px solid {{ArchColors|{{#switch:{{lc:{{{archetype}}}}} | ||
+ | | боец = fighter | ||
+ | | маг = mage | ||
+ | | жрец = prist | ||
+ | | разведчик = scout | ||
+ | }}|border}}; text-align:left; color:#000; padding-left:0.4em; padding-top:0.2em; padding-bottom:0.2em;"> | ||
[[{{{archetype}}}]] <font size=-2>([[:Category:{{{archetype}}} Spells|spells]])</font> | [[{{{archetype}}}]] <font size=-2>([[:Category:{{{archetype}}} Spells|spells]])</font> | ||
</H2> | </H2> |
Версия 13:30, 26 августа 2008
Parameters
- width
- width in pixels or a percentage of the screen (i.e. 200,25%,100% are all vaid values)
- archetype
- Name of the Archetype (i.e. Mage, Priest, Fighter or Scout)
- class1
- Class 1
- c1sc1
- Class 1, Subclass 1
- c1sc2
- Class 1, Subclass 2
Calling
{{ClassTable| width = | archetype = | bordercolor = | strongcolor = | weakcolor = | class1 = | c1sc1 = | c1sc2 = | class2 = | c2sc1 = | c2sc2 = | class3 = | c3sc1 = | c3sc2 = }}
Example
if your code looks like this (taken from Sorcerer:
{{ClassTable| width = 50%| archetype = Mage| bordercolor = #bfa3b1| strongcolor = #f2e0e0| weakcolor = #fff5f5| class1 = Sorcerer| c1sc1 = Warlock| c1sc2 = Wizard| }}
your output will look like this:
Mage | (умения) | ||
---|---|---|---|
Sorcerer | (АД) | (умения) | |
- Warlock | (эпик) | (АД) | (умения) |
- Wizard | (эпик) | (АД) | (умения) |
Полезные ссылки по шаблонам: | Все шаблоны | Информация о шаблонах | |
---|---|---|---|