Xarkanoth (talk | contribs)
No edit summary
Tag: Reverted
Xarkanoth (talk | contribs)
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="hf-uniform-card">
<div class="hf-uniform-card">
<div class="hf-uniform-card-image">{{#if:{{{era|}}}|<div class="hf-uniform-card-era">{{{era}}}</div>|}}{{#if:{{{background|}}}|{{#ifexist:File:{{{background}}}|<div class="hf-uniform-card-bg">[[File:{{{background}}}|320px|link=]]</div>|<div class="hf-uniform-card-bg-missing">[{{fullurl:Special:Upload|wpDestFile={{urlencode:{{{background}}}|WIKI}}}} {{{background}}}]</div>}}|}}{{#if:{{{image|}}}|{{#ifexist:File:hui-faction-shadow.png|<div class="hf-uniform-card-shadow">[[File:hui-faction-shadow.png|320px|link=]]</div>|}}<div class="hf-uniform-card-figure">[[File:{{{image}}}|200px|link=]]</div>|}}</div>
<div class="hf-uniform-card-image">{{#if:{{{era|}}}|<div class="hf-uniform-card-era">{{{era}}}</div>|}}{{#if:{{{background|}}}|{{#ifexist:File:{{{background}}}|<div class="hf-uniform-card-bg">[[File:{{{background}}}|320px|link=]]</div>|<div class="hf-uniform-card-bg-missing">[{{fullurl:Special:Upload|wpDestFile={{urlencode:{{{background}}}|WIKI}}}} {{{background}}}]</div>}}|}}{{#if:{{{image|}}}|<div class="hf-uniform-card-figure">[[File:{{{image}}}|200px|link=]]</div>|}}</div>
<div class="hf-uniform-card-label">{{{label}}}</div>
<div class="hf-uniform-card-caption">{{#if:{{{crest|}}}|<div class="hf-uniform-card-crest">[[File:{{{crest}}}|64px|link=]]</div>|}}<div class="hf-uniform-card-text"><div class="hf-uniform-card-label">{{{label}}}</div>{{#if:{{{requirement|}}}|<div class="hf-uniform-card-requirement">{{{requirement}}}</div>|}}</div></div>
{{#if:{{{requirement|}}}|<div class="hf-uniform-card-requirement">{{{requirement}}}</div>|}}
</div><noinclude>
</div><noinclude>
<templatedata>
<templatedata>
Line 16: Line 15:
             "label": "Background Image",
             "label": "Background Image",
             "description": "Optional faction background image filename shown behind the uniform.",
             "description": "Optional faction background image filename shown behind the uniform.",
            "type": "wiki-file-name",
            "required": false
        },
        "crest": {
            "label": "Faction Crest",
            "description": "Optional faction crest filename shown beside the uniform label.",
             "type": "wiki-file-name",
             "type": "wiki-file-name",
             "required": false
             "required": false

Latest revision as of 20:47, 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
       },
       "background": {
           "label": "Background Image",
           "description": "Optional faction background image filename shown behind the uniform.",
           "type": "wiki-file-name",
           "required": false
       },
       "crest": {
           "label": "Faction Crest",
           "description": "Optional faction crest filename shown beside the uniform label.",
           "type": "wiki-file-name",
           "required": false
       },
       "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>