Cebur nuju daging

Mal:Box-header/doc

Saking Wikipédia

Mal:Uses Lua

Usage

[uah wit]

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

[uah wit]

The template is not a stand-alone template; it requires {{Box-footer}} after the content that is inside the box.

This example assumes that you have a separate page containing the content, and transclude it onto the page.

{{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 }}

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.

{{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 }}

Sample

[uah wit]
{{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...]] }}

Lua error ring package.lua baris 80: module 'Module:Box-header/colours' not found.

Mal:Box-header/sample

Primary parameters

[uah wit]
  • editpage – by default, the "edit" link applies to the page named Mal:Box-header/doc/. Use this parameter to specify a different page to edit. This will normally be the page where the {{Box-header}} is used.
  • noedit – by default, an "edit" link is shown towards the right-hand side. Specify |noedit=yes (or any non-blank value) to hide this. The "edit" link is also hidden if |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. |section=2
  • title – the title of the box, for example |title=Portals
  • top – extra text to display after the "edit" and "view" links. Hidden if |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 |EDITLINK= is non-blank.

Behaviour options

[uah wit]
  • EDIT – by default, all section edit links are suppressed. Set |EDIT=yes (or any non-blank value) to override this.
  • EDITLINK – set |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 Mal:Tag tags. Set |SPAN=yes (or any non-blank value) to use Mal:Tag tags instead.
  • TOC – by default, the table of contents is suppressed. Set |TOC=yes (or any non-blank value) to override this.

Styling options

[uah wit]
  • 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, |background= is used to set the 'background' property.

See also

[uah wit]

Tracking categories

[uah wit]

Colour combinations with poor (i.e. that are not -compliant) are tracked in the following categories:


Box-header color palettes

[uah wit]

The following box-headers are examples of HSV color palettes arranged by hue. They can be copied to your portal's /box-header 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.

Border: Hn/S15/V75 • Background: Hn/S4/V100 • Header 1: Hn/S40/V85 • Header 2: Hn/S15/V95 • Header 3: Hn/S10/V100

Template:Box-header/1 Mal:Box-header/1

Template:Box-header/2 Mal:Box-header/2

Template:Box-header/3 Mal:Box-header/3

H30

[uah wit]

Template:Box-header/4 Mal:Box-header/4

Template:Box-header/5 Mal:Box-header/5

Template:Box-header/6 Mal:Box-header/6

H60

[uah wit]

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 Mal:Box-header/7

Template:Box-header/8 Mal:Box-header/8

Template:Box-header/9 Mal:Box-header/9

H60

[uah wit]

Template:Box-header/10 Mal:Box-header/10

Template:Box-header/11 Mal:Box-header/11

Template:Box-header/12 Mal:Box-header/12

H90

[uah wit]

Template:Box-header/13 Mal:Box-header/13

Template:Box-header/14 Mal:Box-header/14

Template:Box-header/15 Mal:Box-header/15

H120

[uah wit]

Template:Box-header/16 Mal:Box-header/16

Template:Box-header/17 Mal:Box-header/17

Template:Box-header/18 Mal:Box-header/18

H150

[uah wit]

Template:Box-header/19 Mal:Box-header/19

Template:Box-header/20 Mal:Box-header/20

Template:Box-header/21 Mal:Box-header/21

H180

[uah wit]

Template:Box-header/22W Mal:Box-header/22W

Template:Box-header/22 Mal:Box-header/22

Template:Box-header/23 Mal:Box-header/23

Template:Box-header/24 Mal:Box-header/24

H210

[uah wit]

Template:Box-header/25 Mal:Box-header/25

Template:Box-header/26 Mal:Box-header/26

Template:Box-header/27 Mal:Box-header/27

H240

[uah wit]

Template:Box-header/28W Mal:Box-header/28W

Template:Box-header/28 Mal:Box-header/28

Template:Box-header/29 Mal:Box-header/29

Template:Box-header/30 Mal:Box-header/30

H270

[uah wit]

Template:Box-header/31 Mal:Box-header/31

Template:Box-header/32 Mal:Box-header/32

Template:Box-header/33 Mal:Box-header/33

H300

[uah wit]

Template:Box-header/34 Mal:Box-header/34

Template:Box-header/35 Mal:Box-header/35

Template:Box-header/36 Mal:Box-header/36

H330

[uah wit]

Template:Box-header/37 Mal:Box-header/37

Template:Box-header/38 Mal:Box-header/38

Template:Box-header/39 Mal:Box-header/39

H0 S0

[uah wit]

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 Mal:Box-header/40W

Template:Box-header/40 Mal:Box-header/40

Template:Box-header/41 Mal:Box-header/41

Template:Box-header/42 Mal:Box-header/42

TemplateData
Ini dokumennya TemplateData untuk template ini digunakan oleh VisualEditor dan alat lainnya; see a monthly parameter usage report for this template in articles.

TemplateData untuk Box-header

Tanpa pidarta.

Paraméter mal

ParaméterDéskripsiSorohStatus
Border-typeborder-type

tanpa pidarta.

Nénten kauningindadi-dadi
Titlebordertitleborder

tanpa pidarta.

Nénten kauningindadi-dadi
Borderborder

tanpa pidarta.

Nénten kauningindadi-dadi
Border-topborder-top

tanpa pidarta.

Nénten kauningindadi-dadi
Border-widthborder-width

tanpa pidarta.

Nénten kauningindadi-dadi
Titlebackgroundtitlebackground

tanpa pidarta.

Nénten kauningindadi-dadi
Titleforegroundtitleforeground

tanpa pidarta.

Nénten kauningindadi-dadi
Paddingpadding

tanpa pidarta.

Nénten kauningindadi-dadi
Padding-toppadding-top

tanpa pidarta.

Nénten kauningindadi-dadi
Padding-leftpadding-left

tanpa pidarta.

Nénten kauningindadi-dadi
Padding-rightpadding-right

tanpa pidarta.

Nénten kauningindadi-dadi
Padding-bottompadding-bottom

tanpa pidarta.

Nénten kauningindadi-dadi
Title-aligntitle-align

tanpa pidarta.

Nénten kauningindadi-dadi
Font-familyfont-family

tanpa pidarta.

Nénten kauningindadi-dadi
Titlefont-sizetitlefont-size

tanpa pidarta.

Nénten kauningindadi-dadi
EDITLINKEDITLINK

tanpa pidarta.

Nénten kauningindadi-dadi
Font-sizefont-size

tanpa pidarta.

Nénten kauningindadi-dadi
Noeditnoedit

tanpa pidarta.

Nénten kauningindadi-dadi
Editpageeditpage

tanpa pidarta.

Nénten kauningindadi-dadi
Sectionsection

tanpa pidarta.

Nénten kauningindadi-dadi
Viewpageviewpage

tanpa pidarta.

Nénten kauningindadi-dadi
Toptop

tanpa pidarta.

Nénten kauningindadi-dadi
SPANSPAN

tanpa pidarta.

Nénten kauningindadi-dadi
Title-font-familytitle-font-family

tanpa pidarta.

Nénten kauningindadi-dadi
Title-font-sizetitle-font-size

tanpa pidarta.

Nénten kauningindadi-dadi
Title-font-weighttitle-font-weight

tanpa pidarta.

Nénten kauningindadi-dadi
Extraextra

tanpa pidarta.

Nénten kauningindadi-dadi
Titletitle

tanpa pidarta.

Nénten kauninginperlu
Backgroundbackground

tanpa pidarta.

Nénten kauningindadi-dadi
Background-opacitybackground-opacity

tanpa pidarta.

Nénten kauningindadi-dadi
Foregroundforeground

tanpa pidarta.

Nénten kauningindadi-dadi
Text-aligntext-align

tanpa pidarta.

Nénten kauningindadi-dadi
TOCTOC

tanpa pidarta.

Nénten kauningindadi-dadi
EDITEDIT

tanpa pidarta.

Nénten kauningindadi-dadi
Title's border radiustitle-border-radius

tanpa pidarta.

Conto
1.5em 1.5em 0 0
Krunadadi-dadi
Content's border radiusborder-radius

tanpa pidarta.

Conto
0 0 1.5em 1.5em
Krunadadi-dadi

See also

[uah wit]

Mal:Portal template list