Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Template:Box-header colour

Permanently protected template
From Wikipedia, the free encyclopedia

{{{1}}}

Template documentation[view] [edit] [history] [purge]
WarningThis template is used onapproximately 2,900 pages and changes may be widely noticed. Test changes in the template's/sandbox or/testcases subpages, or in your ownuser subpage. Consider discussing changes on thetalk page before implementing them.
This template usesLua:

This template can be used to easily create a box-header withMOS: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: the target page for the edit link.
If not included, no edit link will be shown.
|colour=(or|color=)
Optional: Base colour to use when calculating appropriate colours. May either be ahue value (a number between0 and359), or aX11 colour name (likeaqua), or ahex triplet (like#92c or#6956D7)
If not specified, a "random" colour will be chosen (based on the characters in the root page name)
|mode=
Optional: How light or dark the calculated title background colour should be. Eitherlightest,light,normal,dark, ordarkest
Defaults to "normal" if not specified.

Other parameters that are accepted byTemplate: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

See Also

Portal templates
Layout and formatting
Content transclusion
Content slideshows
Content randomisation
General
Linking templates
Talk pages / Maintenance
Images
Modules
Usage
The abovedocumentation istranscluded fromTemplate:Box-header colour/doc.(edit |history)
Editors can experiment in this template'ssandbox(edit |diff) andtestcases(edit) pages.
Add categories to the/doc subpage.Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Box-header_colour&oldid=921747879"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp