Template:BaseWarning: Difference between revisions

From gm_construct 13 beta
Jump to navigation Jump to search
(Created page with "{| style="margin: auto; width: {{{width}}}; border: 1px solid #b0b4bb;" | style="background: {{{bar-color}}}; width:9px;" | | style="padding: 5px;" | [[{{{icon}}}]] | style="padding: 10px; text-align: left;" | {{{text}}} |} <noinclude> Example usage: <pre> {{BaseWarning | width=Example | bar-color=Example | icon=Example | text=Example }} </pre> <templatedata> { "params": { "width": { "suggested": true, "default": "439px", "type": "string" }, "bar...")
 
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| style="margin: auto; width: {{{width}}}; border: 1px solid #b0b4bb;"
{| style="background: {{{background-color}}}; margin: auto; max-width: {{{max-width}}}; border: {{{border-width}}} solid {{{border-color}}};"
| style="background: {{{bar-color}}}; width:9px;" |
| style="background: {{{bar-color}}}; width: {{{bar-width}}};" |
| style="padding: 5px;" | [[{{{icon}}}]]
| style="padding: 5px;" | [[{{{icon}}}|{{{icon-size}}}]]
| style="padding: 10px; text-align: left;" | {{{text}}}
| style="padding: 10px; text-align: left;" | {{{text}}}
|}
|}<noinclude>


<noinclude>
Usage example:
Example usage:
<pre>
<pre>
{{BaseWarning
{{BaseWarning
   | width=Example
   | max-width=Example
  | bar-width=Example
   | bar-color=Example
   | bar-color=Example
  | border-width=Example
  | border-color=Example
  | background-color=Example
   | icon=Example
   | icon=Example
  | icon-size=Example
   | text=Example
   | text=Example
}}
}}
Line 18: Line 22:
{
{
"params": {
"params": {
"width": {
"max-width": {
"suggested": true,
"suggested": true,
"default": "439px",
"default": "439px",
"type": "string"
},
"bar-width": {
"suggested": true,
"default": "9px",
"autovalue": "9px",
"type": "string"
"type": "string"
},
},
Line 26: Line 36:
"suggested": true,
"suggested": true,
"default": "#b0b4bb",
"default": "#b0b4bb",
"type": "string"
},
"border-width": {
"suggested": true,
"default": "1px",
"autovalue": "1px",
"type": "string"
},
"border-color": {
"suggested": true,
"default": "#b0b4bb",
"autovalue": "#b0b4bb",
"type": "string"
},
"background-color": {
"suggested": true,
"default": "",
"type": "string"
"type": "string"
},
},
Line 31: Line 58:
"suggested": true,
"suggested": true,
"type": "wiki-file-name"
"type": "wiki-file-name"
},
"icon-size": {
"suggested": true,
"default": "40px",
"autovalue": "40px",
"type": "string"
},
},
"text": {
"text": {
"suggested": true,
"required": true,
"type": "string",
"type": "string",
"default": ""
"default": ""

Latest revision as of 05:05, 10 July 2023

[[{{{icon}}}|{{{icon-size}}}]] {{{text}}}

Usage example:

{{BaseWarning
  | max-width=Example
  | bar-width=Example
  | bar-color=Example
  | border-width=Example
  | border-color=Example
  | background-color=Example
  | icon=Example
  | icon-size=Example
  | text=Example
}}

No description.

Template parameters

ParameterDescriptionTypeStatus
max-widthmax-width

no description

Default
439px
Stringsuggested
bar-widthbar-width

no description

Default
9px
Auto value
9px
Stringsuggested
bar-colorbar-color

no description

Default
#b0b4bb
Stringsuggested
border-widthborder-width

no description

Default
1px
Auto value
1px
Stringsuggested
border-colorborder-color

no description

Default
#b0b4bb
Auto value
#b0b4bb
Stringsuggested
background-colorbackground-color

no description

Default
Stringsuggested
iconicon

no description

Filesuggested
icon-sizeicon-size

no description

Default
40px
Auto value
40px
Stringsuggested
texttext

no description

Default
Stringrequired