Jump to content

User:Fen/ContentBox: Difference between revisions

From Consumer Rights Wiki
Fen (talk | contribs)
No edit summary
Fen (talk | contribs)
No edit summary
Line 16: Line 16:
</includeonly><noinclude>{{documentation}}</noinclude>
</includeonly><noinclude>{{documentation}}</noinclude>


== Documentation ==


{{User:Fen/ContentBox|Life360}}
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 ===
<pre>
{{YourTemplateName|PageName|OptionalTitle| |TextColor|TopBarColor|Width|Height|CloseLink|BorderColor}}
</pre>
 
The box will display the linked title with the dimensions (width × height) next to it in the top bar. The close button links to the specified page.
 
</noinclude>

Revision as of 21:57, 25 July 2025

Documentation

This template creates a fixed-size styled box with a top bar and included content.

Parameters

  1. 1 (required): Page name to include and link in the title bar.
  2. 2 (optional): Override text for the link title. If empty, uses parameter 1.
  3. 4 (optional): Text and icon color. Default is 'inherit'.
  4. 5 (optional): Top bar background color. Default is '#d0d8ff'.
  5. 6 (optional): Width of the outer box (e.g., '400px'). Default is '400px'.
  6. 7 (optional): Height of the outer box (e.g., '400px'). Default is '400px'.
  7. 8 (optional): Close button link target. Defaults to 'Main Page'.
  8. 9 (optional): Border and shadow color. Default is '#4a6fa5'.

Usage

{{YourTemplateName|PageName|OptionalTitle| |TextColor|TopBarColor|Width|Height|CloseLink|BorderColor}}

The box will display the linked title with the dimensions (width × height) next to it in the top bar. The close button links to the specified page.