Difference between revisions of "Template:Header"

From Geohashing
imported>ChromeCrusaders
imported>ChromeCrusaders
 
(64 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{headertemplate
+
<includeonly>
|{{{Heading name}}}
+
 
|image       = {{{image}}} <!-- Required, set the image to be used in the banner. the "File:" prefix is not needed-->
+
{{HeaderLayout
|image_size  = {{{image_size}}}<!-- changes the image size, defaults to 100px. The "px" is not needed -->
+
 
|project     = {{{project}}}<!-- Required, set the name of the project -->
+
|User            = {{{User}}}
|shortcut    = {{{shortcut}}}<!-- places a standard shortcut box on the right side of the box -->
+
|image           = {{{image}}}
|border       = {{{border}}}<!-- sets border color, defaults to gray. -->
+
|icon            = {{{icon}}}
|bgcolor      = dodgerblue
+
|Image_Size     = {{{Image_Size}}}
 +
|Icon_Size      = {{{Ion_Size}}}
 +
|project         = {{{Project}}}
 +
|link            = {{{link}}}
 +
|bgcolor        = {{{bgcolor}}}
 +
|textalign       = {{{algin}}}
 +
|customtitle    = {{{customtitle}}}
 +
 
 +
 
 +
 
 
}}
 
}}
 +
 +
</includeonly><noinclude>
 +
 +
 +
== TO DO: Add Text Colour ==
 +
 +
 +
'''How to use this template:'''
 +
 +
Copy this and change it as required:
 +
 +
&#x007B;{Header
 +
:|User = '''Put your user name here, or what ever you want the main text to say, may need a prefix.'''
 +
:|icon = '''The left image.'''
 +
:|image = '''The right image.'''
 +
:|Image_Size = '''The right image size - around 500'''
 +
:|Icon_Size = '''The icon size - possibly broken :/'''
 +
:|bgcolor = '''The background colour, see https://en.wikipedia.org/wiki/Web_colors "HTML Colour Names"'''
 +
:|customtitle = '''The top bit, I used "Welcome to"'''
 +
}}
 +
 +
The image name should not include 'Image:' or surrounding braces.
 +
 +
'''Example:'''
 +
<pre><nowiki>{{Header
 +
|User = The Chrome Crusaders
 +
|icon = MotorcycleGeohash.png
 +
|image = profile2.jpg
 +
|Image_Size = 500
 +
|Icon_Size = 10
 +
|bgcolor = teal
 +
|customtitle = Welcome To
 +
}}</nowiki></pre>
 +
 +
 +
Which ''Should'' look like this:
 +
 +
{{Header
 +
|User = The Chrome Crusaders
 +
|icon = MotorcycleGeohash.png
 +
|image = profile2.jpg
 +
|Image_Size = 500
 +
|Icon_Size = 10
 +
|bgcolor = teal
 +
|customtitle = Welcome To
 +
 +
}}
 +
</noinclude>

Latest revision as of 01:06, 30 March 2015


TO DO: Add Text Colour

How to use this template:

Copy this and change it as required:

{{Header

|User = Put your user name here, or what ever you want the main text to say, may need a prefix.
|icon = The left image.
|image = The right image.
|Image_Size = The right image size - around 500
|Icon_Size = The icon size - possibly broken :/
|bgcolor = The background colour, see https://en.wikipedia.org/wiki/Web_colors "HTML Colour Names"
|customtitle = The top bit, I used "Welcome to"

}}

The image name should not include 'Image:' or surrounding braces.

Example:

{{Header
|User = The Chrome Crusaders
|icon = MotorcycleGeohash.png
|image = profile2.jpg
|Image_Size = 500
|Icon_Size = 10
|bgcolor = teal
|customtitle = Welcome To
}}


Which Should look like this:


{{{Ion_Size}}}px
Welcome To The Chrome Crusaders


Profile2.jpg