User:Fen/ContentBox: Difference between revisions
Appearance
< User:Fen
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
<div style="padding-left: 5px;">'''[[{{{1}}}|<span style="color: {{{4|inherit}}}">{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}</span>]]''' | <div style="padding-left: 5px;">'''[[{{{1}}}|<span style="color: {{{4|inherit}}}">{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}</span>]]''' | ||
</div> | </div> | ||
<div style="width: 18px; text-align: center;">[[{{#if:{{{8|}}}|{{{8}}}|Main Page}}|<span role="button" style="color: {{{4|inherit}}}; text-decoration: none;"> | <div style="width: 18px; text-align: center;">[[{{#if:{{{8|}}}|{{{8}}}|Main Page}}|<span role="button" style="color: {{{4|inherit}}}; text-decoration: none;"><small>{{{9}}}</small></span>]]</div> | ||
</div> | </div> | ||
Revision as of 03:05, 26 July 2025
Documentation
This template creates a fixed-size styled box with a top bar and included content.
Parameters
- 1 (required): Page name to include and link in the title bar.
- 2 (optional): Override text for the link title. If empty, uses parameter 1.
- 4 (optional): Text and icon color. Default is 'inherit'.
- 5 (optional): Top bar background color. Default is '#d0d8ff'.
- 6 (optional): Width of the outer box (e.g., '400px'). Default is '400px'.
- 7 (optional): Height of the outer box (e.g., '400px'). Default is '400px'.
- 8 (optional): Close button link target. Defaults to 'Main Page'.
- 9 (optional): Border and shadow color. Default is '#4a6fa5'.
Usage
{{ContnetBox|PageName|OptionalTitle|TextColor|TopBarColor|Width|Height|CloseLink|BorderColor}}
The box will display the link title. The close button links to the specified page.