Template

Difference between revisions of "Box-header/doc"

From Joomla! Documentation

< Template:Box-header
(new doc page)
 
m (update)
Line 2: Line 2:
 
=== Usage ===
 
=== Usage ===
  
A template standardizing the portal templates and for other purposes.
+
A template standardizing the portal templates and for other purposes. The box created has rounded corners.
  
 
=== Syntax ===
 
=== Syntax ===
Line 53: Line 53:
 
{{Box-header/sample}}
 
{{Box-header/sample}}
  
{{Box-footer| [[William Shakespeare|more...]] }}
+
{{Box-footer| [[Template:Box-header-sq|more...]] }}
 
</pre>
 
</pre>
  
 
{{Box-header
 
{{Box-header
 
| title= Example of Box-header
 
| title= Example of Box-header
| editpage= Box-header/sample
+
| editpage= Template:Box-header/sample
 
| titleforeground= white
 
| titleforeground= white
 
| titlebackground= red
 
| titlebackground= red

Revision as of 21:29, 24 September 2012

This is a documentation subpage for Template:Box-header.
It contains usage information, categories and other content that is not part of the original template page.
To view the template page itself, see Template:Box-header.

Usage

A template standardizing the portal templates and for other purposes. The box created has rounded corners.

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

Sample

{{Box-header
| title= The Quotes of Quotes
| editpage= Box-header/sample
| titleforeground= white
| titlebackground= red
| background= white
}}

{{Box-header/sample}}

{{Box-footer| [[Template:Box-header-sq|more...]] }}

Example of Box-header


This is a sample of how the {{Box-header}} template transcludes a subpage.

See Also

Box-footer

Box-header-sq

Box portal skeleton