Difference between revisions of "Template:Sign/Documentation"

From GodWiki
Jump to: navigation, search
(Document "|image-align=", clean up formatting a bit)
(Document valid units for width/height)
Line 11: Line 11:
 
*'''cat''' - the category without the prefix "Category:" (default: none).  
 
*'''cat''' - the category without the prefix "Category:" (default: none).  
 
*:Do not use '''cat''' directly in other patterns, otherwise the template will get this same category  
 
*:Do not use '''cat''' directly in other patterns, otherwise the template will get this same category  
*'''height''' - the height of the template (default: auto)  
+
*'''height''' - the height of the template in CSS units (<code>rem</code>, <code>em</code>, <code>px</code>, etc.) (default: <code>auto</code>)
*'''width''' - the width of the template (default: 80%)  
+
*'''width''' - the width of the template in CSS units (<code>rem</code>, <code>em</code>, <code>px</code>, etc.) (default: <code>80%</code>)
 
*'''interval''' - the bottom margin in pixels (default: 1)  
 
*'''interval''' - the bottom margin in pixels (default: 1)  
  

Revision as of 00:06, 15 November 2018

Parameters:

  • title - the title (default: no title)
  • text - text (default: a mess of lorem ipsum)
  • bgcolor - the background color in RGB format with no sign of # (default: fefefe)
  • bordercolor - Border color of the left (for harmony with the picture and the background; default: 999)
  • outerbordercolor - color of the top, right and bottom Boarders (default: AAB)
  • img - a picture without the prefix "Image:» (default: Important.png)
  • imgwidth - for non-standard images. It is advisable not to touch (default: 64)
  • image-align - Override image vertical-align parameter: top, bottom, etc. (default: center)
  • cat - the category without the prefix "Category:" (default: none).
    Do not use cat directly in other patterns, otherwise the template will get this same category
  • 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 in pixels (default: 1)

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