Difference between revisions of "Template:META Box"

From ArchWiki
Jump to: navigation, search
(should prevent Box templates (Note, Warning...) to be overlapped by Article Summary when put in the introduction (I don't think this has any drawbacks))
m (codeline -> ic)
(One intermediate revision by one other user not shown)
Line 12: Line 12:
 
====Usage====
 
====Usage====
  
{{Codeline|1=<nowiki>{{Box||Content without heading}}</nowiki>}}
+
{{Ic|1=<nowiki>{{Box||Content without heading}}</nowiki>}}
  
{{Codeline|1=<nowiki>{{Box|Example:|Content with heading}}</nowiki>}}
+
{{Ic|1=<nowiki>{{Box|Example:|Content with heading}}</nowiki>}}
  
{{Codeline|1=<nowiki>{{Box|Example:|Content followed by border-color|#DF0000}}</nowiki>}}
+
{{Ic|1=<nowiki>{{Box|Example:|Content followed by border-color|#DF0000}}</nowiki>}}
  
{{Codeline|1=<nowiki>{{Box|Example:|Content followed by border-color and background-color|#DF0000|#FFDFDF}}</nowiki>}}
+
{{Ic|1=<nowiki>{{Box|Example:|Content followed by border-color and background-color|#DF0000|#FFDFDF}}</nowiki>}}
  
 
====Example====
 
====Example====
Line 28: Line 28:
 
{{Box|Example:|Content followed by border-color|#DF0000}}
 
{{Box|Example:|Content followed by border-color|#DF0000}}
  
{{Box|Example:|Content followed by border-color and background-color|#DF0000|#FFDFDF}}</noinclude><includeonly><div style="padding: 5px; margin: 0.50em 0; background-color: {{{4}}}; border: thin solid {{{3|#000000}}}; overflow: hidden;"><strong> {{{1}}} </strong>{{{2}}}</div></includeonly>
+
{{Box|Example:|Content followed by border-color and background-color|#DF0000|#FFDFDF}}</noinclude><includeonly><div style="padding: 5px; margin: 0.50em 0; background-color: {{{4}}}; border: thin solid {{{3|#000}}}; overflow: hidden;"><strong> {{{1}}} </strong>{{{2}}}</div></includeonly>

Revision as of 17:27, 11 December 2011

This page is a template. It contains no Arch Linux-related information, but should be used as part of other articles. For more information, read Help:Template.

Please do not experiment with this template; you could ruin all pages using this template. If you want to edit this template, copy the text to Template:Sandbox, edit and test it there, and copy it back when it works.

Feel free to voice your opinion regarding this template.

A generic message box.

See also:

Usage

{{Box||Content without heading}}

{{Box|Example:|Content with heading}}

{{Box|Example:|Content followed by border-color|#DF0000}}

{{Box|Example:|Content followed by border-color and background-color|#DF0000|#FFDFDF}}

Example

Template:Box

Template:Box

Template:Box

Template:Box