Template:Ambox basic: Difference between revisions
PWpedia>Sangodoc Added standard color list and set default color |
GM Bastion (talk | contribs) Added an optional icon setting to Ambox; kept the standard alert as the default. |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
<table class="metadata plainlinks ambox" style="margin: 0px 10%; border: 1px solid; border-left: 10px solid #1e90ff; border-left: 10px solid {{{color}}}; background: # | <table class="metadata plainlinks ambox" style="margin: 0px 10%; border: 1px solid; border-left: 10px solid #1e90ff; border-left: 10px solid {{{color}}}; background: #171513;"> | ||
<tr> | <tr> | ||
<td class="mbox-image"><div style="width: 56px;">[[Image:PWIAlert.png]]</div></td> | <td class="mbox-image"><div style="width: 56px;">{{{image|[[Image:PWIAlert.png]]}}}</div></td> | ||
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td> | <td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td> | ||
</tr> | </tr> | ||
| Line 7: | Line 7: | ||
<noinclude> | <noinclude> | ||
This is a basic '''article message box''' (ambox) with a colored bar on the left (blue by default). To use this put '''<NoWiki>{{Ambox_basic|color=#1e90ff|text=Your text here.}}</NoWiki>''' at the top of the article or section with your own text and color in the template tag (see below for other colors). You can change the style of the text by adding a textstyle parameter (like "|textstyle=color: red; font-weight: bold; font-style: italic;"). Other templates with default messages can/should be made using this template. | This is a basic '''article message box''' (ambox) with a colored bar on the left (blue by default). To use this put '''<NoWiki>{{Ambox_basic|color=#1e90ff|text=Your text here.}}</NoWiki>''' at the top of the article or section with your own text and color in the template tag (see below for other colors). You can change the style of the text by adding a textstyle parameter (like "|textstyle=color: red; font-weight: bold; font-style: italic;"). Other templates with default messages can/should be made using this template. | ||
An optional <code>image</code> parameter can supply different image markup, for example <code><nowiki>|image=[[File:Version check icon.png|38px|link=|alt=Version check needed]]</nowiki></code>. If omitted, the standard PWI alert icon is used. | |||
'''Standard colors:'''<br> | '''Standard colors:'''<br> | ||
Latest revision as of 20:15, 30 October 2026
| {{{text}}} |
This is a basic article message box (ambox) with a colored bar on the left (blue by default). To use this put {{Ambox_basic|color=#1e90ff|text=Your text here.}} at the top of the article or section with your own text and color in the template tag (see below for other colors). You can change the style of the text by adding a textstyle parameter (like "|textstyle=color: red; font-weight: bold; font-style: italic;"). Other templates with default messages can/should be made using this template.
An optional image parameter can supply different image markup, for example |image=[[File:Version check icon.png|38px|link=|alt=Version check needed]]. If omitted, the standard PWI alert icon is used.
Standard colors:
- Blue: #1e90ff
- Red: #b22222
- Orange: #f28500
- Yellow: #f4c430
- Purple: #9932cc
- Gold: #b49b50
Once they add the ParserFunctions plugin to this wiki this template should be depreciated in favor of the full Ambox code.