Template:Box-header: Difference between revisions
From BoyWiki
No edit summary |
m Protected "Template:Box-header" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
-->border: {{{border-type|solid}}} {{{titleborder|{{{border|#ababab}}}}}}; <!-- | -->border: {{{border-type|solid}}} {{{titleborder|{{{border|#ababab}}}}}}; <!-- | ||
-->border-width: {{{border-top|{{{border-width|1}}}}}}px {{{border-width|1}}}px 0; <!-- | -->border-width: {{{border-top|{{{border-width|1}}}}}}px {{{border-width|1}}}px 0; <!-- | ||
-->background: {{{titlebackground|# | -->background: {{{titlebackground|#cedff2}}};<!-- | ||
--> color: {{{titleforeground|#000}}}; <!-- | --> color: {{{titleforeground|#000}}}; <!-- | ||
-->padding: {{{padding|.1em}}};<!-- | -->padding: {{{padding|.1em}}};<!-- | ||
Line 26: | Line 26: | ||
-->border-top-width: {{{border-top|1}}}px; <!-- | -->border-top-width: {{{border-top|1}}}px; <!-- | ||
-->vertical-align: top;<!-- | -->vertical-align: top;<!-- | ||
-->background: {{{background|# | -->background: {{{background|#f5faff}}};<!-- | ||
-->opacity: {{{background-opacity|1}}};<!-- | -->opacity: {{{background-opacity|1}}};<!-- | ||
--> color: {{{foreground|#000}}}; <!-- | --> color: {{{foreground|#000}}}; <!-- |
Latest revision as of 23:30, 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
Done making changes? Refresh Also see: Portal:Template index and Help:Templates