Difference between revisions of "Template:Box-header colour/doc"
Jump to navigation
Jump to search
imported>Evad37 (start) |
imported>AfroThundr3007730 (navbox) |
||
| Line 31: | Line 31: | ||
*{{!xt|background}} | *{{!xt|background}} | ||
| + | ==See Also== | ||
| + | {{Portal templates navbox}} | ||
<includeonly>{{sandbox other|| | <includeonly>{{sandbox other|| | ||
<!-- Categories below this line, please; interwikis at Wikidata --> | <!-- Categories below this line, please; interwikis at Wikidata --> | ||
}}</includeonly> | }}</includeonly> | ||
Revision as of 12:39, 17 July 2018
| This is a documentation subpage for Template:Box-header colour. It contains usage information, categories and other content that is not part of the original template page. |
| This template uses Lua: |
This template can be used to easily create a box-header with MOS:COLOUR-compliant colours. It is intended to mainly be used in portals, but can also be used elsewhere.
Usage
Basic:
{{Box-header colour | Title | colour= | mode= }}
With an edit link:
{{Box-header colour | Title | Page to be edited | colour= | mode= }}
Parameters
|1=(or first unnamed parameter)- Title to show in box header
|2=(or second unnamed parameter)- Optional: If included, the target page for the edit link. If not included, no edit link will be shown.
|colour=(or|color=)- Base colour to use when calculating appropriate colours. May either be a hue value (a number between
0and359), or a X11 colour name (likeaqua), or a hex triplet (like#92cor#6956D7) |mode=- Optional: How light or dark the calculated title background colour should be. Either
lightest,light,normal,dark, ordarkest, or defaults to "normal" if not specified.
Other parameters that are accepted by Template:Box-header can also be used in this template, apart from the following (which will be ignored if specified):
- title
- editpage
- noedit
- border
- titleforeground
- titlebackground
- foreground
- background