Difference between revisions of "Template:Note"

(Added note box template)
 
m (Add more examples)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly><div class="infobox notification-{{{type|{{{1|{{META: Error}}}}}}}}">
+
<includeonly>
 +
<templatestyles src="Template:Note/styles.css" />
 +
<div class="infobox notification-{{{type|{{{1|{{META: Error}}}}}}}}">
 
<span class = "boxlabel">
 
<span class = "boxlabel">
 
{{#switch: {{{type|{{{1|{{META: Error}}}}}}}}
 
{{#switch: {{{type|{{{1|{{META: Error}}}}}}}}
Line 23: Line 25:
  
 
==Example==
 
==Example==
 +
{{Note|note|This text should be noted}}
 
{{Note|tip|This is a tip}}
 
{{Note|tip|This is a tip}}
 
{{Note|type=warning|text=This is a warning}}
 
{{Note|type=warning|text=This is a warning}}
 
{{Note|example|Text for an example can go here.}}
 
{{Note|example|Text for an example can go here.}}
 +
{{Note|important|This text is pretty important.}}
 +
{{Note|background|This text has a colored background.}}
  
 
</noinclude>
 
</noinclude>

Latest revision as of 21:58, 10 May 2021


Create an info box to highlight important information.

Usage[edit source]

1 or type: The type of box. Possible values: note, tip, warning, example, important, background. Defaults to note.
2 or text: The text to put in the box.


{{Note|tip|This is a tip}} 
{{Note|type=warning|text=This is a warning}} 

Example[edit source]

Note: This text should be noted

Tip: This is a tip

Warning: This is a warning

Example: Text for an example can go here.

Important! This text is pretty important.

This text has a colored background.


No categories assignedEdit