Ibanez Wiki
m (Reverted edits by Deejayk (talk | block) to last version by Brambram)
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><div style="width:700px; margin-left:auto; margin-right:auto; text-align:left; font-size:90%; background-color: #F7F5F5; border-left:8px solid {{#ifeq:{{{background|}}}||#221111|{{{background}}}}}; border-right:8px solid #F7F5F5;">
+
<includeonly><table class="messagebox" style="border-left:8px solid {{#if:{{{background|}}}|{{{background}}}|#221111}}">
  +
<TR>
{| style="padding-left:5px; padding-right:5px;"
 
|{{#ifeq:{{{image|}}}||[[File:I icon.png|40px]]|[[File:{{{image}}}|40px]]}}
+
<TD style="width:40px">{{#ifeq:{{{image|}}}||[[File:I icon.png|40px]]|[[File:{{{image}}}|40px|link={{{filelink|File:{{{image}}}}}}]]}}</TD>
|style="padding-left:5px;"|{{#if:{{{title|}}}|'''{{{title}}}'''<br>}}{{{text1}}} {{#if:{{{text2|}}}|''{{{text2}}}''}}
+
<TD>{{#if:{{{title|}}}|'''{{{title}}}'''<br>}}{{{text1}}} {{#if:{{{text2|}}}|''{{{text2}}}''}}</TD>
  +
</TR>
|}
 
</div>
+
</table>
 
[[Category:Pages with a Messagebox]]</includeonly><noinclude>
 
[[Category:Pages with a Messagebox]]</includeonly><noinclude>
 
{{documentation}}
 
{{documentation}}

Latest revision as of 15:39, 7 July 2016

{{ Info1.png }} Template documentation: Messagebox [edit] [purge]

This documentation is transcluded from Template:Messagebox/doc.


This messagebox template can be used to create standard messageboxes for templates.

This code should be used for creating a messagebox on a template page:

{{Messagebox
|title=
|text1=
|text2=
|image=
|background=
}}

The title parameter is for the actual message in short, text1 should give more information for visitors, text2 should give some editing instructions. A special image for a template messagebox can be used and created: preferably square, it will be displayed with a with of 80px. If no image is defined a standard image will be used. A special background color can be defined with the background parameter. If not defined, a standard gray will be used.

Example

{{Messagebox
|title=This page needs a haircut
|text1=Content on this is page is outdated and needs revision.
|text2=
|image=Haircut.jpg
|background=#BB5544
}}

gives

Haircut.jpg This page needs a haircut
Content on this is page is outdated and needs revision.