Difference between revisions of "Classes: Command"

From Holdfast: Nations At War
Jump to navigation Jump to search
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
[[Category:Templates]]
 
[[Category:Templates]]
This is the modern Class Infobox template.  
+
Fixed version using Wiki-table syntax for better compatibility.
 
</noinclude>
 
</noinclude>
 
<includeonly>
 
<includeonly>
 
{{{h|=}}}{{{name}}}{{{h|=}}}
 
{{{h|=}}}{{{name}}}{{{h|=}}}
  
<div style="float: right; width: 350px; margin-left: 20px; border: 1px solid #d1d1d1; background-color: #fcfcfc; font-family: 'Segoe UI', Roboto, sans-serif; box-shadow: 0 4px 10px rgba(0,0,0,0.1); border-radius: 4px; overflow: hidden;">
+
{| style="float: right; width: 350px; margin-left: 20px; border: 1px solid #d1d1d1; background-color: #fcfcfc; border-collapse: collapse; font-family: sans-serif; box-shadow: 0 4px 10px rgba(0,0,0,0.1);"
 
+
|-
    <div style="background: linear-gradient(to right, #333, #444); color: white; padding: 15px; display: flex; align-items: center; gap: 15px;">
+
| colspan="2" style="background: #333; color: white; padding: 15px;" |
        <div style="width: 70px; height: 70px; border-radius: 50%; overflow: hidden; border: 2px solid #fff; background: #222; flex-shrink: 0;">
+
<div style="display: flex; align-items: center; gap: 15px;">
            {{#invoke: ApplyPattern | apply |{{{factions}}}| {{ClassPortrait|%pattern%|{{{enum}}}}} }}
+
<div style="width: 60px; height: 60px; border-radius: 50%; overflow: hidden; border: 2px solid #fff; background: #222; flex-shrink: 0;">
        </div>
+
{{#invoke: ApplyPattern | apply |{{{factions}}}| {{ClassPortrait|%pattern%|{{{enum}}}}} }}
        <div>
+
</div>
            <div style="font-size: 1.2em; font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px;">{{{name}}}</div>
+
<div>
            <div style="font-size: 0.8em; opacity: 0.8;">"{{#invoke: ApplyPattern | applyTemplate | {{{factions}}} | Faction/FactionName | 1 |, | test}}"</div>
+
<div style="font-size: 1.2em; font-weight: bold; text-transform: uppercase;">{{{name}}}</div>
        </div>
+
<div style="font-size: 0.8em; opacity: 0.8;">{{#invoke: ApplyPattern | applyTemplate | {{{factions}}} | Faction/FactionName | 1 |, | test}}</div>
    </div>
+
</div>
 
 
    <div style="padding: 15px; border-bottom: 1px solid #eee;">
 
        <div style="font-size: 1em; font-weight: bold; color: #444; margin-bottom: 10px; border-bottom: 2px solid #555; display: inline-block;">Class Statistics</div>
 
       
 
        <div style="display: flex; justify-content: space-between; align-items: center;">
 
            <div style="flex: 1;">
 
                <table style="width: 100%; font-size: 0.9em; border-collapse: collapse;">
 
                    <tr>
 
                        <td style="padding: 5px 0; color: #666;">Health</td>
 
                        <td style="text-align: right;">{{StatBar|max=125|value={{{healthbase}}}|bonus={{{healthbonus}}}|width=80}}</td>
 
                    </tr>
 
                    <tr>
 
                        <td style="padding: 5px 0; color: #666;">Agility</td>
 
                        <td style="text-align: right;"><b>{{{agilitybase}}}</b> <small style="color: green;">(+{{{agilitybonus}}})</small></td>
 
                    </tr>
 
                    <tr>
 
                        <td style="padding: 5px 0; color: #666;">Swimming</td>
 
                        <td style="text-align: right;"><b>{{{swimmingbase}}}</b></td>
 
                    </tr>
 
                </table>
 
            </div>
 
           
 
            <div style="width: 140px; height: 140px; background: #222; border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-left: 10px; border: 1px solid #ccc;">
 
                {{#invoke: ApplyPattern | apply |{{{factions}}}| {{ClassFull|%pattern%|{{{enum}}}}} }}
 
            </div>
 
        </div>
 
    </div>
 
 
 
    <div style="padding: 15px; background: #fff;">
 
        <div style="font-size: 0.95em; font-weight: bold; margin-bottom: 8px;">Weapons</div>
 
        <div style="background: #2a2e33; color: white; padding: 5px 10px; font-size: 0.85em; font-weight: bold; border-radius: 3px 3px 0 0;">
 
            British
 
        </div>
 
        <div style="border: 1px solid #ddd; border-top: none; padding: 10px; font-size: 0.9em;">
 
            {{#invoke: ApplyPattern | applyTemplate | {{{weapon_british}}} | WeaponDisplay | enum}}
 
        </div>
 
    </div>
 
 
 
    <div style="padding: 15px; background: #f9f9f9; border-top: 1px solid #eee;">
 
        <div style="font-size: 0.95em; font-weight: bold; margin-bottom: 5px;">Other Equipment</div>
 
        <div style="background: #fff; border: 1px solid #ddd; padding: 10px; border-radius: 4px; display: flex; align-items: center; gap: 10px; font-size: 0.9em;">
 
            {{#invoke: ApplyPattern | applyTemplate |{{{equipment|}}}| Equipment | enum}}
 
        </div>
 
    </div>
 
 
 
 
</div>
 
</div>
 
+
|-
<div style="margin-right: 370px;">
+
| colspan="2" style="padding: 10px 15px 0 15px; font-weight: bold; color: #444; font-size: 0.9em;" | Class Statistics
{{{description}}}
+
|-
 
+
| style="padding: 0 0 15px 15px; vertical-align: middle; width: 50%;" |
{{{h|=}}} Traits and Abilities {{{h|=}}}
+
{| style="width: 100%; font-size: 0.85em; border-collapse: collapse;"
{{#ifeq: {{{traits|}}}||| '''Traits:''' {{#invoke: ApplyPattern | applyTemplate | {{{traits}}} | TraitAbility | enum}} }}
+
| Health || style="text-align:right;" | {{StatBar|max=125|value={{{healthbase}}}|bonus={{{healthbonus}}}|width=70}}
{{#ifeq: {{{abilities|}}}||| '''Abilities:''' {{#invoke: ApplyPattern | applyTemplate | {{{abilities}}} | TraitAbility | enum}} }}
+
|-
 +
| Agility || style="text-align:right;" | '''{{{agilitybase}}}''' <small style="color:green;">(+{{{agilitybonus}}})</small>
 +
|-
 +
| Swim || style="text-align:right;" | '''{{{swimmingbase}}}'''
 +
|}
 +
| style="padding: 10px; text-align: center; width: 50%;" |
 +
<div style="width: 120px; height: 120px; background: #222; border-radius: 50%; display: inline-block; overflow: hidden; border: 1px solid #ccc;">
 +
{{#invoke: ApplyPattern | apply |{{{factions}}}| {{ClassFull|%pattern%|{{{enum}}}}} }}
 
</div>
 
</div>
 
+
|-
<div style="clear: both;"></div>
+
| colspan="2" style="padding: 15px; background: #fff
</includeonly>
 

Revision as of 02:41, 24 January 2026

Fixed version using Wiki-table syntax for better compatibility.