SigServer:Examples: Difference between revisions

Jump to navigation Jump to search
Added my example sig
(Added my example sig)
Line 972: Line 972:
</pre>
</pre>


== Signature Example 6 ==
by [[User:Scoops|Scoops]] 2008.05.26
=== Signature Image ===
[[Image:Mahorosig.png]]
=== Source ===
<pre>
<!-- This is a pretty basic, though flexible signature. Without modification, it should
    work with pictures of different sizes as it uses very few constant values. With
    modification of things like like title truncations, you can take it pretty much
    anywhere - Scoops
-->
<signature>
  <!-- variables -->
      <!-- If you change @Top_bar_height, the text in that bar will stay centred. The
          text in the bottom bar is placed relative to the bottom of the sig.
      -->
      {{@Top_bar_height=10}}
      {{@Bot_bar_height=20}}
   
      <!-- This controls when the text of the MyList info flips in the bar. For numbers
          under the variable, the text appears in the "unwatched" part. You may
          need/want to change this depending on the length of your username or sig size.
      -->
      {{@Flip_MyList_text=40}}
  <!-- /variables -->
  <defaults>
    <text
        face="victorpixel"
        size="8"
        color="#663366"
    />
    <shape
        type="rectangle"
        color="#ffffff"
        alpha="65"
    />
    <shape
        type="line"
        color="#ffff88"
    />
  </defaults>
  <layout>
      <!-- The white bar along the top of the sig that is used as part of the MyList
          viewed percentage. It actually covers the whole top of the sig. The purple bar
          below, and the gold line, are used to show the actual percentage.
      -->
      <shape
        type="rectangle"
        position="0x0"
        size="{{$Sig_width}}x{{@Top_bar_height}}"
      />
      <!-- The purple bar along the top that shows how much of MyList remains unwatched.
          If you've watched 70% of your MyList, it starts drawing this bar 70% of the
          way across your sig image.
      -->
      <shape
        type="rectangle"
        position="{{0 + ($Sig_width-round((100-$stat_anidb_ownviewedp)*$Sig_width/100))}}x0"
        size="{{round((100-$stat_anidb_ownviewedp)*$Sig_width/100)}}x{{@Top_bar_height}}"
        color="#663366"
        alpha="55"
      />
      <!-- The gold line that highlights the percentage divider. It is one pixel less
          than the bar because for some reason, it appears one pixel too big if given
          the same value.
      -->
      <shape
        type="line"
        position="{{0 + ($Sig_width-round((100-$stat_anidb_ownviewedp)*$Sig_width/100))}}x0"
        size="{{0 + ($Sig_width-round((100-$stat_anidb_ownviewedp)*$Sig_width/100))}}x{{@Top_bar_height-1}}"
      />
      <!-- The white bar along the bottom used for last watched info -->
      <shape
        type="rectangle"
        position="0x{{$Sig_height-@Bot_bar_height}}"
        size="{{$Sig_width}}x{{@Bot_bar_height}}"
      />
      <!-- Username in the top left corner, centred vertically in the top bar. -->
      <text position="2x{{round((@Top_bar_height+1)/2)+2}}">
        <line>{{$Sig_username}}</line>
      </text>
      <!-- Displays MyList percentage, to the right of the divider in gold if under
          40 (default setting) otherwise purple and left, again centred vertically.
      -->
      <text
        position="{{round($stat_anidb_ownviewedp*$Sig_width/100)}}x{{round((@Top_bar_height+1)/2)+2}}"
        align="bottom-{{if($stat_anidb_ownviewedp >= @Flip_MyList_text, "right", "left")}}"
        color="#{{if($stat_anidb_ownviewedp >= @Flip_MyList_text, "663366", "ffff88")}}"
      >
        <line> Watched {{$stat_anidb_ownviewedp}}% of MyList</line>
      </text>
 
      <!-- Displays the name of the last anime watched, truncated to 40 characters -->
      <text position="2x{{$Sig_height-12}}">
        <line>I just watched {{truncate($latestwatched_id1_aname,40,"..")}} episode {{$latestwatched_id1_enumber}}:</line>
      </text>
      <!-- Displays the title of the last episode watched, truncated to 50 characters -->
      <text
        position="20x{{$Sig_height-3}}"
        face="04b03"
        size="6"
      >
        <line>"{{truncate($latestwatched_id1_ename,50,"..")}}"</line>
      </text>
      <!-- I don't want to use this, but others might find it useful, so I'll include a
          second bar for the percentage on AniDB watched here. Uncomment the next bit to
          use it. Notes were removed, but the sections correspond to the MyList sections
          done earlier: White bar, purple bar, gold line, text.
      -->
      <!--
      <shape
        type="rectangle"
        position="0x{{@Top_bar_height}}"
        size="{{$Sig_width}}x{{@Top_bar_height}}"
      />
      <shape
        type="rectangle"
        position="{{0 + ($Sig_width-round((100-$stat_anidb_totalviewedp)*$Sig_width/100))}}x{{@Top_bar_height}}"
        size="{{round((100-$stat_anidb_totalviewedp)*$Sig_width/100)}}x{{@Top_bar_height}}"
        color="#663366"
        alpha="55"
      />
      <shape
        type="line"
        position="{{0 + ($Sig_width-round((100-$stat_anidb_totalviewedp)*$Sig_width/100))}}x{{@Top_bar_height}}"
        size="{{0 + ($Sig_width-round((100-$stat_anidb_totalviewedp)*$Sig_width/100))}}x{{@Top_bar_height*2-1}}"
      />
      <text
        position="{{round($stat_anidb_totalviewedp*$Sig_width/100)}}x{{round((@Top_bar_height+1)/2)+2+@Top_bar_height}}"
        align="bottom-{{if($stat_anidb_totalviewedp >= @Flip_MyList_text, "right", "left")}}"
        color="#{{if($stat_anidb_totalviewedp >= @Flip_MyList_text, "663366", "ffff88")}}"
      >
        <line> Watched {{$stat_anidb_totalviewedp}}% of AniDB</line>
      </text>
      -->
  </layout>
</signature>
</pre>


[[Category:SigServer]]
[[Category:SigServer]]
2

edits

Navigation menu

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