Chronicles RP - Fantasy Roleplay Forum
Folklore | Wiki

Ambox Printable version

https://chroniclesrp.net/Folklore/Ambox
This page can be used as a building block in other pages.

This page has been seen 1,600 times.

{{{caption}}}
{{{message}}}
{{{comment}}}
This template is indended as a meta template: a template used for constructing other templates. In general, it is not meant for use directly in a page, but can be used on one-off basis if required.

Template Code

Code:
[template]Ambox
|bc=
|bg=
|fg=
|image=
|img-wd=
|caption=
|message=
|comment=
[/template]

Usage

This template is intended to be used when creating new announcement boxes to be displayed on top of a page. For example, it could be used to create a Work In Progress announcement or a Page Under Moderation announcement. The content of the announcement and color can be modified.

Paramters

Design Parameters

Use of these design paramters is not required. There is a default state for each. bc
This defines the color of the announcement box's border.​
bg
This defines the color of the announcement box's background.​
fg
This defines the color of the announcement box's text.​

Content Parameters

image
If a direct link to an image is given, that image will be rendered on the left side of the announcement box.​
img-wd
If given a number, it will resize the image above to that width. It'll automatically adjust the height as well to maintain the proportions of the image. This is helpful for when the image used is too large for the announcement box.​
caption
A large, bolded caption will be displayed on the first row of text.​
message
A normal sized message will be displayed on the second row of text.​
comment
A small sized comment will be displayed on the third row of text.​

Example

WORK IN PROGRESS
This page is a work in progress. Therefore, it is not finished and may undergo critical changes while this message remains in place.
As a courtesy, please avoid making minor edits to this page while this message is displayed, in order to avoid edit conflicts.
A work in progress announcement can be created with the following code:
Code:
[template]Ambox
|image=https://i.imgur.com/2xWTbZC.jpg
|img-wd=75
|caption=WORK IN PROGRESS
|message=This page is a work in progress. Therefore, it is not finished and may undergo critical changes while this message remains in place.
|comment=As a courtesy, please avoid making minor edits to this page while this message is displayed, in order to avoid edit conflicts.
[/template]
Once that template is created with the name "WIP", it can then be posted on any page with just the following code:
Code:
[template]WIP[/template]