Xarkanoth (talk | contribs)
No edit summary
Xarkanoth (talk | contribs)
No edit summary
Line 1: Line 1:
<div class="hf-uniform-card">
<div class="hf-uniform-card">
<div class="hf-uniform-card-image">{{#if:{{{image|}}}|[[File:{{{image}}}|200px|link=]]|}}</div>
<div class="hf-uniform-card-image">{{#if:{{{era|}}}|<div class="hf-uniform-card-era">{{{era}}}</div>|}}{{#if:{{{image|}}}|[[File:{{{image}}}|200px|link=]]|}}</div>
<div class="hf-uniform-card-label">{{{label}}}</div>
<div class="hf-uniform-card-label">{{{label}}}</div>
{{#if:{{{requirement|}}}|<div class="hf-uniform-card-requirement">{{{requirement}}}</div>|}}
{{#if:{{{requirement|}}}|<div class="hf-uniform-card-requirement">{{{requirement}}}</div>|}}
Line 22: Line 22:
             "label": "Unlock Requirement",
             "label": "Unlock Requirement",
             "description": "Optional unlock requirement shown below the label. Leave blank for uniforms unlocked by default.",
             "description": "Optional unlock requirement shown below the label. Leave blank for uniforms unlocked by default.",
            "type": "string",
            "required": false
        },
        "era": {
            "label": "Era Tab",
            "description": "Optional era tag overlaid on top of the image (e.g. American Revolution).",
             "type": "string",
             "type": "string",
             "required": false
             "required": false

Revision as of 17:54, 10 July 2026

{{{label}}}

<templatedata> {

   "params": {
       "image": {
           "label": "Image",
           "description": "Image filename showing the uniform (e.g. British-Line-Infantry.png)",
           "type": "wiki-file-name",
           "required": true
       },
       "label": {
           "label": "Label",
           "description": "Text label shown below the image (e.g. British Line Infantry)",
           "type": "string",
           "required": true
       },
       "requirement": {
           "label": "Unlock Requirement",
           "description": "Optional unlock requirement shown below the label. Leave blank for uniforms unlocked by default.",
           "type": "string",
           "required": false
       },
       "era": {
           "label": "Era Tab",
           "description": "Optional era tag overlaid on top of the image (e.g. American Revolution).",
           "type": "string",
           "required": false
       }
   },

"description": "A small card displaying a class uniform image with a label. Use inside

{{{content}}}

for a grid layout.",

   "format": "inline"

} </templatedata>