Template:MessageBox: Difference between revisions

From Pressure Wiki
Content deleted Content added
Updated styling
Added customisable image
 
Line 2: Line 2:
{| class="home-table" style="width: 63%;"
{| class="home-table" style="width: 63%;"
|-
|-
|style="vertical-align: top; font-size: 130%; font-weight: bold;"| {{{title|}}}||style="width: 24%; text-align: right;" rowspan="3"| [[File:Hadal Division Logo.png|100px]]
|style="vertical-align: top; font-size: 130%; font-weight: bold;"| {{{title|}}}||style="width: 24%; text-align: right;" rowspan="3"|{{#if: {{{image|}}}|[[File:{{{image}}}|100px]]|[[File:Hadal Division Logo.png|100px]]}}
|-
|-
|style="vertical-align: center;"|{{{content|}}}
|style="vertical-align: center;"|{{{content|}}}
Line 12: Line 12:
<noinclude>
<noinclude>
== Documentation ==
== Documentation ==
This template is used to display a notice message box. The default results if no parameters are given is shown above.
This template is used to display a notice message box. The default results if no parameters are given is shown above. If no image is supplied, the default Hadal Division logo will be used.
=== Example Usage ===
=== Example Usage ===
{{MessageBox|title=Stub Article|content=This article has been marked as a stub. Stub articles are incomplete and require immediate work.|subtitle=Please feel free to [{{fullurl:{{FULLPAGENAME}}|action=edit}} edit this page] to contribute.}}
{{MessageBox|title=Stub Article|content=This article has been marked as a stub. Stub articles are incomplete and require immediate work.|subtitle=Please feel free to [{{fullurl:{{FULLPAGENAME}}|action=edit}} edit this page] to contribute.|image=Placeholder.png}}
=== Formatting ===
=== Formatting ===
<pre>
<pre>
Line 21: Line 21:
|content =
|content =
|subtitle =
|subtitle =
|image =
}}
}}
</pre>
</pre>