Difference between revisions of "Template:Header Box/doc"

From Nookipedia, the Animal Crossing wiki
m
m
Line 22: Line 22:
 
:;<code>left-text</code>
 
:;<code>left-text</code>
 
::The text to be displayed on the left side of the header.  
 
::The text to be displayed on the left side of the header.  
::''Default value:''Previous page
+
::''Default value: ''Previous page
  
 
:;<code>middle-text</code>
 
:;<code>middle-text</code>
 
::The text to be displayed in the center of the header. '''Optional'''.
 
::The text to be displayed in the center of the header. '''Optional'''.
::''Default value:''Middle link
+
::''Default value: ''Middle link
  
 
:;<code>right-text</code>
 
:;<code>right-text</code>
 
::The text to be displayed on the right side of the header.  
 
::The text to be displayed on the right side of the header.  
::''Default value:''Next page
+
::''Default value: ''Next page
  
 
=== Images ===
 
=== Images ===
Line 38: Line 38:
 
:;<code>left-imagesize</code>
 
:;<code>left-imagesize</code>
 
::The size of the image to be displayed on the left side of the header.  
 
::The size of the image to be displayed on the left side of the header.  
::''Default value:''30px
+
::''Default value: ''30px
  
 
:;<code>right-image</code>
 
:;<code>right-image</code>
Line 45: Line 45:
 
:;<code>right-imagesize</code>
 
:;<code>right-imagesize</code>
 
::The size of the image to be displayed on the right side of the header.  
 
::The size of the image to be displayed on the right side of the header.  
::''Default value:''30px
+
::''Default value: ''30px
  
 
=== Example ===
 
=== Example ===

Revision as of 13:10, September 25, 2020

Parameters

Appearance

border-color
The border color of the header box.
Default value: #{{ColorPrimary}}
bg-color
The background color of the header box. # symbol required for hex codes.
Default value: #{{ColorSecondary}}

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