Template:Titled box: Difference between revisions

m
Text replacement - "<br />" to "<br>"
No edit summary
m (Text replacement - "<br />" to "<br>")
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{|class="titledBox" style="{{#if:{{{bg|}}}|background: {{{bg}}};}} {{#if:{{{border|}}}|border-color: {{{border}}};}} {{{style|}}}"
{| class="titledBox" {{#if:{{{id|}}}|id="{{{id}}}"}} style="{{#if:{{{bg|}}}|background: {{{bg}}};}} {{#if:{{{border|}}}|border-color: {{{border}}};}} {{{style|}}}"
|
|
{|class="titledBoxTitle" style="{{#if:{{{tbg|}}}|background: {{{tbg}}};}} {{#if:{{{tborder|}}}|border-color: {{{tborder}}};}}"
{| class="titledBoxTitle" {{#if:{{{titleid|}}}|id="{{{titleid}}}"}} style="{{#if:{{{tbg|}}}|background: {{{tbg}}};}} {{#if:{{{tborder|}}}|border-color: {{{tborder}}};}}"
|{{{title|Title}}}{{#if:{{{editlink|}}}|<br />
|{{{title|Title}}}{{#if:{{{editlink|}}}|<br>
{{!}}style="text-align:right;" class="plainlinks"{{!}}[{{fullurl:{{{editlink}}}|action=edit}} edit]}}
{{!}}style="text-align:right;" class="plainlinks"{{!}}[{{fullurl:{{{editlink}}}|action=edit}} edit]}}
|}
|}
Line 11: Line 11:


==Use==
==Use==
This template creates a box with content and a title. Used primarily on the [[Main Page]].
This template creates a box with content and a title. It is used primarily on the [[Main Page]].


==Parameters==
==Parameters==
Line 40: Line 40:
! style
! style
| No ||  || Any extra style rules.
| No ||  || Any extra style rules.
|-
! id
| No ||  || HTML element ID for the entire box.
|-
! titleid
| No ||  || HTML element ID for the title.
|}
|}


Line 53: Line 59:
|content  =  
|content  =  
|style    =  
|style    =  
|id      =
|titleid  =
}}
}}
</pre>
</pre>
Line 72: Line 80:
|}
|}


[[Category:Templates]]</noinclude>
[[Category:Main page templates]]</noinclude>