Template:Messagebox: Difference between revisions
From MediaWiki
Jump to navigationJump to search
Tigerpaw28 (talk | contribs) Fixing namespace check |
Tigerpaw28 (talk | contribs) Enabling category inclusion for File namespace so that Template:BadImage works. Possibly a more eloquent way to do it, but this works for now. |
||
| Line 9: | Line 9: | ||
</div>{{#if: {{{bottomtext|}}}|<small>{{{bottomtext|}}}</small>|}} | </div>{{#if: {{{bottomtext|}}}|<small>{{{bottomtext|}}}</small>|}} | ||
|} | |} | ||
</center>{{#ifeq: {{NAMESPACE}}||{{{categories|}}}}}</includeonly><noinclude> {{doc}} | </center>{{#ifeq: {{NAMESPACE}}||{{{categories|}}}}}{{#ifeq: {{NAMESPACE}}|File|{{{categories|}}}}}</includeonly><noinclude> {{doc}} | ||
[[Category:Meta templates]]</noinclude> | [[Category:Meta templates]]</noinclude> | ||
Latest revision as of 01:51, 23 June 2022
(Transcluded documentation: view)
{{Messagebox|
|message_text=
|header=
|image_name=
|talkpage=
|categories=
|mouseover=
|image_width=
|border=
|bgcolor=
|justification=
|talkSameLine=
|clearall=
|print=true
}}
|
There is an additional parameter 'bottomtext' that should really never be used unless you know what you're doing, because its presence is often conditional; it's used for clarifying something.
If you do need to use it, the format usually looks something like this; |bottomtext={{#if: {{{pending|}}}|<b>Decision Pending:</b> {{{pending|}}} |}}
Printing
By default, this template will not appear when the page is printed. To force it to appear set print=true.

