Sandbox: Difference between revisions

From Fact or Fiction
No edit summary
No edit summary
Line 2: Line 2:


==Templates==
==Templates==
* [[Template:Messagebox]]
{|
|-
| [[Template:Messagebox]] || A Message box typically at the top of a page (Purple) || <span style="color:red;">Incomplete</span>
|-
| [[Template:Todo]] || A Things to do message box, typically shown at the top of the page || <span style="color:red;">Incomplete</span>
|-
| [[Template:Infobox]] || An information box displayed within a page with an icon || <span style="color:red;">Incomplete</span>
|-
| [[Template:Info]] || Information box with an Informational message (blue) || <span style="color:red;">Incomplete</span>
|-
| [[Template:Warning]] || Information box with an warning message (Orange) || <span style="color:red;">Incomplete</span>
|-
| [[Template:Error]] || Information box with an error message (Red) || <span style="color:red;">Incomplete</span>
|-
| [[Template:InlineError]] || Inline error message (Red) || <span style="color:red;">Need to copy from Template:Error</span>
|}
 


==Examples==
==Examples==
Line 12: Line 28:
<code><nowiki>{{Messagebox|General information|title=Warning|icon=Warning}}</nowiki></code>{{Messagebox|General  
<code><nowiki>{{Messagebox|General information|title=Warning|icon=Warning}}</nowiki></code>{{Messagebox|General  
information|title=Warning|icon=Warning}}
information|title=Warning|icon=Warning}}
<code><nowiki>{{Todo}}</nowiki></code>{{Todo}}
<code><nowiki>{{Todo|Fix tables}}</nowiki></code>{{Todo|Fix tables}}
<code><nowiki>{{Infobox}}</nowiki></code>{{Infobox}}
<code><nowiki>{{Infobox|This is an InfoBox}}</nowiki></code>{{Infobox|This is an InfoBox}}
<code><nowiki>{{Infobox|This is an InfoBox|level=info}}</nowiki></code>{{Infobox|This is an InfoBox|level=info}}
<code><nowiki>{{Infobox|This is an InfoBox|level=warning}}</nowiki></code>{{Infobox|This is an InfoBox|level=warning}}
<code><nowiki>{{Infobox|This is an InfoBox|level=error}}</nowiki></code>{{Infobox|This is an InfoBox|level=error}}
<code><nowiki>{{Info}}</nowiki></code>{{Info}}
<code><nowiki>{{Info|Missing information}}</nowiki></code>{{Info|Missing information}}
<code><nowiki>{{Warning}}</nowiki></code>{{Warning}}
<code><nowiki>{{Warning|Missing information}}</nowiki></code>{{Warning|Missing information}}
<code><nowiki>{{Error}}</nowiki></code>{{Error}}
<code><nowiki>{{Error|Missing information}}</nowiki></code>{{Error|Missing information}}
<code><nowiki>The argument is: {{Error}}</nowiki></code>
The argument is: {{Error}}
<code><nowiki>The argument is: {{Error|Missing information}}</nowiki></code>
The argument is: {{Error|Missing information}}

Revision as of 09:40, 20 March 2024

This page is used to test out content and templates before they are released and added to pages:

Templates

Template:Messagebox A Message box typically at the top of a page (Purple) Incomplete
Template:Todo A Things to do message box, typically shown at the top of the page Incomplete
Template:Infobox An information box displayed within a page with an icon Incomplete
Template:Info Information box with an Informational message (blue) Incomplete
Template:Warning Information box with an warning message (Orange) Incomplete
Template:Error Information box with an error message (Red) Incomplete
Template:InlineError Inline error message (Red) Need to copy from Template:Error


Examples

{{Messagebox}}

! Missing Argument !

{{Messagebox|General information}}

General information

{{Messagebox|General information|title=Warning}}

Warning

General information

{{Messagebox|General information|icon=Warning}}

General information

{{Messagebox|General information|title=Warning|icon=Warning}}

Warning

General information


{{Todo}}


Things to do


{{Todo|Fix tables}}


Fix tables



{{Infobox}}

{{{1}}}


{{Infobox|This is an InfoBox}}

This is an InfoBox


{{Infobox|This is an InfoBox|level=info}}

info

This is an InfoBox


{{Infobox|This is an InfoBox|level=warning}}

warning

This is an InfoBox


{{Infobox|This is an InfoBox|level=error}}

error

This is an InfoBox



{{Info}}Template:Info {{Info|Missing information}}Template:Info

{{Warning}}Template:Warning {{Warning|Missing information}}Template:Warning

{{Error}} ! ERROR !


{{Error|Missing information}} ! Missing information !



The argument is: {{Error}} The argument is: ! ERROR !


The argument is: {{Error|Missing information}} The argument is: ! Missing information !