Template:Messagebox: Difference between revisions

From No Man's Land - A Trigun Wiki
Jump to navigation Jump to search
m (moved something)
Tag: Reverted
m (Reverted edits by Whyitskai (talk) to last revision by Eithris)
Tag: Rollback
 
Line 1: Line 1:
<includeonly><table class="messagebox" style="{{{style|}}}">
<includeonly><table class="messagebox" style="{{{style|}}}">
<tr>
<tr>
{{{#if:{{{image|}}}|<td class="messagebox-image">[[File:{{{image}}}|{{{imagewidth|55px}}}|link=|alt=]]</td>}}
{{#if:{{{image|}}}|<td class="messagebox-image">[[File:{{{image}}}|{{{imagewidth|55px}}}|link=|alt=]]</td>}}
<td class="messagebox-text" {{#if:{{{image|}}}{{{bottomtext|}}}||style="text-align:center"}}>{ #if: {{{header|}}} |<span style="font-size:125%;font-weight:900;">{{{header|}}}</span><hr/>|}}{{{text|This is some text!}}}
<td class="messagebox-text" {{#if:{{{image|}}}{{{bottomtext|}}}||style="text-align:center"}}>{{{text|This is some text!}}}
{{#if:{{{bottomtext|}}}|<div class="messagebox-bottomtext">
{{#if:{{{bottomtext|}}}|<div class="messagebox-bottomtext">
{{{bottomtext}}}</div>}}</td>
{{{bottomtext}}}</div>}}</td>
Line 11: Line 11:
;Syntax
;Syntax
<pre>{{Messagebox
<pre>{{Messagebox
|header=
|image=
|image=
|imagewidth=
|imagewidth=

Latest revision as of 09:29, 25 September 2023


A base for making hatnote templates, like Template:Stub.

Syntax
{{Messagebox
|image=
|imagewidth=
|text=
|bottomtext=
|categories=
}}
Parameters
image
  • Optional. Do not include [[File:]], but do include filetype--e.g. Example.png.
imagewidth
  • Optional. Defaults to 55px.
text
  • Required. The message's main text.
bottomtext
  • Optional. Additional text that goes below the main text.
categories
  • Optional, but recommended. Adds any specified categories to pages that the child template is added to. Format as a normal list of categories, e.g. [[Category:Example 1]][[Category:Example 2]]