Template

Difference between revisions of "Box-header"

From Joomla! Documentation

m (reducing border radius)
m (class)
 
(4 intermediate revisions by the same user not shown)
Line 23: Line 23:
 
#if: {{{noedit|}}} || [{{fullurl:{{{editpage|/}}}|action=edit{{#if: {{{section|}}} |&section={{{section}}}}}}} <span style="color: {{{titleforeground|#000}}}">edit</span>]&nbsp;}}{{#if: {{{viewpage|}}} |'''·'''&nbsp;[[:{{{viewpage}}}|<font color="{{{titleforeground|black}}}">view</font>]]&nbsp;}}{{{top|}}}&nbsp;
 
#if: {{{noedit|}}} || [{{fullurl:{{{editpage|/}}}|action=edit{{#if: {{{section|}}} |&section={{{section}}}}}}} <span style="color: {{{titleforeground|#000}}}">edit</span>]&nbsp;}}{{#if: {{{viewpage|}}} |'''·'''&nbsp;[[:{{{viewpage}}}|<font color="{{{titleforeground|black}}}">view</font>]]&nbsp;}}{{{top|}}}&nbsp;
 
</div>}}<!-- endif EDITLINK
 
</div>}}<!-- endif EDITLINK
-->{{#if: {{{SPAN|}}} |<span style="font-size:{{{title-font-size|100%}}}; font-weight:{{{title-font-weight|bold}}}; margin: 0; padding:0; padding-bottom:.1em; color:{{{titleforeground|#000}}};{{{extra|}}}">{{{title}}}</span>|<h2 style="font-size:{{{title-font-size|100%}}}; font-weight:{{{title-font-weight|bold}}}; border: none; margin: 0; padding:0; padding-bottom:.1em; color:{{{titleforeground|#000}}};{{{extra|}}}">{{{title}}}</h2>}}
+
-->{{#if: {{{SPAN|}}} |<span style="font-size:{{{title-font-size|100%}}}; font-weight:{{{title-font-weight|bold}}}; margin: 0; padding:.25em 0; padding-bottom:.1em; color:{{{titleforeground|#000}}};{{{extra|}}}">{{{title}}}</span>|<h2 class="portal-header" style="font-size:{{{title-font-size|100%}}}; font-weight:{{{title-font-weight|bold}}}; border: none; margin: 0; padding:.25em 0; padding-bottom:.1em; color:{{{titleforeground|#000}}};{{{extra|}}}">{{{title}}}</h2>}}
 
</div>
 
</div>
 
<div style="border: {{{border-width|1}}}px solid {{{border|#ababab}}}; <!--
 
<div style="border: {{{border-width|1}}}px solid {{{border|#ababab}}}; <!--
Line 37: Line 37:
 
         -->padding: {{{padding|.6em}}};<!--
 
         -->padding: {{{padding|.6em}}};<!--
 
         -->padding-top: {{{padding-top|.5em;}}}"><!--
 
         -->padding-top: {{{padding-top|.5em;}}}"><!--
-->{{#if: {{{TOC|}}} | |__NOTOC__}}{{#if: {{{EDIT|}}} | |__NOEDITSECTION__}}<noinclude>
+
-->{{#if: {{{TOC|}}} | |__NOTOC__}}{{#if: {{{EDIT|}}} | |__NOEDITSECTION__}}
 +
<noinclude>
 
{{Box-footer}}
 
{{Box-footer}}
 
<!-- PLEASE PUT CATEGORIES AND INTERWIKI LINKS ON THE DOCUMENTATION PAGE. THANK YOU. -->
 
<!-- PLEASE PUT CATEGORIES AND INTERWIKI LINKS ON THE DOCUMENTATION PAGE. THANK YOU. -->
 
{{Documentation}}  
 
{{Documentation}}  
 
</noinclude>
 
</noinclude>

Latest revision as of 12:11, 7 September 2013

{{{title}}}

[view] [edit] [history]

Template-info.pngTemplate documentation

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= Example of Box-header
| 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