yoohoo! hot sauce please
10:27, 7 September 2026 (UTC)
Template:TemplateBase/Country: Difference between revisions
From 2swagg wiki
Jump to navigationJump to search
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..." |
No edit summary |
||
| Line 1: | Line 1: | ||
{| | <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|}}} | ||
| {{#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%}}) | ||
| 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}}} | ||
| | | 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%}}) | ||
| 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%}}) | |||
}} | |||
| {{{c1|#333}}} | |||
}}; {{{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> | |||
| | |||
| | |||
| | |||
|- | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| < | |||
| | |||
| < | |||
| | |||
| | |||
| < | |||
Latest revision as of 08:35, 10 October 2026
Untitled Country
| Parameter | Type | Default | Description |
|---|---|---|---|
| Layout & Flag Background | |||
preset |
string | h |
Flag stripe pattern. Accepts:
|
c1 |
color | #333 |
Primary background color (top / left / field). |
c2 |
color | empty | Secondary color (middle band or outer cross arm). If omitted, c1 is used as a solid background.
|
c3 |
color | empty | Tertiary color (bottom / right / inner cross stroke). |
| Text & Styling | |||
title |
wikitext | Untitled Country |
Header text / banner title. |
text |
wikitext | empty | Secondary text / notice body below the title. |
text_color |
color | #ffffff |
Overrides the default white text color. |
text_border |
color | black shadow | Custom color for the 1px text border/stroke. |
| Images & Animations | |||
image_left |
filename | empty | Image filename for the left side (e.g. Icon.png). Rendered at max height 70px.
|
image_right |
filename | empty | Image filename for the right side (e.g. Emblem.png). Rendered at max height 70px.
|
bg_icon |
filename | empty | Large emblem/watermark placed in the center behind the text. |
bg_size |
integer | 120 |
Max height in pixels for bg_icon.
|
bg_opacity |
decimal | 0.25 |
Opacity level for bg_icon (between 0 and 1).
|
spin_icon |
yes / no |
empty | Set to yes to apply a continuous 360° rotation to bg_icon (recommended for symmetrical circular emblems).
|
pulse_icon |
yes / no |
empty | Set to yes to apply a smooth zoom/pulse animation to bg_icon.
|
| Media & Custom Code | |||
audio |
wikitext | empty | Audio player or <choose> block containing audio files.
|
extras |
HTML / wikitext | empty | Raw HTML elements for custom absolute-positioned overlays (e.g. animated trains, buttons). |
class |
string | empty | Additional CSS classes appended to the outer container. |
style |
CSS | empty | Additional inline CSS styles for the outer container. |