Difference between revisions of "Template:Sign/Documentation"

From GodWiki
Jump to: navigation, search
m (Undo revision 87462 by FeRDNYC (talk))
(Tag: Undo)
(Document "|image-align=", clean up formatting a bit)
Line 1: Line 1:
 
<noinclude> [[Category:Templates/Documents|{{PAGENAME}}]]</noinclude>  
 
<noinclude> [[Category:Templates/Documents|{{PAGENAME}}]]</noinclude>  
 
 
Parameters:  
 
Parameters:  
 
*'''title''' - the title (default: no title)  
 
*'''title''' - the title (default: no title)  
Line 9: Line 8:
 
*'''img''' - a picture without the prefix "Image:» (default: Important.png)  
 
*'''img''' - a picture without the prefix "Image:» (default: Important.png)  
 
*'''imgwidth''' - for non-standard images. It is advisable not to touch (default: 64)  
 
*'''imgwidth''' - for non-standard images. It is advisable not to touch (default: 64)  
*'''cat''' - the category without the prefix "Category:» (default: none). Do not use directly in other patterns, otherwise the template will get this same category  
+
*'''image-align''' - Override image <code>vertical-align</code> parameter: <code>top</code>, <code>bottom</code>, etc. (default: <code>center</code>)
 +
*'''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 (default: auto)  
 
*'''height''' - the height of the template (default: auto)  
 
*'''width''' - the width of the template (default: 80%)  
 
*'''width''' - the width of the template (default: 80%)  
 
*'''interval''' - the bottom margin in pixels (default: 1)  
 
*'''interval''' - the bottom margin in pixels (default: 1)  
 
  
 
== Example ==  
 
== Example ==  
 
+
<pre><nowiki>
<nowiki>
 
 
{{Sign  
 
{{Sign  
 
| title = What a nice example!
 
| title = What a nice example!
Line 27: Line 26:
 
| width = 50
 
| width = 50
 
}}
 
}}
</Nowiki>  
+
</Nowiki></pre>
  
  

Revision as of 00:25, 19 September 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 (default: auto)
  • width - the width of the template (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