This is a documentation subpage for Template:Header/main block. It may contain usage information, categories and other content that is not part of the original template page. |
The pages listed in this category are templates.
This page is part of OODA WIKI's administration and not part of the encyclopedia.
Further template category notes
This category contains pages in the template namespace. It should not be used to categorize articles or pages in other namespaces. To add a template to this category:
|
This category is an index of templates which use TemplateStyles. It is automatically populated by {{Uses TemplateStyles}}.
Usage
Helper template to abstract layout of a header template "main block" (the block that contains the title and the next/previous links).
The template is intended for use by templates like {{header}} and {{author}} to centralise the layout code.
|class=
class of the main container|style=
style of the main container|previous=
previous content (free wikicode, optional)|pretitle=
"pretitle" content (free wikicode, optional). Usually used by intermediate templates for text like "Versions of" that's not part of the main title|title=
main "title" content (free wikicode, optional)|next=
next content (free wikicode, optional)
{{Header/main block | style = border:1px solid green; background-color: #eee; | previous = Previous | next = Next | pretitle = Pretitle content | title = Title content }}
←
Previous
Pretitle content
Title content
Title content
Next
→
Technical
- This template applies the class
.header-mainblock
, which is used by the global CSS from MediaWiki:Gadget-SiteHeader.css to target responsive styling. - The three field have the following classes:
.gen_header_backlink
.gen_header_center_cell
: the middle cell.gen_header_pretitle
: the title content (not the main title).gen_header_title
: the title content (not the pretitle)
.gen_header_forelink
See also
- Generic templates that can use this:
- {{header}}
- {{author}}
- {{portal header}}
- {{process header}}
Tracking categories
- Category:Pages calling header main block with class (26)
- Category:Pages calling header main block with style (2)