Jump to content
Toggle sidebar
Search
Create account
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Talk
Contributions
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information
Editing
Template:Box-header/doc
Template
Discussion
English
Read
Edit
Edit source
View history
More
Read
Edit
Edit source
View history
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Documentation subpage}} {{high-use|8,593}} {{Uses Lua|Module:Box-header}} === Usage === A template standardizing the portal templates and for other purposes. If used for other purposes, note that if the TOC and EDIT parameters are missing or not set to yes, the table of contents and all section editing will be suppressed. === Syntax === The template is not a stand-alone template and so once the box header is typed or pasted the template [[template:Box-footer|<code>Box-footer</code>]] must immediately [[wikt:follow|follow]] it. This example assumes that you have a separate page containing the content, and transclude it onto the page. <syntaxhighlight lang="wikitext"> {{Box-header | title= | editpage= <!-- This data must be the same --> | noedit= | titleforeground= | titlebackground= | background= | viewpage= <!-- This data must be the same --> }} {{ <!-- This data must be the same --> }} {{Box-footer | text }} </syntaxhighlight> This example assumes that the content is entered between the header and footer. Notice that viewpage is not in there. It will not work because it links to the page you are on, and therefore Wikipedia does not link it. <syntaxhighlight lang="wikitext"> {{Box-header | title= | editpage= <!-- This field must be the same as the name of the page it is on. --> | titleforeground= | titlebackground= | background= }} Box Content {{Box-footer | text }} </syntaxhighlight> === Sample === <syntaxhighlight lang="wikitext"> {{Box-header | title= The Quotes of Quotes | editpage= Box-header/sample | titleforeground= white | titlebackground= #36c | background= white }} {{Box-header/sample}} {{Box-footer| [[William Shakespeare|more...]] }} </syntaxhighlight> {{Box-header | title= The Quotes of Quotes | editpage= Box-header/sample | titleforeground= white | titlebackground= #36c | background= white }} {{Box-header/sample}} {{Box-footer| [[William Shakespeare|more...]] }} ====Primary parameters==== *'''editpage''' β by default, the "edit" link applies to the page named [[/]]. Use this parameter to specify a different page to edit. This will normally be the page where the {{tlx|Box-header}} is used. *'''noedit''' β by default, an "edit" link is shown towards the right-hand side. Specify {{para|noedit|yes}} (or any non-blank value) to hide this. The "edit" link is also hidden if {{para|EDITLINK}} is non-blank. *'''section''' β by default, the "edit" link applies to the whole page. Use this parameter to specify the number of a specific section, e.g. {{para|section|2}} *'''title''' β the title of the box, for example {{para|title|Portals}} *'''top''' β extra text to display after the "edit" and "view" links. Hidden if {{para|EDITLINK}} is non-blank. *'''viewpage''' β if non-blank, this should be a valid Wikipedia page name, it creates a "view" link after the "edit" link. Hidden if {{para|EDITLINK}} is non-blank. ====Behaviour options==== *'''EDIT''' β by default, all section edit links are suppressed. Set {{para|EDIT|yes}} (or any non-blank value) to override this. *'''EDITLINK''' β set {{para|EDITLINK|no}} (or any non-blank value) to hide the "edit" and "view" links, and the text after those *'''SPAN''' β by default, the box title is enclosed in {{tag|h2}} tags. Set {{para|SPAN|yes}} (or any non-blank value) to use {{tag|span}} tags instead. *'''TOC''' β by default, the table of contents is suppressed. Set {{para|TOC|yes}} (or any non-blank value) to override this. ====Styling options==== *'''background''' β *'''background-opacity''' β *'''border''' β *'''border-top''' β *'''border-type''' β *'''border-width''' β *'''extra''' β *'''font-family''' β *'''font-size''' β *'''foreground''' β *'''padding''' β *'''padding-top''' β *'''padding-left''' β *'''padding-right''' β *'''padding-bottom''' β *'''text-align''' β *'''title-align''' β *'''titlebackground''' β *'''titleborder''' β *'''title-font-family''' β *'''title-font-size''' β *'''titlefont-size''' β *'''title-font-weight''' β *'''titleforeground''' β *'''title-border-radius''' β *'''border-radius''' β These are all used to set CSS styling properties, in many cases the property of the same name β for instance, {{para|background}} is used to set [http://www.w3.org/TR/CSS21/colors.html#propdef-background the 'background' property]. === See also === *{{tlx|Box-footer}} == Tracking categories == Colour combinations with poor [[MOS:ACCESS|accessibility]] (i.e. that are not [[MOS:COLOR]]-compliant) are tracked in the following categories: *[[:Category:Box-header with insufficient title contrast]] *[[:Category:Box-header with insufficient body contrast]] == Box-header color palettes == The following box-headers are examples of [[HSL and HSV|HSV]] color palettes arranged by [[hue]]. They can be copied to your portal's <code>/box-header</code> subpage, or used directly on the portal page (preferred). Note that the second parameter for the edit link is optional; if not defined then no link will be displayed. {{center| '''Border: Hn/S15/V75 β’ Background: Hn/S4/V100 β’ Header 1: Hn/S40/V85 β’ Header 2: Hn/S15/V95 β’ Header 3: Hn/S10/V100''' }} === H0 === [[Template:Box-header/1]] {{Box-header/1|2={{{2}}}}} {{Box-footer}} [[Template:Box-header/2]] {{Box-header/2|2={{{2}}}}} {{Box-footer}} [[Template:Box-header/3]] {{Box-header/3|2={{{2}}}}} {{Box-footer}} === H30 === [[Template:Box-header/4]] {{Box-header/4|2={{{2}}}}} {{Box-footer}} [[Template:Box-header/5]] {{Box-header/5|2={{{2}}}}} {{Box-footer}} [[Template:Box-header/6]] {{Box-header/6|2={{{2}}}}} {{Box-footer}} === H60 === {{center| '''Border: H60/S15/V75 β’ Background: H60/S4/V100 β’ Header 1: H60/S40/V100 β’ Header 2: H60/S15/V100 β’ Header 3: H60/S10/V100''' }} [[Template:Box-header/7]] {{Box-header/7|2={{{2}}}}} {{Box-footer}} [[Template:Box-header/8]] {{Box-header/8|2={{{2}}}}} {{Box-footer}} [[Template:Box-header/9]] {{Box-header/9|2={{{2}}}}} {{Box-footer}} === H60 === [[Template:Box-header/10]] {{Box-header/10|2={{{2}}}}} {{Box-footer}} [[Template:Box-header/11]] {{Box-header/11|2={{{2}}}}} {{Box-footer}} [[Template:Box-header/12]] {{Box-header/12|2={{{2}}}}} {{Box-footer}} === H90 === [[Template:Box-header/13]] {{Box-header/13|2={{{2}}}}} {{Box-footer}} [[Template:Box-header/14]] {{Box-header/14|2={{{2}}}}} {{Box-footer}} [[Template:Box-header/15]] {{Box-header/15|2={{{2}}}}} {{Box-footer}} === H120 === [[Template:Box-header/16]] {{Box-header/16|2={{{2}}}}} {{Box-footer}} [[Template:Box-header/17]] {{Box-header/17|2={{{2}}}}} {{Box-footer}} [[Template:Box-header/18]] {{Box-header/18|2={{{2}}}}} {{Box-footer}} === H150 === [[Template:Box-header/19]] {{Box-header/19|2={{{2}}}}} {{Box-footer}} [[Template:Box-header/20]] {{Box-header/20|2={{{2}}}}} {{Box-footer}} [[Template:Box-header/21]] {{Box-header/21|2={{{2}}}}} {{Box-footer}} === H180 === [[Template:Box-header/22W]] {{Box-header/22W|2={{{2}}}}} {{Box-footer}} [[Template:Box-header/22]] {{Box-header/22|2={{{2}}}}} {{Box-footer}} [[Template:Box-header/23]] {{Box-header/23|2={{{2}}}}} {{Box-footer}} [[Template:Box-header/24]] {{Box-header/24|2={{{2}}}}} {{Box-footer}} === H210 === [[Template:Box-header/25]] {{Box-header/25|2={{{2}}}}} {{Box-footer}} [[Template:Box-header/26]] {{Box-header/26|2={{{2}}}}} {{Box-footer}} [[Template:Box-header/27]] {{Box-header/27|2={{{2}}}}} {{Box-footer}} === H240 === [[Template:Box-header/28W]] {{Box-header/28W|2={{{2}}}}} {{Box-footer}} [[Template:Box-header/28]] {{Box-header/28|2={{{2}}}}} {{Box-footer}} [[Template:Box-header/29]] {{Box-header/29|2={{{2}}}}} {{Box-footer}} [[Template:Box-header/30]] {{Box-header/30|2={{{2}}}}} {{Box-footer}} === H270 === [[Template:Box-header/31]] {{Box-header/31|2={{{2}}}}} {{Box-footer}} [[Template:Box-header/32]] {{Box-header/32|2={{{2}}}}} {{Box-footer}} [[Template:Box-header/33]] {{Box-header/33|2={{{2}}}}} {{Box-footer}} === H300 === [[Template:Box-header/34]] {{Box-header/34|2={{{2}}}}} {{Box-footer}} [[Template:Box-header/35]] {{Box-header/35|2={{{2}}}}} {{Box-footer}} [[Template:Box-header/36]] {{Box-header/36|2={{{2}}}}} {{Box-footer}} === H330 === [[Template:Box-header/37]] {{Box-header/37|2={{{2}}}}} {{Box-footer}} [[Template:Box-header/38]] {{Box-header/38|2={{{2}}}}} {{Box-footer}} [[Template:Box-header/39]] {{Box-header/39|2={{{2}}}}} {{Box-footer}} === H0 S0 === {{center| '''Border: H0/S0/V75 β’ Background: H0/S0/V100 β’ Header 1: H0/S0/V75 β’ Header 2: H0/S0/V85 β’ Header 3: H0/S0/V95''' }} [[Template:Box-header/40W]] {{Box-header/40W|2={{{2}}}}} {{Box-footer}} [[Template:Box-header/40]] {{Box-header/40|2={{{2}}}}} {{Box-footer}} [[Template:Box-header/41]] {{Box-header/41|2={{{2}}}}} {{Box-footer}} [[Template:Box-header/42]] {{Box-header/42|2={{{2}}}}} {{Box-footer}} {{cot|TemplateData}} {{TemplateData header}} <templatedata> { "params": { "border-type": { "required": false, "label": "Border-type" }, "titleborder": { "required": false, "label": "Titleborder" }, "border": { "required": false, "label": "Border" }, "border-top": { "required": false, "label": "Border-top" }, "border-width": { "required": false, "label": "Border-width" }, "titlebackground": { "required": false, "label": "Titlebackground" }, "titleforeground": { "required": false, "label": "Titleforeground" }, "padding": { "required": false, "label": "Padding" }, "padding-top": { "required": false, "label": "Padding-top" }, "padding-left": { "required": false, "label": "Padding-left" }, "padding-right": { "required": false, "label": "Padding-right" }, "padding-bottom": { "required": false, "label": "Padding-bottom" }, "title-align": { "required": false, "label": "Title-align" }, "font-family": { "required": false, "label": "Font-family" }, "titlefont-size": { "required": false, "label": "Titlefont-size" }, "EDITLINK": { "required": false, "label": "EDITLINK" }, "font-size": { "required": false, "label": "Font-size" }, "noedit": { "required": false, "label": "Noedit" }, "editpage": { "required": false, "label": "Editpage" }, "section": { "required": false, "label": "Section" }, "viewpage": { "required": false, "label": "Viewpage" }, "top": { "required": false, "label": "Top" }, "SPAN": { "required": false, "label": "SPAN" }, "title-font-family": { "required": false, "label": "Title-font-family" }, "title-font-size": { "required": false, "label": "Title-font-size" }, "title-font-weight": { "required": false, "label": "Title-font-weight" }, "extra": { "required": false, "label": "Extra" }, "title": { "required": true, "label": "Title" }, "background": { "required": false, "label": "Background" }, "background-opacity": { "required": false, "label": "Background-opacity" }, "foreground": { "required": false, "label": "Foreground" }, "text-align": { "required": false, "label": "Text-align" }, "TOC": { "required": false, "label": "TOC" }, "EDIT": { "required": false, "label": "EDIT" }, "title-border-radius": { "label": "Title's border radius", "example": "1.5em 1.5em 0 0", "type": "string" }, "border-radius": { "label": "Content's border radius", "example": "0 0 1.5em 1.5em", "type": "string" } } } </templatedata> {{cob}} == See also == {{Portal template list}} <includeonly>{{Sandbox other|| [[Category:Wikipedia Portal templates]] [[Category:Box templates]] }}</includeonly>
Summary:
Please note that all contributions to Adwiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Adwiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Blockquote
(
edit
)
Template:Blockquote/styles.css
(
edit
)
Template:Box-footer
(
edit
)
Template:Box-header
(
edit
)
Template:Box-header/1
(
edit
)
Template:Box-header/10
(
edit
)
Template:Box-header/11
(
edit
)
Template:Box-header/12
(
edit
)
Template:Box-header/13
(
edit
)
Template:Box-header/14
(
edit
)
Template:Box-header/15
(
edit
)
Template:Box-header/16
(
edit
)
Template:Box-header/17
(
edit
)
Template:Box-header/18
(
edit
)
Template:Box-header/19
(
edit
)
Template:Box-header/2
(
edit
)
Template:Box-header/20
(
edit
)
Template:Box-header/21
(
edit
)
Template:Box-header/22
(
edit
)
Template:Box-header/22W
(
edit
)
Template:Box-header/23
(
edit
)
Template:Box-header/24
(
edit
)
Template:Box-header/25
(
edit
)
Template:Box-header/26
(
edit
)
Template:Box-header/27
(
edit
)
Template:Box-header/28
(
edit
)
Template:Box-header/28W
(
edit
)
Template:Box-header/29
(
edit
)
Template:Box-header/3
(
edit
)
Template:Box-header/30
(
edit
)
Template:Box-header/31
(
edit
)
Template:Box-header/32
(
edit
)
Template:Box-header/33
(
edit
)
Template:Box-header/34
(
edit
)
Template:Box-header/35
(
edit
)
Template:Box-header/36
(
edit
)
Template:Box-header/37
(
edit
)
Template:Box-header/38
(
edit
)
Template:Box-header/39
(
edit
)
Template:Box-header/4
(
edit
)
Template:Box-header/40
(
edit
)
Template:Box-header/40W
(
edit
)
Template:Box-header/41
(
edit
)
Template:Box-header/42
(
edit
)
Template:Box-header/5
(
edit
)
Template:Box-header/6
(
edit
)
Template:Box-header/7
(
edit
)
Template:Box-header/8
(
edit
)
Template:Box-header/9
(
edit
)
Template:Box-header/sample
(
edit
)
Template:Category link
(
edit
)
Template:Center
(
edit
)
Template:Cl
(
edit
)
Template:Clear
(
edit
)
Template:Cob
(
edit
)
Template:Collapse bottom
(
edit
)
Template:Collapse top
(
edit
)
Template:Comma separated entries
(
edit
)
Template:Cot
(
edit
)
Template:Div col
(
edit
)
Template:Div col/styles.css
(
edit
)
Template:Div col end
(
edit
)
Template:Documentation subpage
(
edit
)
Template:High-use
(
edit
)
Template:Hlist/styles.css
(
edit
)
Template:If empty
(
edit
)
Template:Lua
(
edit
)
Template:Main other
(
edit
)
Template:Mbox
(
edit
)
Template:Navbar
(
edit
)
Template:Navbox
(
edit
)
Template:Para
(
edit
)
Template:Portal template list
(
edit
)
Template:Portal templates navbox
(
edit
)
Template:Quote
(
edit
)
Template:Sandbox other
(
edit
)
Template:Strong
(
edit
)
Template:Tag
(
edit
)
Template:TemplateData header
(
edit
)
Template:Template link
(
edit
)
Template:Template link expanded
(
edit
)
Template:Template other
(
edit
)
Template:Template parameter usage
(
edit
)
Template:Terminate sentence
(
edit
)
Template:Tl
(
edit
)
Template:Tlx
(
edit
)
Template:Uses Lua
(
edit
)
Template:Yesno
(
edit
)
Template:Yesno-no
(
edit
)
Module:Arguments
(
edit
)
Module:Box-header
(
edit
)
Module:Box-header/colours
(
edit
)
Module:Check for unknown parameters
(
edit
)
Module:Color contrast
(
edit
)
Module:Color contrast/colors
(
edit
)
Module:High-use
(
edit
)
Module:If empty
(
edit
)
Module:List
(
edit
)
Module:Lua banner
(
edit
)
Module:Message box
(
edit
)
Module:Message box/configuration
(
edit
)
Module:Message box/ombox.css
(
edit
)
Module:Navbar
(
edit
)
Module:Navbar/configuration
(
edit
)
Module:Navbar/styles.css
(
edit
)
Module:Navbox
(
edit
)
Module:Navbox/configuration
(
edit
)
Module:Navbox/styles.css
(
edit
)
Module:Separated entries
(
edit
)
Module:String
(
edit
)
Module:TableTools
(
edit
)
Module:Template link general
(
edit
)
Module:Text
(
edit
)
Module:Transclusion count
(
edit
)
Module:Transclusion count/data/B
(
edit
)
Module:Yesno
(
edit
)