Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Template:Box-header/doc

Usage

A template standardizing the portal templates and for other purposes.

Syntax

Use Template:Box-header, in exact capitalization, and never Template:Box-Header. 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.

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

{{ <!-- ...and this --> }}

{{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.

{{Template: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 }}

See Also

Box-footer