Difference between revisions of "Template:Header Box/doc"
From Nookipedia, the Animal Crossing wiki
m (→Parameters) |
SuperHamster (talk | contribs) (→Appearance: Updating color defaults) |
||
(7 intermediate revisions by 3 users not shown) | |||
Line 2: | Line 2: | ||
=== Appearance === | === Appearance === | ||
:;<code>border-color</code> | :;<code>border-color</code> | ||
− | ::The border color of the header box. | + | ::The border color of the header box. If no value is entered the border will not appear. |
− | ::''Default value:'' | + | |
+ | :;<code>cell-border</code> | ||
+ | ::The color of the horizontal line in the mobile version of the template. If there is a value for <code>border-color</code> its thickness will be 3px, otherwise its thickness is 1px. | ||
+ | ::''Default value:'' Derived from site theme | ||
:;<code>bg-color</code> | :;<code>bg-color</code> | ||
::The background color of the header box. # symbol required for hex codes. | ::The background color of the header box. # symbol required for hex codes. | ||
− | ::''Default value:'' | + | ::''Default value:'' Derived from site theme |
=== Links === | === Links === | ||
Line 51: | Line 54: | ||
{{Header Box | {{Header Box | ||
|border-color = #4F9FC6 | |border-color = #4F9FC6 | ||
+ | |cell-border = #4F9FC6 | ||
|bg-color = #66CCFF | |bg-color = #66CCFF | ||
|left-link = Barred Knifejaw | |left-link = Barred Knifejaw | ||
Line 67: | Line 71: | ||
{{Header Box | {{Header Box | ||
|border-color = #4F9FC6 | |border-color = #4F9FC6 | ||
+ | |cell-border = #4F9FC6 | ||
|bg-color = #66CCFF | |bg-color = #66CCFF | ||
|left-link = Barred Knifejaw | |left-link = Barred Knifejaw | ||
Line 79: | Line 84: | ||
|right-imagesize = 32px | |right-imagesize = 32px | ||
}} | }} | ||
+ | |||
+ | == Notes == | ||
+ | * This template is based on and borrows bits of wikicode from [[Template:Villager Header]]. |
Latest revision as of 01:00, April 4, 2021
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
Links
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
- This template is based on and borrows bits of wikicode from Template:Villager Header.