Difference between revisions of "Template:Ambox"

From Nottinghack Wiki
Jump to navigation Jump to search
(5px test)
Line 51: Line 51:
 
| #default  = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing.</div>[[Category:Message box parameter needs fixing|Main{{FULLPAGENAME}}]]<!-- Sort on namespace -->
 
| #default  = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing.</div>[[Category:Message box parameter needs fixing|Main{{FULLPAGENAME}}]]<!-- Sort on namespace -->
 
}}<noinclude>
 
}}<noinclude>
== Usage ==
+
==Documentation==
 +
=== Examples ===
  
 
Simple usage example:
 
Simple usage example:
Line 72: Line 73:
 
</pre>
 
</pre>
  
== Article message box type examples ==
+
=== Article message box type examples ===
  
The following examples use different '''type''' parameters but use no image parameters thus they use the default images for each type.
+
The following examples use different '''type''' parameters but use no image parameters thus they use the default images for each type. These are taken from Wikipedia so may not be a perfect match for the Nottinghack Wiki.
  
 
{{ambox
 
{{ambox
Line 104: Line 105:
 
| text  = type=<u>protection</u> – Protection notices.
 
| text  = type=<u>protection</u> – Protection notices.
 
}}
 
}}
 +
 +
===Resources ===
 +
This template uses styles stored in [[MediaWiki:Common.css]]
  
 
[[Category:Page Action Templates]]
 
[[Category:Page Action Templates]]
 
[[Category:Utility Templates]]
 
[[Category:Utility Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 17:46, 8 May 2019

Documentation

Examples

Simple usage example:

{{ambox | text = Some text.}}

Complex example:

{{ambox
| type       = style
| image      = [[File:Emblem-question-yellow.svg|40px|alt=Question mark]]
| textstyle  = color: red; font-weight: bold; font-style: italic;
| text       = Text for a big box, for the top of articles.
}}

Article message box type examples

The following examples use different type parameters but use no image parameters thus they use the default images for each type. These are taken from Wikipedia so may not be a perfect match for the Nottinghack Wiki.

Resources

This template uses styles stored in MediaWiki:Common.css