Changes

Jump to: navigation, search

Template:Sign/Documentation

3,178 bytes added, 13:00, 18 December 2019
m
no edit summary
<noinclude> [[Category==Parameters=====Global parameters===; {{para|title}} : ''Optional'' - The title in '''bold''' of the sign (default:Templates/Documents|no title) ; {{PAGENAMEpara|text}}]]</noinclude> : ''Required'' - The text content of the sign (default: a mess of lorem ipsum)
Parameters; {{para|bgcolor|<var>Valid CSS color string</var>}} : *'''title'Optional'' - the title The background color (default: no title<code>#fefefe</code>) *'''text''' - text (default: a mess of lorem ipsum) *'''bgcolor''' - the background ; {{para|bordercolor|<var>Valid CSS color in RGB format with no sign of # (defaultstring</var>}} : fefefe) *'''bordercolor'Optional'' - Border The color of the left border (for harmony with the picture and the background; default: <code>#999</code>) * ; {{para|outerbordercolor|<var>Valid CSS color string</var>}} : '''outerbordercolor'Optional'' - The color of the top, right and bottom Boarders borders (default: <code>#AAB) *'''img''' - a picture without the prefix "Image:ยป (default: Important.png) *'''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 *'''height''' - the height of the template (default: auto) *'''width''' - the width of the template (default: 80%) *'''interval''' - the bottom margin in pixels (default: 1</code>)
=== Picture parameters===
== Example == ; {{para|img|<var>filename</var>}} : ''Optional'' - An image filename (default: <code>Important.png</code>)
;{{para|imgwidth|<var>Valid width in <code>px</code> pixel units</var>}} : ''Optional'' - For non-standard images. (default: <code>64px</code>) ;{{para|image-align}} : ''Optional'' - Override image <code>vertical-align</code> parameter: <code>top</code>, <code>bottom</code>, etc. (default: <code>middle</code>) ;{{para|link|<var>Name of the targeted page</var>}} : ''Optional'' - the link of the picture of the <code>|img </code> parameter become the specified target.:* If the parameter is not called at all in the template, the link will be <code>File:<filename></code> by default.:* If the parameter is called but no target is provided (<code>link=</code>), the linking will be turn off. ;{{para|emoji|<var>Any emoji</var>}} : ''Optional'' - Display an emoji instead of the image.:* If an emoji is used, the picture will not be displayed even if <code>|img=</code> is used. ;{{para|emojiwidth|<var>X%</var>}} : ''Optional'' - The width of the emoji in percent (default: 300%) ===Advanced parameters=== ; {{para|height}} : ''Optional'' - the height of the template in CSS units (<code>rem</code>, <code>em</code>, <code>px</code>, etc.) (default: <code>auto</code>) ; {{para|width}} : ''Optional'' - the width of the template in CSS units (<code>rem</code>, <code>em</code>, <code>px</code>, etc.) (default: <code>100%</code>) ; {{para|interval}} : ''Optional'' - the bottom margin for the sign template in CSS units (<code>rem</code>, <code>em</code>, <code>px</code>, etc.) (default: <code>0.2rem</code>) ; {{para|style}} : ''Optional'' - any general CSS style parameters to be added to the table style. Takes valid CSS. End with a semicolon (<code>;</code>), '''DO NOT''' include quotation marks. == Examples == <pre><nowiki>
{{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%
}}
</Nowiki></pre>
'''Results in:'''
{{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%
}}
<br>
----
----
 
<pre><nowiki>
{{Sign
| title = Another example
| link= Template:Sign/Documentation
| text = The picture will link to the documentation of this template
| bgcolor = silver
| outerbordercolor = black
| bordercolor = purple
| width = 50%
}}
</Nowiki></pre>
 
 
'''Results in:'''
 
{{Sign
| title = Another example
| link= Template:Sign/Documentation
| text = The picture's link will lead to the documentation of this template.
| bgcolor = silver
| outerbordercolor = black
| bordercolor = purple
| width = 50%
}}
</Nowiki>
----
----
 
<pre><nowiki>
{{Sign
| title = No link example
| link=
| text = The picture's linking is desactivated with <code>link=</code>
| bgcolor = MediumSeaGreen
| outerbordercolor = black
| bordercolor = red
| width = 50%
}}
</Nowiki></pre>
'''Results in:'''
{{Sign
| title = What a nice No link example!| link= | text = [[User:Spode|Spode]] The picture's linking is clearly a geniusdesactivated with <code>link=</code>| bgcolor = abcdefMediumSeaGreen| outerbordercolor = black| bordercolor = red| width = 50%}} -------- <pre><nowiki>{{Sign | title = Emoji example| emoji = ๐Ÿˆ| img = Imbox noticeExample.jpg| text = Despite the image parameter being used, only the cat emoji is displayed.png| bgcolor = Salmon| outerbordercolor = black| bordercolor = Blue| width = 50%
}}
</Nowiki></pre>
'''Results in:'''
 
{{Sign
| title = Emoji example
| emoji = ๐Ÿˆ
| img = Example.jpg
| text = Despite the image parameter being used, only the cat emoji is displayed.
| bgcolor = Salmon
| outerbordercolor = black
| bordercolor = Blue
| width = 50%
}}
<!-- <noinclude>[[Category:Template:DocumentationTemplates/Documents|{{PAGENAME}}]]</noinclude> -->
5,910
edits

Navigation menu