Template:Box-header: Difference between revisions

From BoyWiki
(Created page with "<div style="clear: both; <!-- -->border: {{{border-type|solid}}} {{{titleborder|{{{border|#ababab}}}}}}; <!-- -->border-width: {{{border-top|{{{border-width|...")
 
No edit summary
Line 34: Line 34:
         -->padding-top: {{{padding-top|.3em;}}}"><!--
         -->padding-top: {{{padding-top|.3em;}}}"><!--
-->{{#if: {{{TOC|}}} | |__NOTOC__}}{{#if: {{{EDIT|}}} | |__NOEDITSECTION__}}<noinclude>
-->{{#if: {{{TOC|}}} | |__NOTOC__}}{{#if: {{{EDIT|}}} | |__NOEDITSECTION__}}<noinclude>
{{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>

Revision as of 17:54, 11 June 2015

{{{title}}}


BoyWiki Template documentation (for the above template, sometimes hidden or invisible)


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 }}
Visit Template:Box-header/doc to edit this template's description!
Done making changes?   Refresh   Also see:  Portal:Template index  and   Help:Templates