Template:Colorbox/doc: Difference between revisions
Template page
More actions
Created page with "<noinclude> {{Documentation subpage}} </noinclude> == Description == Displays a small colored box with optional text and a link. == Usage == <pre> {{Colorbox|background|text|link|text color}} </pre> == Parameters == {| class="wikitable" ! Parameter !! Description !! Example |- | background || Background color (name, hex, rgb) || red, #ff0000 |- | text || Text displayed inside the box || Example |- | link || Page to link to (optional) || Main Page |- | text color..." |
m Wrangled into Template category |
||
| Line 34: | Line 34: | ||
{{Colorbox|red|Example moth hehe DO NOT CLICK|Placeholder|white}} | {{Colorbox|red|Example moth hehe DO NOT CLICK|Placeholder|white}} | ||
<noinclude> | |||
[[Category:Template]] | |||
</noinclude> | |||
Latest revision as of 20:31, 22 April 2026
Documentation subpage
This is a documentation subpage for a template. It is not included when the template is used.
Description
Displays a small colored box with optional text and a link.
Usage
{{Colorbox|background|text|link|text color}}
Parameters
| Parameter | Description | Example |
|---|---|---|
| background | Background color (name, hex, rgb) | red, #ff0000 |
| text | Text displayed inside the box | Example |
| link | Page to link to (optional) | Main Page |
| text color | Text color (optional, for contrast) | white |