yoohoo! hot sauce please

10:27, 7 September 2026 (UTC)

Template:TemplateBase/Country: Difference between revisions

From 2swagg wiki
Jump to navigationJump to search
Bulgogi2 (talk | contribs)
Created page with "{| class="wikitable" ! Parameter !! Type !! Default !! Description |- ! colspan="4" style="background:#eaecf0; text-align:center;" | Layout & Flag Background |- | <code>preset</code> || string || <code>h</code> || Flag stripe pattern. Accepts: * <code>h</code> – Horizontal bands (top to bottom: c1, c2, c3). * <code>v</code> – Vertical bands (left to right: c1, c2, c3). * <code>diagonal</code> – 135° diagonal stripes. * <code>cross</code> – Center..."
 
Bulgogi2 (talk | contribs)
No edit summary
 
Line 1: Line 1:
{| class="wikitable"
<templatestyles src="Template:TemplateBase/Country/styles.css" /><div class="tb-country-container tb-preset-{{#switch:{{{preset|h}}}|v=v|cross=cross|nordic=nordic|diagonal=diagonal|h|#default=h}}{{#ifeq:{{{spin_icon|}}}|yes| tb-spin}}{{#ifeq:{{{pulse_icon|}}}|yes| tb-pulse}}{{#if:{{{class|}}}| {{{class}}}}}" style="background: {{#if:{{{c2|}}}
! Parameter !! Type !! Default !! Description
| {{#switch:{{{preset|h}}}
|-
    | v = linear-gradient(to right, {{{c1|#333}}} {{#if:{{{c3|}}}|33.33%, {{{c2|#666}}} 33.33%, {{{c2|#666}}} 66.66%, {{{c3|#999}}} 66.66%|50%, {{{c2|#666}}} 50%}})
! colspan="4" style="background:#eaecf0; text-align:center;" | Layout & Flag Background
    | cross = {{#if:{{{c3|}}}|linear-gradient(to right, transparent 49%, {{{c3}}} 49%, {{{c3}}} 51%, transparent 51%), linear-gradient(to bottom, transparent 42%, {{{c3}}} 42%, {{{c3}}} 58%, transparent 58%), }}linear-gradient(to right, transparent 47.5%, {{{c2|#fff}}} 47.5%, {{{c2|#fff}}} 52.5%, transparent 52.5%), linear-gradient(to bottom, transparent 32.5%, {{{c2|#fff}}} 32.5%, {{{c2|#fff}}} 67.5%, transparent 67.5%), {{{c1|#333}}}
|-
    | nordic = {{#if:{{{c3|}}}|linear-gradient(to right, transparent 21.5%, {{{c3}}} 21.5%, {{{c3}}} 23.5%, transparent 23.5%), linear-gradient(to bottom, transparent 42%, {{{c3}}} 42%, {{{c3}}} 58%, transparent 58%), }}linear-gradient(to right, transparent 20%, {{{c2|#fff}}} 20%, {{{c2|#fff}}} 25%, transparent 25%), linear-gradient(to bottom, transparent 32.5%, {{{c2|#fff}}} 32.5%, {{{c2|#fff}}} 67.5%, transparent 67.5%), {{{c1|#333}}}
| <code>preset</code> || string || <code>h</code> || Flag stripe pattern. Accepts:
    | diagonal = linear-gradient(135deg, {{{c1|#333}}} {{#if:{{{c3|}}}|33.33%, {{{c2|#666}}} 33.33%, {{{c2|#666}}} 66.66%, {{{c3|#999}}} 66.66%|50%, {{{c2|#666}}} 50%}})
* <code>h</code> &ndash; Horizontal bands (top to bottom: c1, c2, c3).
    | h | #default = linear-gradient(to bottom, {{{c1|#333}}} {{#if:{{{c3|}}}|33.33%, {{{c2|#666}}} 33.33%, {{{c2|#666}}} 66.66%, {{{c3|#999}}} 66.66%|50%, {{{c2|#666}}} 50%}})
* <code>v</code> &ndash; Vertical bands (left to right: c1, c2, c3).
  }}
* <code>diagonal</code> &ndash; 135° diagonal stripes.
| {{{c1|#333}}}
* <code>cross</code> &ndash; Centered national cross (e.g. England/Switzerland/Greece).
}}; {{{style|}}}">{{#if:{{{bg_icon|}}}|<span class="tb-country-bg-icon"{{#if:{{{bg_opacity|}}}| style="opacity:{{{bg_opacity}}};"}}>[[File:{{{bg_icon}}}|x{{{bg_size|120}}}px|link=]]</span>}}{{#if:{{{image_left|}}}|<span class="tb-country-side-img tb-country-img-left">[[File:{{{image_left}}}|x70px|link=]]</span>}}{{#if:{{{image_right|}}}|<span class="tb-country-side-img tb-country-img-right">[[File:{{{image_right}}}|x70px|link=]]</span>}}{{{extras|}}}<div class="tb-country-content" style="{{#if:{{{text_color|}}}|color:{{{text_color}}};}}{{#if:{{{text_border|}}}|text-shadow:-1px -1px 0 {{{text_border}}}, 1px -1px 0 {{{text_border}}}, -1px 1px 0 {{{text_border}}}, 1px 1px 0 {{{text_border}}};}}"><div class="tb-country-title">{{{title|Untitled Country}}}</div>{{#if:{{{text|}}}|<div class="tb-country-text">{{{text}}}</div>}}{{#if:{{{audio|}}}|<div class="tb-country-audio">{{{audio}}}</div>}}</div></div><noinclude>{{Documentation}}</noinclude>
* <code>nordic</code> &ndash; Left-shifted Scandinavian cross (e.g. Sweden/Norway/Finland).
|-
| <code>c1</code> || color || <code>#333</code> || Primary background color (top / left / field).
|-
| <code>c2</code> || color || ''empty'' || Secondary color (middle band or outer cross arm). If omitted, <code>c1</code> is used as a solid background.
|-
| <code>c3</code> || color || ''empty'' || Tertiary color (bottom / right / inner cross stroke).
|-
! colspan="4" style="background:#eaecf0; text-align:center;" | Text & Styling
|-
| <code>title</code> || wikitext || <code>Untitled Country</code> || Header text / banner title.
|-
| <code>text</code> || wikitext || ''empty'' || Secondary text / notice body below the title.
|-
| <code>text_color</code> || color || <code>#ffffff</code> || Overrides the default white text color.
|-
| <code>text_border</code> || color || ''black shadow'' || Custom color for the 1px text border/stroke.
|-
! colspan="4" style="background:#eaecf0; text-align:center;" | Images & Animations
|-
| <code>image_left</code> || filename || ''empty'' || Image filename for the left side (e.g. <code>Icon.png</code>). Rendered at max height 70px.
|-
| <code>image_right</code> || filename || ''empty'' || Image filename for the right side (e.g. <code>Emblem.png</code>). Rendered at max height 70px.
|-
| <code>bg_icon</code> || filename || ''empty'' || Large emblem/watermark placed in the center behind the text.
|-
| <code>bg_size</code> || integer || <code>120</code> || Max height in pixels for <code>bg_icon</code>.
|-
| <code>bg_opacity</code> || decimal || <code>0.25</code> || Opacity level for <code>bg_icon</code> (between <code>0</code> and <code>1</code>).
|-
| <code>spin_icon</code> || <code>yes</code> / <code>no</code> || ''empty'' || Set to <code>yes</code> to apply a continuous 360° rotation to <code>bg_icon</code> (recommended for symmetrical circular emblems).
|-
| <code>pulse_icon</code> || <code>yes</code> / <code>no</code> || ''empty'' || Set to <code>yes</code> to apply a smooth zoom/pulse animation to <code>bg_icon</code>.
|-
! colspan="4" style="background:#eaecf0; text-align:center;" | Media & Custom Code
|-
| <code>audio</code> || wikitext || ''empty'' || Audio player or <code>&lt;choose&gt;</code> block containing audio files.
|-
| <code>extras</code> || HTML / wikitext || ''empty'' || Raw HTML elements for custom absolute-positioned overlays (e.g. animated trains, buttons).
|-
| <code>class</code> || string || ''empty'' || Additional CSS classes appended to the outer container.
|-
| <code>style</code> || CSS || ''empty'' || Additional inline CSS styles for the outer container.
|}

Latest revision as of 08:35, 10 October 2026

Untitled Country