Template:BaseWarning: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
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: {{{max-width}}}; border: {{{border-width}}} solid {{{border-color}}};" | ||
| style="background: {{{bar-color}}}; width: {{{bar-width}}};" | | | 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> | ||
Usage example: | Usage example: | ||
<pre> | <pre> | ||
{{BaseWarning | {{BaseWarning | ||
| width=Example | | max-width=Example | ||
| bar-width=Example | | bar-width=Example | ||
| bar-color=Example | | bar-color=Example | ||
Line 16: | Line 15: | ||
| background-color=Example | | background-color=Example | ||
| icon=Example | | icon=Example | ||
| icon-size=Example | |||
| text=Example | | text=Example | ||
}} | }} | ||
Line 22: | Line 22: | ||
{ | { | ||
"params": { | "params": { | ||
"width": { | "max-width": { | ||
"suggested": true, | "suggested": true, | ||
"default": "439px", | "default": "439px", | ||
Line 58: | 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": { |
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
max-width | max-width | no description
| String | suggested |
bar-width | bar-width | no description
| String | suggested |
bar-color | bar-color | no description
| String | suggested |
border-width | border-width | no description
| String | suggested |
border-color | border-color | no description
| String | suggested |
background-color | background-color | no description
| String | suggested |
icon | icon | no description | File | suggested |
icon-size | icon-size | no description
| String | suggested |
text | text | no description
| String | required |