SigServer:Templates: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Line 132: Line 132:
| end || Sets slider's end value (right end). Default is ''100''. || Yes
| end || Sets slider's end value (right end). Default is ''100''. || Yes
|}
|}
=== Accessing Variables ===
Accessing the variables assigned in the template is done by ''$Group_variable''. The variable ''world'' of the group ''Hello'' will be accessed like this
<nowiki>{{ $Hello_world</nowiki>
== Example ==
An example template that utilizes
<pre>
<nowiki>
&lt;!--
Text:
    alpha:
        title:      Opacity
        description: The text's opacity. 100 is opaque.
        module:      slider
        value:      70
            start:  10
    color:
        title:      Color
        module:      color
        value:      #ffffff
Misc:
    mood:
        title:      Mood
        module:      dropdown
        value:      naughty
            naughty: Naughty
            happy:  Happy
            sad:    Sad
  words:
        title:      Personal words
        value:      Haikus are easy. But sometimes don't make sense. Refrigerator.
       
--&gt;
<signature>
    <defaults>
        <text
            alpha="{{ $Text_alpha }}"
            color="{{ $Text_color }}"
        />
    </defaults>
    <layout>
        <text>
            <line>My name is {{ $Sig_username }}. I am {{ $Misc_mood }}</line>
            <line>{{ $Misc_words }}
        </text>
    </layout>
</signature>
</nowiki>
</pre>


[[Category:SigServer]]
[[Category:SigServer]]
256

edits

Navigation menu

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