Template:Box-header/doc: Difference between revisions

From BoyWiki
No edit summary
No edit summary
 
Line 43: Line 43:


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