Template:BaseWarning: Difference between revisions

From gm_construct 13 beta
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{| style="background: {{{background-color}}}; margin: auto; max-width: {{{width}}}; border: {{{border-width}}} solid {{{border-color}}};"
{| style="background: {{{background-color}}}; margin: auto; max-width: {{{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}}}]]
| style="padding: 10px; text-align: left;" | {{{text}}}
| style="padding: 10px; text-align: left;" | {{{text}}}
Line 10: Line 10:
{{BaseWarning
{{BaseWarning
   | width=Example
   | width=Example
  | bar-width=Example
   | bar-color=Example
   | bar-color=Example
  | icon=Example
  | text=Example
   | border-width=Example
   | border-width=Example
   | border-color=Example
   | border-color=Example
   | background-color=Example
   | background-color=Example
  | icon=Example
  | text=Example
}}
}}
</pre>
</pre>
Line 24: Line 25:
"suggested": true,
"suggested": true,
"default": "439px",
"default": "439px",
"type": "string"
},
"bar-width": {
"suggested": true,
"default": "9px",
"autovalue": "9px",
"type": "string"
"type": "string"
},
},
Line 30: Line 37:
"default": "#b0b4bb",
"default": "#b0b4bb",
"type": "string"
"type": "string"
},
"icon": {
"suggested": true,
"type": "wiki-file-name"
},
"text": {
"required": true,
"type": "string",
"default": ""
},
},
"border-width": {
"border-width": {
Line 56: Line 54:
"default": "",
"default": "",
"type": "string"
"type": "string"
},
"icon": {
"suggested": true,
"type": "wiki-file-name"
},
"text": {
"required": true,
"type": "string",
"default": ""
}
}
},
},

Revision as of 04:19, 10 July 2023

[[{{{icon}}}]] {{{text}}}


Usage example:

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

No description.

Template parameters

ParameterDescriptionTypeStatus
widthwidth

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
texttext

no description

Default
Stringrequired