Template:Color box/doc: Difference between revisions

From The World of Gotha
Jump to navigation Jump to search
(Created page with "<noinclude>{{docsub}}</noinclude> The <nowiki>{{</nowiki>color box<nowiki>}}</nowiki> template places a box with the specified fill color on a page. The template is copied from [https://dev.miraheze.org/wiki/Template:Color_box], created by Miraheze user Silicona, under [https://creativecommons.org/licenses/by-sa/4.0/deed.en Creative Commons CC-BY-SA 4.0]. ==Usage== Basic usage: <code><nowiki>{{color box|</nowiki>''1''<nowiki>}}</nowiki></code> =...")
 
mNo edit summary
 
Line 2: Line 2:
The <nowiki>{{</nowiki>[[Template:Color box|color box]]<nowiki>}}</nowiki> template places a box with the specified fill color on a page.
The <nowiki>{{</nowiki>[[Template:Color box|color box]]<nowiki>}}</nowiki> template places a box with the specified fill color on a page.


The template is copied from [https://dev.miraheze.org/wiki/Template:Color_box], created by Miraheze user Silicona, under [https://creativecommons.org/licenses/by-sa/4.0/deed.en Creative Commons CC-BY-SA 4.0].
The template is copied from [https://dev.miraheze.org/wiki/Template:Color_box https://dev.miraheze.org/wiki/Template:Color_box] under [https://creativecommons.org/licenses/by-sa/4.0/deed.en Creative Commons CC-BY-SA 4.0]. It was created by Miraheze user Silicona.


==Usage==
==Usage==
Line 23: Line 23:


==Examples==
==Examples==
&bull; <code><nowiki>{{</nowiki>color box|red}}</code> or <code><nowiki>{{</nowiki>color box|color=red}}</code> &rarr; {{color box|red}}
* <code><nowiki>{{</nowiki>color box|red}}</code> or <code><nowiki>{{</nowiki>color box|color=red}}</code> &rarr; {{color box|red}}
&bull; <code><nowiki>{{</nowiki>color box|yellow|border-width=3px}}</code> &rarr; {{color box|yellow|border-width=3px}}
* <code><nowiki>{{</nowiki>color box|yellow|border-width=3px}}</code> &rarr; {{color box|yellow|border-width=3px}}
&bull; <code><nowiki>{{</nowiki>color box|#90EE90|border-style=dashed}}</code> &rarr; {{color box|#90EE90|border-style=dashed}}
* <code><nowiki>{{</nowiki>color box|#90EE90|border-style=dashed}}</code> &rarr; {{color box|#90EE90|border-style=dashed}}
&bull; <code><nowiki>{{</nowiki>color box|orange|border-color-blue}}</code> &rarr; {{color box|orange|border-color=blue}}
* <code><nowiki>{{</nowiki>color box|orange|border-color-blue}}</code> &rarr; {{color box|orange|border-color=blue}}
&bull; <code><nowiki>{{</nowiki>color box|magenta|style=border-radius:50%;}} &rarr; {{color box|magenta|style=border-radius:50%;}}
* <code><nowiki>{{</nowiki>color box|magenta|style=border-radius:50%;}} &rarr; {{color box|magenta|style=border-radius:50%;}}

Latest revision as of 03:56, 12 July 2024

This is a documentation subpage for Template:Color box.
It may contain usage information, categories and other content that is not part of the original template page.

The {{color box}} template places a box with the specified fill color on a page.

The template is copied from https://dev.miraheze.org/wiki/Template:Color_box under Creative Commons CC-BY-SA 4.0. It was created by Miraheze user Silicona.

Usage

Basic usage: {{color box|1}}

Parameters

Parameter Description Type Status Notes
1
color
Box fill color String Required The parameter name is optional
border-width Box border width String Optional Default is 1px
border-style Box border style String Optional Default is solid
border-color Box border color String Optional Default is black
style Other box styles String Optional

Examples

  • {{color box|red}} or {{color box|color=red}}
  • {{color box|yellow|border-width=3px}}
  • {{color box|#90EE90|border-style=dashed}}
  • {{color box|orange|border-color-blue}}
  • {{color box|magenta|style=border-radius:50%;}} →