Bản mẫu:Box-header

Bách khoa toàn thư mở Wikipedia
(Đổi hướng từ Bản mẫu:Boxheader)

{{{title}}}

Tài liệu bản mẫu[xem] [sửa] [lịch sử] [làm mới]

Cách sử dụng

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.

Cú pháp

The template is not a stand-alone template and so once the box header is typed or pasted the template Box-footer must immediately follow it.

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

{{Box-header
| title=
| editpage=  <!-- Dữ liệu này phải giống nhau  -->
| noedit=
| titleforeground=
| titlebackground=
| background=
| viewpage= <!-- Dữ liệu này phải giống nhau  -->
}}

{{ <!-- Dữ liệu này phải giống nhau --> }}

{{Box-footer | văn bản }}

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=  <!-- Trường này phải giống với tên của trang trên đó. -->
| titleforeground=
| titlebackground=
| background=
}}

Nội dung hộp

{{Box-footer | văn bản }}

Mẫu

{{Box-header
| title= Trích dẫn của trích dẫn
| editpage= Box-header/mẫu
| titleforeground= white
| titlebackground= red
| background= white
}}

{{Box-header/mẫu}}

{{Box-footer| [[William Shakespeare|đọc thêm...]] }}

Trích dẫn của trích dẫn

Các thông số chính

  • editpage – by default, the "edit" link applies to the page named Bản mẫu:Box-header/. 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.

Tùy chọn hành vi

  • 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 <h2>...</h2> tags. Set |SPAN=yes (or any non-blank value) to use <span>...</span> tags instead.
  • TOC – by default, the table of contents is suppressed. Set |TOC=yes (or any non-blank value) to override this.

Tùy chọn kiểu dáng

  • 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.

Xem thêm

Thể loại theo dõi

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


Các bảng màu Box-header

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

H0

Bản mẫu:Box-header/1

{{{1}}}

Bản mẫu:Box-header/2

{{{1}}}

Bản mẫu:Box-header/3

{{{1}}}

H30

Bản mẫu:Box-header/4

{{{1}}}

Bản mẫu:Box-header/5

{{{1}}}

Bản mẫu:Box-header/6

{{{1}}}

H60

Border: H60/S15/V75 • Background: H60/S4/V100 • Header 1: H60/S40/V100 • Header 2: H60/S15/V100 • Header 3: H60/S10/V100

Bản mẫu:Box-header/7

{{{1}}}

Bản mẫu:Box-header/8

{{{1}}}

Bản mẫu:Box-header/9

{{{1}}}

H60

Bản mẫu:Box-header/10

{{{1}}}

Bản mẫu:Box-header/11

{{{1}}}

Bản mẫu:Box-header/12

{{{1}}}

H90

Bản mẫu:Box-header/13

{{{1}}}

Bản mẫu:Box-header/14

{{{1}}}

Bản mẫu:Box-header/15

{{{1}}}

H120

Bản mẫu:Box-header/16

{{{1}}}

Bản mẫu:Box-header/17

{{{1}}}

Bản mẫu:Box-header/18

{{{1}}}

H150

Bản mẫu:Box-header/19

{{{1}}}

Bản mẫu:Box-header/20

{{{1}}}

Bản mẫu:Box-header/21

{{{1}}}

H180

Bản mẫu:Box-header/22W

{{{1}}}

Bản mẫu:Box-header/22

{{{1}}}

Bản mẫu:Box-header/23

{{{1}}}

Bản mẫu:Box-header/24

{{{1}}}

H210

Bản mẫu:Box-header/25

{{{1}}}

Bản mẫu:Box-header/26

{{{1}}}

Bản mẫu:Box-header/27

{{{1}}}

H240

Bản mẫu:Box-header/28W

{{{1}}}

Bản mẫu:Box-header/28

{{{1}}}

Bản mẫu:Box-header/29

{{{1}}}

Bản mẫu:Box-header/30

{{{1}}}

H270

Bản mẫu:Box-header/31

{{{1}}}

Bản mẫu:Box-header/32

{{{1}}}

Bản mẫu:Box-header/33

{{{1}}}

H300

Bản mẫu:Box-header/34

{{{1}}}

Bản mẫu:Box-header/35

{{{1}}}

Bản mẫu:Box-header/36

{{{1}}}

H330

Bản mẫu:Box-header/37

{{{1}}}

Bản mẫu:Box-header/38

{{{1}}}

Bản mẫu:Box-header/39

{{{1}}}

H0 S0

Border: H0/S0/V75 • Background: H0/S0/V100 • Header 1: H0/S0/V75 • Header 2: H0/S0/V85 • Header 3: H0/S0/V95

Bản mẫu:Box-header/40

{{{1}}}

Bản mẫu:Box-header/41

{{{1}}}

Bản mẫu:Box-header/42

{{{1}}}

Dữ liệu bản mẫu
Đây là tài liệu Dữ liệu bản mẫu cho bản mẫu này được sử dụng bởi Trình soạn thảo trực quan và các công cụ khác; xem báo cáo sử dụng tham số hàng tháng cho bản mẫu này.

Dữ liệu bản mẫu cho Box-header

Không có miêu tả.

Tham số bản mẫu[Quản lý Dữ liệu bản mẫu]

Tham sốMiêu tảKiểuTrạng thái
Border-typeborder-type

không có miêu tả

Không rõtùy chọn
Titlebordertitleborder

không có miêu tả

Không rõtùy chọn
Borderborder

không có miêu tả

Không rõtùy chọn
Border-topborder-top

không có miêu tả

Không rõtùy chọn
Border-widthborder-width

không có miêu tả

Không rõtùy chọn
Titlebackgroundtitlebackground

không có miêu tả

Không rõtùy chọn
Titleforegroundtitleforeground

không có miêu tả

Không rõtùy chọn
Paddingpadding

không có miêu tả

Không rõtùy chọn
Padding-toppadding-top

không có miêu tả

Không rõtùy chọn
Padding-leftpadding-left

không có miêu tả

Không rõtùy chọn
Padding-rightpadding-right

không có miêu tả

Không rõtùy chọn
Padding-bottompadding-bottom

không có miêu tả

Không rõtùy chọn
Title-aligntitle-align

không có miêu tả

Không rõtùy chọn
Font-familyfont-family

không có miêu tả

Không rõtùy chọn
Titlefont-sizetitlefont-size

không có miêu tả

Không rõtùy chọn
EDITLINKEDITLINK

không có miêu tả

Không rõtùy chọn
Font-sizefont-size

không có miêu tả

Không rõtùy chọn
Noeditnoedit

không có miêu tả

Không rõtùy chọn
Editpageeditpage

không có miêu tả

Không rõtùy chọn
Sectionsection

không có miêu tả

Không rõtùy chọn
Viewpageviewpage

không có miêu tả

Không rõtùy chọn
Toptop

không có miêu tả

Không rõtùy chọn
SPANSPAN

không có miêu tả

Không rõtùy chọn
Title-font-familytitle-font-family

không có miêu tả

Không rõtùy chọn
Title-font-sizetitle-font-size

không có miêu tả

Không rõtùy chọn
Title-font-weighttitle-font-weight

không có miêu tả

Không rõtùy chọn
Extraextra

không có miêu tả

Không rõtùy chọn
Titletitle

không có miêu tả

Không rõbắt buộc
Backgroundbackground

không có miêu tả

Không rõtùy chọn
Background-opacitybackground-opacity

không có miêu tả

Không rõtùy chọn
Foregroundforeground

không có miêu tả

Không rõtùy chọn
Text-aligntext-align

không có miêu tả

Không rõtùy chọn
TOCTOC

không có miêu tả

Không rõtùy chọn
EDITEDIT

không có miêu tả

Không rõtùy chọn
Title's border radiustitle-border-radius

không có miêu tả

Ví dụ
1.5em 1.5em 0 0
Chuỗi dàitùy chọn
Content's border radiusborder-radius

không có miêu tả

Ví dụ
0 0 1.5em 1.5em
Chuỗi dàitùy chọn

Xem thêm

Bản mẫu tạo chủ đề chính

  • {{Basic portal start page}}—Used to create portal main pages.
  • {{Random portal component}}—Used on the portal main page to randomly display articles from the portal sub-pages.
    • {{Random portal component with nominate}}—Used on the portal main page to randomly display articles from the portal sub-pages, adding the option to nominate other Featured foo articles.
  • {{Random subpage}}—Used on the portal main page to randomly display articles from the portal sub-pages. This template is best used for creating randomly populated Did you know... sections on the portal main page that are intended to include multiple Did you know... facts.
  • {{Subpage}}—Used to output a box containing a link to subpage.
  • {{Numbered subpages}}—Used to create article links on portal sub-pages with 50 links.
    • {{Numbered subpages|max=25}}—As hereinbefore, but with 25 links.
    • {{Numbered subpages|max=75}}—As hereinbefore, but with 75 links.
    • {{Numbered subpages|max=100}}—As hereinbefore, but with 100 links.
  • {{Random box-header subpage}}—Used to transclude a numbered subpage.

Bản mẫu định dạng trang chủ đề chính

Bản mẫu cấu hình liên kết

Các bản mẫu này được sử dụng để định dạng các bài viết trên các trang con

{{Selected X}}—Generic template for situations not listed hereafter.

Bản mẫu liên quan