Difference between revisions of "Box-header-sq"
From Joomla! Documentation
m (fixing doc call layout for better read) |
m (update) |
||
(9 intermediate revisions by the same user not shown) | |||
Line 13: | Line 13: | ||
-->font-size:{{{titlefont-size|100%}}};<!-- | -->font-size:{{{titlefont-size|100%}}};<!-- | ||
-->margin-bottom: 0px;<!-- | -->margin-bottom: 0px;<!-- | ||
+ | -->box-shadow:1px 1px 8px {{{titleborder|{{{border|#ababab}}}}}};<!-- | ||
-->">{{#if: {{{EDITLINK|}}} || | -->">{{#if: {{{EDITLINK|}}} || | ||
<div class="plainlinks" <!-- | <div class="plainlinks" <!-- | ||
Line 21: | Line 22: | ||
#if: {{{noedit|}}} || [{{fullurl:{{{editpage|/}}}|action=edit{{#if: {{{section|}}} |§ion={{{section}}}}}}} <span style="color: {{{titleforeground|#000}}}">edit</span>] }}{{#if: {{{viewpage|}}} |'''·''' [[:{{{viewpage}}}|<font color="{{{titleforeground|black}}}">view</font>]] }}{{{top|}}} | #if: {{{noedit|}}} || [{{fullurl:{{{editpage|/}}}|action=edit{{#if: {{{section|}}} |§ion={{{section}}}}}}} <span style="color: {{{titleforeground|#000}}}">edit</span>] }}{{#if: {{{viewpage|}}} |'''·''' [[:{{{viewpage}}}|<font color="{{{titleforeground|black}}}">view</font>]] }}{{{top|}}} | ||
</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 31: | Line 32: | ||
-->text-align: {{{text-align|left}}};<!-- | -->text-align: {{{text-align|left}}};<!-- | ||
-->margin: 0 0 10px;<!-- | -->margin: 0 0 10px;<!-- | ||
+ | -->box-shadow:1px 1px 8px {{{border|#ababab}}};<!-- | ||
-->padding: {{{padding|.6em}}};<!-- | -->padding: {{{padding|.6em}}};<!-- | ||
-->padding-top: {{{padding-top|.5em;}}}"><!-- | -->padding-top: {{{padding-top|.5em;}}}"><!-- |
Latest revision as of 11:17, 11 April 2015
{{{title}}}
This documentation is transcluded from Template:Box-header-sq/doc.
To discuss this template as a whole, please see JDOC:WTP. If you wish to discuss general wordings, rather than the wording or formatting of this specific template, don't post here, or else what you say will probably go unnoticed.
Usage
A template standardizing the portal templates and for other purposes. Creates a box with squared 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-sq | 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-sq | 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-sq | title= Example of Box-header-sq | editpage= Box-header-sq/sample | titleforeground= white | titlebackground= gray | background= white }} {{Box-header-sq/sample}} {{Box-footer| [[Template:Box-header|more...]] }}
Example of Box-header-sq
This is a sample of how the {{Box-header-sq}} template transcludes a subpage.