Template:Fancy block

From Discovery Wiki
Revision as of 20:41, 19 July 2011 by RogueCharlie (talk | contribs) (Created page with "<noinclude>RogueCharlie's template for dressing up a block of text.<!--</noinclude> {| {{#if: {{{wide|}}} | width="{{{wide}}}" }} |- {{#if: {{{headtag|}}} | {{!}} style="bord...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

RogueCharlie's template for dressing up a block of text.

Usage

{{Fancyblock
| wide = 
| color = 
| header = 
| headtag = 
| header2 = 
| body = 
}}

Variables

  • wide = Specify the width of the table if necessary for aesthetics.
  • color = Color of the left border.
  • header = The header for your information.
  • headtag = Use header tags if you wish, for the page ToC.
  • header2 = Small test after your header on the same line.
  • body = The body of your information.


"headtag" can be:

These are examples and are not what the variable is limited to. Do NOT use the < and > symbols in this variable, they will create errors in the output of the template.

  • leave blank - The template uses <span style="font-size: 1.5em;">
  • div - template uses <div>
YellowWarningTriangle.png {{{1}}}
This will force the header2 variable down to the next line of text.
  • h2 - <h2>
YellowWarningTriangle.png {{{1}}}
This will force the header2 variable down to the next line of text and add the header variable to the Table of Contents.
  • h3 - <h3>
YellowWarningTriangle.png {{{1}}}
This will force the header2 variable down to the next line of text and add the header variable to the Table of Contents.
  • you get the point, right?
  • If you use an alternate tag for the header then you may insert a style too. For example: h3 style="font-size: 1.5em;"

Result

{{Fancyblock
| wide = 
| color = #F9C45E
| header = Generic List
| headtag = 
| header2 = Sub-header
| body = 
* Item number 1
* Item number 2
}}
Generic List Sub-header
  • Item number 1
  • Item number 2


{{Fancyblock
| wide = 100%
| color = #41A317
| header = Generic Example
| headtag = h3 style="font-size: 1.5em; color: Yellow;"
| header2 = Sub-header
| body = Peter Piper picked a peck of pickled peppers.
}}

Generic Example

Sub-header

Peter Piper picked a peck of pickled peppers.