User:Zeal/Sandbox/Templates/ambox
Jump to navigation
Jump to search
This template requires an external CSS.
The required external CSS can be found here and should be added to your the appropriate CSS articles in your userspace.
- Description
- Replacement to {{Ambox}}.
- Syntax
- {{User:Zeal/Sandbox/Templates/ambox| <string> | <string> | <switch ("notice"/"warning"/"content"/"style"/"merge"/"protect")> | <title - (namespace + extension)> | text=<string> | subtext=<string> | icon=<switch ("notice"/"warning"/"content"/"style"/"merge"/"protect")> | icon=<title - namespace>}}
- Parameters
- 1=
- String to display as the Ambox's text.
- 2=
- String to display as the Ambox's sub-text.
- 3=
- Switch for the Ambox's type. The value determines the class and supports the following types (defaults to "default").
- info
- info. Used for messages that provide further information to the page (eg. Related articles or policies).
- success
- success. Used for messages that are of a positive nature (eg. Successful votes).
- fail
- fail. Used for messages that are of a negative nature (eg. Unsuccessful votes or deletion notices).
- neutral
- neutral. Used for messages that are of a neutral nature (eg. On going content issues or disputes).
- function
- function. Used for messages that provide a function for the wiki (eg. Protection or disambiguation notices).
- 4=
- Title of the Ambox's icon excluding the "Image:" namespace prefix. (defaults to "Stub.png")
- text=
- (See 1=).
- subtext=
- (See 2=).
- type=
- (See 3=).
- icon=
- (See 4=).
- Example
- Code
{{User:Zeal/Sandbox/Templates/ambox
|Text
|Some small text.
|fail
|Icon-warning-48x48.png
}}
{{User:Zeal/Sandbox/Templates/ambox
|text=More text.
|subtext=
*Some small text in a list.
*Some more small text in a list.
|type=info
|icon=Icon-information-48x48.png
}}
- Result