Template:Box-header/doc: Difference between revisions

From BoyWiki
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 40: Line 40:
</pre>
</pre>


=== Sample ===


<pre>
{{Box-header
| title= The Quotes of Quotes
| editpage= Box-header/sample
| titleforeground= white
| titlebackground= red
| background= white
}}
{{Box-header/sample}}
{{Box-footer| [[William Shakespeare|more...]] }}
</pre>
{{Box-header
| title= The Quotes of Quotes
| editpage= Box-header/sample
| titleforeground= white
| titlebackground= red
| background= white
}}
{{Box-header/sample}}
{{Box-footer| [[William Shakespeare|more...]] }}
=== See also ===
[[Template:Box-footer|<code>Box-footer</code>]]
== Box-header color palettes ==
The following box-headers are examples of [[HSL and HSV|HSV]] color palettes arranged by [[hue]]. They can be copied to your portal's <code>/box-header</code> subpage.
{{center|
'''Border: Hn/S15/V75&nbsp;• Background: Hn/S4/V100&nbsp;• Header 1: Hn/S40/V85&nbsp;• Header 2: Hn/S15/V95&nbsp;• Header 3: Hn/S10/V100'''
}}
=== H0 ===
[[Template:Box-header/1]]
{{Box-header/1}}
{{Box-footer}}
[[Template:Box-header/2]]
{{Box-header/2}}
{{Box-footer}}
[[Template:Box-header/3]]
{{Box-header/3}}
{{Box-footer}}
=== H30 ===
[[Template:Box-header/4]]
{{Box-header/4}}
{{Box-footer}}
[[Template:Box-header/5]]
{{Box-header/5}}
{{Box-footer}}
[[Template:Box-header/6]]
{{Box-header/6}}
{{Box-footer}}
=== H60 ===
{{center|
'''Border: H60/S15/V75&nbsp;• Background: H60/S4/V100&nbsp;• Header 1: H60/S40/V100&nbsp;• Header 2: H60/S15/V100&nbsp;• Header 3: H60/S10/V100'''
}}
[[Template:Box-header/7]]
{{Box-header/7}}
{{Box-footer}}
[[Template:Box-header/8]]
{{Box-header/8}}
{{Box-footer}}
[[Template:Box-header/9]]
{{Box-header/9}}
{{Box-footer}}
=== H60 ===
[[Template:Box-header/10]]
{{Box-header/10}}
{{Box-footer}}
[[Template:Box-header/11]]
{{Box-header/11}}
{{Box-footer}}
[[Template:Box-header/12]]
{{Box-header/12}}
{{Box-footer}}
=== H90 ===
[[Template:Box-header/13]]
{{Box-header/13}}
{{Box-footer}}
[[Template:Box-header/14]]
{{Box-header/14}}
{{Box-footer}}
[[Template:Box-header/15]]
{{Box-header/15}}
{{Box-footer}}
=== H120 ===
[[Template:Box-header/16]]
{{Box-header/16}}
{{Box-footer}}
[[Template:Box-header/17]]
{{Box-header/17}}
{{Box-footer}}
[[Template:Box-header/18]]
{{Box-header/18}}
{{Box-footer}}
=== H150 ===
[[Template:Box-header/19]]
{{Box-header/19}}
{{Box-footer}}
[[Template:Box-header/20]]
{{Box-header/20}}
{{Box-footer}}
[[Template:Box-header/21]]
{{Box-header/21}}
{{Box-footer}}
=== H180 ===
[[Template:Box-header/22]]
{{Box-header/22}}
{{Box-footer}}
[[Template:Box-header/23]]
{{Box-header/23}}
{{Box-footer}}
[[Template:Box-header/24]]
{{Box-header/24}}
{{Box-footer}}
=== H210 ===
[[Template:Box-header/25]]
{{Box-header/25}}
{{Box-footer}}
[[Template:Box-header/26]]
{{Box-header/26}}
{{Box-footer}}
[[Template:Box-header/27]]
{{Box-header/27}}
{{Box-footer}}
=== H240 ===
[[Template:Box-header/28]]
{{Box-header/28}}
{{Box-footer}}
[[Template:Box-header/29]]
{{Box-header/29}}
{{Box-footer}}
[[Template:Box-header/30]]
{{Box-header/30}}
{{Box-footer}}
=== H270 ===
[[Template:Box-header/31]]
{{Box-header/31}}
{{Box-footer}}
[[Template:Box-header/32]]
{{Box-header/32}}
{{Box-footer}}
[[Template:Box-header/33]]
{{Box-header/33}}
{{Box-footer}}
=== H300 ===
[[Template:Box-header/34]]
{{Box-header/34}}
{{Box-footer}}
[[Template:Box-header/35]]
{{Box-header/35}}
{{Box-footer}}
[[Template:Box-header/36]]
{{Box-header/36}}
{{Box-footer}}
=== H330 ===
[[Template:Box-header/37]]
{{Box-header/37}}
{{Box-footer}}
[[Template:Box-header/38]]
{{Box-header/38}}
{{Box-footer}}
[[Template:Box-header/39]]
{{Box-header/39}}
{{Box-footer}}
=== H0 S0 ===
{{center|
'''Border: H0/S0/V75&nbsp;• Background: H0/S0/V100&nbsp;• Header 1: H0/S0/V75&nbsp;• Header 2: H0/S0/V85&nbsp;• Header 3: H0/S0/V95'''
}}
[[Template:Box-header/40]]
{{Box-header/40}}
{{Box-footer}}
[[Template:Box-header/41]]
{{Box-header/41}}
{{Box-footer}}
[[Template:Box-header/42]]
{{Box-header/42}}
{{Box-footer}}
== See also ==
{{Portal template list}}


<includeonly>
<includeonly>
[[Category:Wikipedia Portal templates]]
[[Category:Box templates]]
[[Category:Box templates]]
</includeonly>
</includeonly>

Latest revision as of 22:07, 11 June 2015


Usage

A template standardizing the portal templates and for other purposes.


Syntax

The template is not a stand-alone template and so once the box header is typed or pasted the template Box-footer must immediately follow it.

This example assumes that you have a separate page containing the content, and transclude it onto the page.

{{Box-header
| title=
| editpage=  <!-- This data must be the same  -->
| titleforeground=
| titlebackground=
| background=
| viewpage= <!-- This data must be the same  -->
}}

{{ <!-- This data must be the same --> }}

{{Box-footer | text }}

This example assumes that the content is entered between the header and footer. Notice that viewpage is not in there. It will not work because it links to the page you are on, and therefore Wikipedia does not link it.

{{Box-header
| title=
| editpage=  <!-- This field must be the same as the name of the page it is on. -->
| titleforeground=
| titlebackground=
| background=
}}

Box Content

{{Box-footer | text }}