Template:Header Box: Difference between revisions

From RosieSoCrossing
Created page with "<div class="nomobile" style="text-align:center; width:100%;"> {| class="headerbox {{{colorclass|}}}" style="width:100%; {{#if:{{{bg-color|}}}|background-color:{{{bg-color|}}};|}} border-spacing:0px; {{#if:{{{border-color|}}}|border: 3px solid {{{border-color|}}};|}} margin-bottom:20px; {{Roundy|30px}}; padding:6px 14px;" |- | style="width:35%; text-align:left;" | [[{{{left-link|Template:Header Box/doc}}}|{{Colorshow|333|←}}]] {{#if:{{{left-image|<noinclude>yes</noinclu..."
 
No edit summary
 
Line 1: Line 1:
<div class="nomobile" style="text-align:center; width:100%;">
<div class="nomobile" style="text-align:center; width:100%;">
{| class="headerbox {{{colorclass|}}}" style="width:100%; {{#if:{{{bg-color|}}}|background-color:{{{bg-color|}}};|}} border-spacing:0px; {{#if:{{{border-color|}}}|border: 3px solid {{{border-color|}}};|}} margin-bottom:20px; {{Roundy|30px}}; padding:6px 14px;"
{| class="headerbox {{{colorclass|}}}" style="width:100%; {{#if:{{{bg-color|}}}|background-color:{{{bg-color|}}};|}} border-spacing:0px; {{#if:{{{border-color|}}}|border: 3px solid {{{border-color|}}};|}} margin-bottom:20px; padding:6px 14px; {{Roundy|30px}};"
|-
|-
| style="width:35%; text-align:left;" | [[{{{left-link|Template:Header Box/doc}}}|{{Colorshow|333|←}}]] {{#if:{{{left-image|<noinclude>yes</noinclude>}}}|[[{{{left-image|<noinclude>File:Tom Nook NH Character Icon.png</noinclude>}}}|{{{left-imagesize|30px}}}|link={{{left-link|<noinclude>Template:Header Box/doc</noinclude>}}}]]|}}{{#if:{{{left-image2|<noinclude>yes</noinclude>}}}|[[{{{left-image2|<noinclude>File:Nooklings NH Character Icon.png</noinclude>}}}|{{{left-imagesize2|30px}}}|link={{{left-link|<noinclude>Template:Header Box/doc</noinclude>}}}]]|}} [[{{{left-link|Template:Header Box/doc}}}|{{Colorshow|333|{{{left-text|Previous page}}}}}]]
| style="width:35%; text-align:left;" | [[{{{left-link|Template:Header Box/doc}}}|{{Colorshow|333|←}}]] {{#if:{{{left-image|<noinclude>yes</noinclude>}}}|[[{{{left-image|<noinclude>File:Tom Nook NH Character Icon.png</noinclude>}}}|{{{left-imagesize|30px}}}|link={{{left-link|<noinclude>Template:Header Box/doc</noinclude>}}}]]|}}{{#if:{{{left-image2|<noinclude>yes</noinclude>}}}|[[{{{left-image2|<noinclude>File:Nooklings NH Character Icon.png</noinclude>}}}|{{{left-imagesize2|30px}}}|link={{{left-link|<noinclude>Template:Header Box/doc</noinclude>}}}]]|}} [[{{{left-link|Template:Header Box/doc}}}|{{Colorshow|333|{{{left-text|Previous page}}}}}]]

Latest revision as of 21:06, 20 January 2026

Template documentation (view)


Parameters

Appearance

border-color
The border color of the header box. If no value is entered the border will not appear.
cell-border
The color of the horizontal line in the mobile version of the template. If there is a value for border-color its thickness will be 3px, otherwise its thickness is 1px.
Default value: Derived from site theme
bg-color
The background color of the header box. # symbol required for hex codes.
Default value: Derived from site theme
left-link
The page to be linked to on the left side of the header.
middle-link
The page to be linked to in the center of the header. Optional.
right-link
The page to be linked to on the right side of the header.

Text

left-text
The text to be displayed on the left side of the header.
Default value: Previous page
middle-text
The text to be displayed in the center of the header. Optional.
Default value: Middle link
right-text
The text to be displayed on the right side of the header.
Default value: Next page

Images

left-image
The image to be displayed on the left side of the header.
left-imagesize
The size of the image to be displayed on the left side of the header.
Default value: 30px
right-image
The image to be displayed on the right side of the header.
right-imagesize
The size of the image to be displayed on the right side of the header.
Default value: 30px

Example

{{Header Box
|border-color    = #4F9FC6
|cell-border     = #4F9FC6
|bg-color        = #66CCFF
|left-link       = Barred Knifejaw
|left-text       = Barred Knifejaw
|middle-link     = Fish/New Horizons
|middle-text     = {{NH|short|nolink}} fish
|right-link      = Red Snapper
|right-text      = Red Snapper
|left-image      = File:Barred Knifejaw NH Icon.png
|left-imagesize  = 30px
|right-image     = File:Red Snapper NH Icon.png
|right-imagesize = 32px
}}

Notes