SigServer:Templates: Difference between revisions

m
TOC moved from left to right, for consistency
m (TOC moved from left to right, for consistency)
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{TOCleft}}
{{TOCright}}


Back to: [[SigServer:Documentation]]
Back to: [[SigServer:Documentation]]


=Templates=
=Templates=
[[Image:Template.jpg|thumb|Template example]]
[[Image:Template.jpg|thumb|left|Template example]]
Main purpose is to provide a simple alternative to the fairly complicated [[SigServer:SignatureXML|Signature XML]].
Main purpose is to provide a simple alternative to the fairly complicated [[SigServer:SignatureXML|Signature XML]].


Line 36: Line 36:
To test your template you have to switch to simple mode (for access contact antennen on forum, IRC or PM).
To test your template you have to switch to simple mode (for access contact antennen on forum, IRC or PM).


'''Note:''' When testing templates it always uses the value set in simple edit mode for variables, not the default one. To reset to default values just hit reset in simple edit mode.
{{eyecatch|Note|When testing templates it always uses the value set in simple edit mode for variables, not the default one. To reset to default values just hit reset in simple edit mode.}}


== Syntax ==
== Syntax ==
Line 100: Line 100:
=== Level Four ===
=== Level Four ===
Categorized after module.
Categorized after module.
==== checkbox ====
Creates a checkbox that returns a boolean value (true or false).
{| class="wikitable"
|-
! Name !! Description !! Optional
|-
| colspan="3" | No arguments available
|}


==== color ====
==== color ====
Line 117: Line 127:
|-
|-
| value || Sets label for ''value'' || At least one value is required
| value || Sets label for ''value'' || At least one value is required
|}
==== fonts ====
An up to date dropdown with all available fonts.
{| class="wikitable"
|-
! Name !! Description !! Optional
|-
| colspan="3" | No arguments available
|}
|}


Line 161: Line 180:
         module:      color
         module:      color
         value:      #ffffff
         value:      #ffffff
    face:
        title:      Face
        module:      fonts
        value:      verdana


Misc:
Misc:
Line 170: Line 193:
             happy:  Happy
             happy:  Happy
             sad:    Sad
             sad:    Sad
    displaywords:
        title:      Display personal words
        module:      checkbox
        value:      true
     words:
     words:
         title:      Personal words
         title:      Personal words
         value:      Haikus are easy. But sometimes they don't make sense. Refrigerator.
         value:      Haikus are easy. But sometimes they don't make sense. Refrigerator.
       
-->
-->
<signature>
<signature>
Line 184: Line 210:
     </defaults>
     </defaults>
     <layout>
     <layout>
         <text>
         <text face="{{ $Text_face }}">
             <line>My name is {{ $Sig_username }}. I am {{ $Misc_mood }}</line>
             <line>My name is {{ $Sig_username }}. I am {{ $Misc_mood }}</line>
             <line>{{ $Misc_words }}</line>
             <line display="{{ $Misc_displaywords }}">{{ $Misc_words }}</line>
         </text>
         </text>
     </layout>
     </layout>
1,633

edits

MediaWiki spam blocked by CleanTalk.
MediaWiki spam blocked by CleanTalk.