Difference between revisions of "Template:Sign"

From GodWiki
Jump to: navigation, search
(Change |interval= syntax to take CSS units, new default is 0.2rem)
(Force width of left-hand column to 1% (will size to minimum width necessary to display contents))
 
Line 1: Line 1:
 
{|style="clear: both; width: {{{width|80%}}}; border-color:{{{outerbordercolor|#AAB}}} {{{outerbordercolor|#AAB}}} {{{outerbordercolor|#AAB}}} {{{bordercolor|#999}}}; border-style: solid; border-width: 1px 1px 1px 10px; padding: 4px; margin: 1px auto {{{interval|0.2rem}}} auto; vertical-align: middle; background-color: {{{bgcolor|#fefefe}}}; text-align: left;{{{style|}}}"
 
{|style="clear: both; width: {{{width|80%}}}; border-color:{{{outerbordercolor|#AAB}}} {{{outerbordercolor|#AAB}}} {{{outerbordercolor|#AAB}}} {{{bordercolor|#999}}}; border-style: solid; border-width: 1px 1px 1px 10px; padding: 4px; margin: 1px auto {{{interval|0.2rem}}} auto; vertical-align: middle; background-color: {{{bgcolor|#fefefe}}}; text-align: left;{{{style|}}}"
|height="{{{height|auto}}}" style="padding-right:8px; vertical-align: {{{image-align|middle}}}" | [[Image:{{{img|Important.png}}}|{{{imgwidth|64px}}}]]
+
|width="1%" height="{{{height|auto}}}" style="padding-right:8px; vertical-align: {{{image-align|middle}}}" | [[Image:{{{img|Important.png}}}|{{{imgwidth|64px}}}]]
 
|style="vertical-align: middle"|{{#if: {{{title|}}} |<p style="color: #000000; background: none; overflow: hidden; page-break-after: avoid; font-size: 1.17em; font-weight: bold; line-height: 1.6; margin-top: 0.1em; margin-bottom: 0; padding-top: 0; padding-bottom: 0;">{{{title}}}</p>}} {{{text|Lorem ipsum dolor sit amet, consectetuer adipiscing elit. In est libero, tristique vel, vestibulum a, aliquam sit amet, nisl. Curabitur suscipit euismod sapien. Nullam ligula. }}}
 
|style="vertical-align: middle"|{{#if: {{{title|}}} |<p style="color: #000000; background: none; overflow: hidden; page-break-after: avoid; font-size: 1.17em; font-weight: bold; line-height: 1.6; margin-top: 0.1em; margin-bottom: 0; padding-top: 0; padding-bottom: 0;">{{{title}}}</p>}} {{{text|Lorem ipsum dolor sit amet, consectetuer adipiscing elit. In est libero, tristique vel, vestibulum a, aliquam sit amet, nisl. Curabitur suscipit euismod sapien. Nullam ligula. }}}
 
|}<noinclude>
 
|}<noinclude>

Latest revision as of 08:13, 13 January 2019

Important.png Lorem ipsum dolor sit amet, consectetuer adipiscing elit. In est libero, tristique vel, vestibulum a, aliquam sit amet, nisl. Curabitur suscipit euismod sapien. Nullam ligula.
[view] [edit] [history] [refresh]
Documentation  Documentation

Parameters:

  • title - the title (default: no title)
  • text - text (default: a mess of lorem ipsum)
  • bgcolor - the background color (any valid CSS color string; default: #fefefe)
  • bordercolor - Border color of the left border (any valid CSS color string; default: #999)
  • outerbordercolor - color of the top, right and bottom borders (any valid CSS color string; default: #AAB)
  • img - an image filename, no "Image:" or braces (default: Important.png)
  • imgwidth - for non-standard images. It is advisable not to touch. (a valid width in px pixel units; default: 64px)
  • image-align - Override image vertical-align parameter: top, bottom, etc. (default: middle)
  • height - the height of the template in CSS units (rem, em, px, etc.) (default: auto)
  • width - the width of the template in CSS units (rem, em, px, etc.) (default: 80%)
  • interval - the bottom margin for the sign template in CSS units (rem, em, px, etc.) (default: 0.2rem)
  • style - any general CSS style parameters to be added to the table style. Takes valid CSS. End with a semicolon (;), DO NOT include quotation marks.

Example

{{Sign 
| title = What a nice example!
| text = [[User:Spode|Spode]] is clearly a genius
| bgcolor = #abcdef
| img = Imbox notice.png
| outerbordercolor = red
| bordercolor = green
| width = 50%
}}


Results in:

Imbox notice.png

What a nice example!

Spode is clearly a genius