182
edits
(aha, THAT'S where the errant <br> was coming from) |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>< | <includeonly><table class="messagebox" style="{{{style|}}}"> | ||
<tr> | |||
| | {{#if:{{{image|}}}|<td class="messagebox-image">[[File:{{{image}}}|{{{imagewidth|55px}}}|link=|alt=]]</td>}} | ||
| style=" | <td class="messagebox-text" {{#if:{{{image|}}}{{{bottomtext|}}}||style="text-align:center"}}>{{{text|This is some text!}}} | ||
{{#if:{{{bottomtext|}}}|<div class="messagebox-bottomtext">{{{bottomtext}}}</div>}}</td> | |||
</tr></table>{{#if:{{NAMESPACE}}|{{#ifeq:{{NAMESPACE}}|File|{{{categories|}}}}}|{{{categories|}}}}}</includeonly><noinclude> | |||
A base for making hatnote templates, like [[Template:Stub]]. | |||
</ | |||
;Syntax | |||
<pre>{{Messagebox | |||
|image= | |||
|imagewidth= | |||
|text= | |||
|bottomtext= | |||
|categories= | |||
}}</pre> | |||
;Parameters | |||
:'''image''' | |||
:*Optional. Do not include <nowiki>[[File:]]</nowiki>, but do include filetype--e.g. <code>Example.png</code>. | |||
:'''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. <code><nowiki>[[Category:Example 1]][[Category:Example 2]]</nowiki></code> | |||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |