(Create template) |
m (Also remove line breaks when collab=no) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude><includeonly>{|class="ambox ambox-{{{type|notice}}}" | <onlyinclude><includeonly><blockquote> | ||
{|class="ambox ambox-{{{type|notice}}}" | |||
|{{#if:{{{image|}}}|[[File:{{{image}}}|x48px|link=]]|<div class="ambox-image-placeholder" />}} | |{{#if:{{{image|}}}|[[File:{{{image}}}|x48px|link=]]|<div class="ambox-image-placeholder" />}} | ||
|{{{text}}} | |{{{text}}}{{#ifeq:{{{collab|yes}}}|yes|<br/><br/>{{collab}}|}} | ||
|}</blockquote></includeonly></onlyinclude> | |||
{{collab}} | |||
|}</includeonly></onlyinclude> | |||
Base for {{t|ambox stub}}. | Base for {{t|ambox stub}}. | ||
Line 27: | Line 26: | ||
"type": "content", | "type": "content", | ||
"required": true | "required": true | ||
}, | |||
"collab": { | |||
"label": "Enable Collab Line", | |||
"description": "yes/no bool, toggles including a \"call to action\" line", | |||
"type": "string", | |||
"default": "yes", | |||
"autovalue": "no" | |||
} | } | ||
}, | }, |
Latest revision as of 06:23, 4 November 2023
Base for {{ambox stub}}.
The below documentation is automatically generated from JSON. It can be changed by editing this page, but note that it's only the documentation (for the visual editor)—the actual template part must also be edited, manually.
Intended for Template namespace: Creates an article message box.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Type | type | becomes CSS class `ambox-{{{type}}}`
| String | suggested |
Image Filename | image | omit "File:" | File | optional |
Label Text | text | no description | Content | required |
Enable Collab Line | collab | yes/no bool, toggles including a "call to action" line
| String | optional |