SigServer:Examples: Difference between revisions

→‎Signature Example 11: updated to v1.30
(→‎Signature Example 11: updated to v1.30)
Line 1,403: Line 1,403:


== Signature Example 11 ==
== Signature Example 11 ==
by [[User:Soulweaver|Soulweaver]] 18th February 2011
by [[User:Soulweaver|Soulweaver]] 18th February 2011 (last updated 26th March 2011)


{{h4|Signature Image}}
{{h4|Signature Image}}
Line 1,417: Line 1,417:
   NEON RAINBOW ANIDB SIGNATURE TEMPLATE
   NEON RAINBOW ANIDB SIGNATURE TEMPLATE
   Designed by Soulweaver
   Designed by Soulweaver
   Version 1.22, 13th Mar 2011
   Version 1.30, 26th Mar 2011
    
    
   ATTENTION:
   ATTENTION:
Line 1,439: Line 1,439:
           same as # of seen episodes
           same as # of seen episodes
   1.22    Fix the problem if there isn't enough recent anime to display
   1.22    Fix the problem if there isn't enough recent anime to display
  1.23    Cap the progress bar length to 100% if more watched eps than total ep
          count (e.g. segmented files of a movie)
  1.30    Various changes: Fix last completed & voted text max. lengths, fix last
          voted box width error, add variables for easier color changes,
          allow generation timestamp and total watched time to be hidden,
          add no anime images mode, show template version
-->
-->
<signature>
<signature>
  {{@version="1.30"}}
   <!-- USER PREFERENCE VARIABLES -->
   <!-- USER PREFERENCE VARIABLES -->
     <!-- FONTS -->
     <!-- FONTS -->
Line 1,452: Line 1,460:
   {{@atitlels=1.2}}
   {{@atitlels=1.2}}
   {{@adatals=1.2}}
   {{@adatals=1.2}}
    <!-- OTHER VISUALS -->
  {{@titleshadow="#3f3f7f"}}
  {{@boxalpha=60}}
  {{@boxbg="#000000"}}
  {{@boxbor="#000000"}}
  {{@textcol="#ffffff"}}
    <!-- TOGGLE ELEMENTS -->
  {{@showgenstamp=true}} <!-- show image generation time timestamp -->
  {{@showtotaltime=true}} <!-- show anime total time -->
  {{@useimages=true}} <!-- whether to use anime images -->
     <!-- DATE FORMATTING -->
     <!-- DATE FORMATTING -->
   {{@datemask="jS M 'y h:ia"}}
   {{@datemask="jS M 'y h:ia"}} <!-- Please refer to PHP's date function -->
   {{@timezone=2}} <!-- use only full hours from GMT, e.g. 2 or -6 -->
   {{@timezone=2}} <!-- use only full hours from GMT, e.g. 2 or -6 -->
     <!-- TIMEZONE DIFFERENCE FINETUNE -->
     <!-- TIMEZONE DIFFERENCE FINETUNE:
        First, set the timezone variable above so that the times on last watched
        entries are correct. Then, if the image generation timestamp is not correct,
        finetune it by changing this variable. -->
     {{@difffix="-1"}}
     {{@difffix="-1"}}
     <!-- PROGRESS BARS -->
     <!-- PROGRESS BARS -->
Line 1,461: Line 1,482:
   {{@pbfgcolor="#00af00"}}
   {{@pbfgcolor="#00af00"}}
   {{@pbbgcolor="#6f8f6f"}}
   {{@pbbgcolor="#6f8f6f"}}
<!-- =============================================================================== -->


   <!-- PRECALCULATED VARIABLES -->
   <!-- PRECALCULATED VARIABLES -->
Line 1,495: Line 1,518:


     <!-- PROGBAR PROGRESS -->
     <!-- PROGBAR PROGRESS -->
   {{@a1progress = $watching_id1_state_seenepcount/if($watching_id1_eps==0,fetchvar("$animestat_a"+$watching_id1_aid+"_lastep_enumber")+1,$watching_id1_eps))}}
   {{@a1progress = min(1,$watching_id1_state_seenepcount/if($watching_id1_eps==0,fetchvar("$animestat_a"+$watching_id1_aid+"_lastep_enumber")+1,$watching_id1_eps))}}
   {{@a2progress = $watching_id2_state_seenepcount/if($watching_id2_eps==0,fetchvar("$animestat_a"+$watching_id2_aid+"_lastep_enumber")+1,$watching_id2_eps))}}
   {{@a2progress = min(1,$watching_id2_state_seenepcount/if($watching_id2_eps==0,fetchvar("$animestat_a"+$watching_id2_aid+"_lastep_enumber")+1,$watching_id2_eps))}}
   {{@a3progress = $watching_id3_state_seenepcount/if($watching_id3_eps==0,fetchvar("$animestat_a"+$watching_id3_aid+"_lastep_enumber")+1,$watching_id3_eps))}}
   {{@a3progress = min(1,$watching_id3_state_seenepcount/if($watching_id3_eps==0,fetchvar("$animestat_a"+$watching_id3_aid+"_lastep_enumber")+1,$watching_id3_eps))}}
   {{@a4progress = $watching_id4_state_seenepcount/if($watching_id4_eps==0,fetchvar("$animestat_a"+$watching_id4_aid+"_lastep_enumber")+1,$watching_id4_eps))}}
   {{@a4progress = min(1,$watching_id4_state_seenepcount/if($watching_id4_eps==0,fetchvar("$animestat_a"+$watching_id4_aid+"_lastep_enumber")+1,$watching_id4_eps))}}


     <!-- TIMEZONE HACK -->
     <!-- TIMEZONE HACK -->
Line 1,624: Line 1,647:
   <!-- DEFAULT VALUES -->
   <!-- DEFAULT VALUES -->
   <defaults>
   <defaults>
     <text color="#ffffff" face="{{@adatafont}}" size="{{@adatasize}}" align="top-left" line-space="1.6" />
     <text color="{{@textcol}}" face="{{@adatafont}}" size="{{@adatasize}}" align="top-left" line-space="1.6" />
     <image size="22x22" />
     <image size="22x22" />
   </defaults>
   </defaults>
   <layout>
   <layout>
     <!-- BG BOXES -->
     <!-- BG BOXES -->
     <shape type="rectangle" position="2x2" size="496x18" color="#000000" alpha="60" hollow="false" />
     <shape type="rectangle" position="2x2" size="496x18" color="{{@boxbg}}" alpha="{{@boxalpha}}" hollow="false" />
     <shape type="rectangle" position="2x2" size="496x18" color="#000000" alpha="100" hollow="true" />
     <shape type="rectangle" position="2x2" size="496x18" color="{{@boxbor}}" alpha="100" hollow="true" />


     <shape type="rectangle" position="2x22" size="197x120" color="#000000" alpha="60" hollow="false" />
     <shape type="rectangle" position="2x22" size="197x120" color="{{@boxbg}}" alpha="{{@boxalpha}}" hollow="false" />
     <shape type="rectangle" position="2x22" size="197x120" color="#000000" alpha="100" hollow="true" />
     <shape type="rectangle" position="2x22" size="197x120" color="{{@boxbor}}" alpha="100" hollow="true" />


     <shape type="rectangle" position="201x22" size="148x40" color="#000000" alpha="60" hollow="false" />
     <shape type="rectangle" position="201x22" size="148x40" color="{{@boxbg}}" alpha="{{@boxalpha}}" hollow="false" />
     <shape type="rectangle" position="201x22" size="148x40" color="#000000" alpha="100" hollow="true" />
     <shape type="rectangle" position="201x22" size="148x40" color="{{@boxbor}}" alpha="100" hollow="true" />


     <shape type="rectangle" position="351x22" size="148x40" color="#000000" alpha="60" hollow="false" />
     <shape type="rectangle" position="351x22" size="147x40" color="{{@boxbg}}" alpha="{{@boxalpha}}" hollow="false" />
     <shape type="rectangle" position="351x22" size="148x40" color="#000000" alpha="100" hollow="true" />
     <shape type="rectangle" position="351x22" size="147x40" color="{{@boxbor}}" alpha="100" hollow="true" />


     <shape type="rectangle" position="201x64" size="297x78" color="#000000" alpha="60" hollow="false" />
     <shape type="rectangle" position="201x64" size="297x78" color="{{@boxbg}}" alpha="{{@boxalpha}}" hollow="false" />
     <shape type="rectangle" position="201x64" size="297x78" color="#000000" alpha="100" hollow="true" />
     <shape type="rectangle" position="201x64" size="297x78" color="{{@boxbor}}" alpha="100" hollow="true" />


     <!-- TITLE TEXTS -->
     <!-- TITLE TEXTS -->
     <text position="{{@titleleftpos+1}}x5" face="{{@titlefont}}" size="{{@titlesize}}" color="#1f6f1f"><line>{{@titletext}}</line></text>
     <text position="{{@titleleftpos+1}}x5" face="{{@titlefont}}" size="{{@titlesize}}" color="{{@titleshadow}}"><line>{{@titletext}}</line></text>
     <text position="{{@titleleftpos}}x4" face="{{@titlefont}}" size="{{@titlesize}}"><line>{{@titletext}}</line></text>
     <text position="{{@titleleftpos}}x4" face="{{@titlefont}}" size="{{@titlesize}}"><line>{{@titletext}}</line></text>


     <text position="51x23" face="{{@titlefont}}" size="{{@titlesize}}"><line>Recently watched</line></text>
     <text position="51x23" face="{{@titlefont}}" size="{{@titlesize}}"><line>Recently watched</line></text>


     <text position="243x23" face="{{@titlefont}}" size="{{@titlesize}}"><line>Last finished</line></text>
     <text position="{{243-if(@useimages,0,36)}}x23" face="{{@titlefont}}" size="{{@titlesize}}"><line>Last finished</line></text>
     <text position="393x23" face="{{@titlefont}}" size="{{@titlesize}}"><line>Last voted</line></text>
     <text position="{{393-if(@useimages,0,36)}}x23" face="{{@titlefont}}" size="{{@titlesize}}"><line>Last voted</line></text>


     <text position="316x65" face="{{@titlefont}}" size="{{@titlesize}}"><line>Mylist stats</line></text>
     <text position="316x65" face="{{@titlefont}}" size="{{@titlesize}}"><line>Mylist stats</line></text>


     <!-- CURRENT TIME -->
     <!-- CURRENT TIME -->
     <text position="497x4" align="top-right" line-space="1.2"><line>Generated:</line><line>{{@gentime}}</line></text>
     <text position="497x4" align="top-right" line-space="1.2" display="{{@showgenstamp}}"><line>Generated:</line><line>{{@gentime}}</line></text>


     <!--  ANIME IMAGES -->
     <!--  ANIME IMAGES -->
     <image anime="{{ $watching_id1_aid }}" position="4x36" size="32x32" display="{{@wshow1}}" />
     <image anime="{{ $watching_id1_aid }}" position="4x36" size="32x32" display="{{@wshow1 && @useimages}}" />
     <image anime="{{ $watching_id2_aid }}" position="4x70" display="{{@wshow2}}" />
     <image anime="{{ $watching_id2_aid }}" position="4x70" display="{{@wshow2 && @useimages}}" />
     <image anime="{{ $watching_id3_aid }}" position="4x94" display="{{@wshow3}}" />
     <image anime="{{ $watching_id3_aid }}" position="4x94" display="{{@wshow3 && @useimages}}" />
     <image anime="{{ $watching_id4_aid }}" position="4x118" display="{{@wshow4}}" />
     <image anime="{{ $watching_id4_aid }}" position="4x118" display="{{@wshow4 && @useimages}}" />


     <image anime="{{ $finishedwatching_id1_aid }}" position="203x24" size="36x36" />
     <image anime="{{ $finishedwatching_id1_aid }}" position="203x24" size="36x36" display="{{@useimages}}" />
     <image anime="{{ $latestvote_id1_aid }}" position="353x24" size="36x36" />
     <image anime="{{ $latestvote_id1_aid }}" position="353x24" size="36x36" display="{{@useimages}}" />


     <!-- LATEST PROGBARS -->
     <!-- LATEST PROGBARS -->
     <shape type="rectangle" display="{{@progressbars && @wshow1}}" position="{{35 + ceil(161*@a1progress)}}x37" size="{{162 - ceil(162*@a1progress)}}x11" color="{{@pbbgcolor}}" alpha="60" />
     <shape type="rectangle" display="{{@progressbars && @wshow1}}" position="{{34-if(@useimages,0,31) + ceil((161+if(@useimages,0,32))*@a1progress)}}x37" size="{{162+if(@useimages,0,33) - ceil((163+if(@useimages,0,32))*@a1progress)}}x11" color="{{@pbbgcolor}}" alpha="60" />
     <shape type="rectangle" display="{{@progressbars && @wshow2}}" position="{{25 + ceil(171*@a2progress)}}x71" size="{{172 - ceil(172*@a2progress)}}x11" color="{{@pbbgcolor}}" alpha="60" />
     <shape type="rectangle" display="{{@progressbars && @wshow2}}" position="{{24-if(@useimages,0,21) + ceil((171+if(@useimages,0,22))*@a2progress)}}x71" size="{{172+if(@useimages,0,23) - ceil((173+if(@useimages,0,22))*@a2progress)}}x11" color="{{@pbbgcolor}}" alpha="60" />
     <shape type="rectangle" display="{{@progressbars && @wshow3}}" position="{{25 + ceil(171*@a3progress)}}x95" size="{{172 - ceil(172*@a3progress)}}x11" color="{{@pbbgcolor}}" alpha="60" />
     <shape type="rectangle" display="{{@progressbars && @wshow3}}" position="{{24-if(@useimages,0,21) + ceil((171+if(@useimages,0,22))*@a3progress)}}x95" size="{{172+if(@useimages,0,23) - ceil((173+if(@useimages,0,22))*@a3progress)}}x11" color="{{@pbbgcolor}}" alpha="60" />
     <shape type="rectangle" display="{{@progressbars && @wshow4}}" position="{{25 + ceil(171*@a4progress)}}x119" size="{{172 - ceil(172*@a4progress)}}x11" color="{{@pbbgcolor}}" alpha="60" />
     <shape type="rectangle" display="{{@progressbars && @wshow4}}" position="{{24-if(@useimages,0,21) + ceil((171+if(@useimages,0,22))*@a4progress)}}x119" size="{{172+if(@useimages,0,23) - ceil((173+if(@useimages,0,22))*@a4progress)}}x11" color="{{@pbbgcolor}}" alpha="60" />


     <shape type="rectangle" display="{{@progressbars && @wshow1}}" position="36x37" size="{{ceil(161*@a1progress)}}x11" color="{{@pbfgcolor}}" alpha="60" />
     <shape type="rectangle" display="{{@progressbars && @wshow1}}" position="{{35-if(@useimages,0,31)}}x37" size="{{ceil((161+if(@useimages,0,33))*@a1progress)}}x11" color="{{@pbfgcolor}}" alpha="60" />
     <shape type="rectangle" display="{{@progressbars && @wshow2}}" position="26x71" size="{{ceil(171*@a2progress)}}x11" color="{{@pbfgcolor}}" alpha="60" />
     <shape type="rectangle" display="{{@progressbars && @wshow2}}" position="{{25-if(@useimages,0,21)}}x71" size="{{ceil((171+if(@useimages,0,23))*@a2progress)}}x11" color="{{@pbfgcolor}}" alpha="60" />
     <shape type="rectangle" display="{{@progressbars && @wshow3}}" position="26x95" size="{{ceil(171*@a3progress)}}x11" color="{{@pbfgcolor}}" alpha="60" />
     <shape type="rectangle" display="{{@progressbars && @wshow3}}" position="{{25-if(@useimages,0,21)}}x95" size="{{ceil((171+if(@useimages,0,23))*@a3progress)}}x11" color="{{@pbfgcolor}}" alpha="60" />
     <shape type="rectangle" display="{{@progressbars && @wshow4}}" position="26x119" size="{{ceil(171*@a4progress)}}x11" color="{{@pbfgcolor}}" alpha="60" />
     <shape type="rectangle" display="{{@progressbars && @wshow4}}" position="{{25-if(@useimages,0,21)}}x119" size="{{ceil((171+if(@useimages,0,23))*@a4progress)}}x11" color="{{@pbfgcolor}}" alpha="60" />


     <!-- LATEST NAMES -->
     <!-- LATEST NAMES -->
     <text position="38x38" display="{{@wshow1}}">
     <text position="{{38-if(@useimages,0,31)}}x38" display="{{@wshow1}}">
       <line face="{{@atitlefont}}" size="{{@atitlesize}}">{{ truncatew($watching_id1_aname,129,@atitlefont,@atitlesize,"...") }}</line>
       <line face="{{@atitlefont}}" size="{{@atitlesize}}">{{ truncatew($watching_id1_aname,129+if(@useimages,0,30),@atitlefont,@atitlesize,"...") }}</line>
       <line>{{@wtime1}}</line>
       <line>{{@wtime1}}</line>
       <line>{{truncatew("Ep. " + $latestwatched_id1_enumber + ': "' + $latestwatched_id1_ename + '"',159,@adatafont,@adatasize,'..."')}}</line>
       <line>{{truncatew("Ep. " + $latestwatched_id1_enumber + ': "' + $latestwatched_id1_ename + '"',159+if(@useimages,0,30),@adatafont,@adatasize,'..."')}}</line>
     </text>
     </text>
     <text position="30x72" display="{{@wshow2}}">
     <text position="{{30-if(@useimages,0,23)}}x72" display="{{@wshow2}}">
       <line face="{{@atitlefont}}" size="{{@atitlesize}}">{{ truncatew($watching_id2_aname,137,@atitlefont,@atitlesize,"...") }}</line>
       <line face="{{@atitlefont}}" size="{{@atitlesize}}">{{ truncatew($watching_id2_aname,137+if(@useimages,0,22),@atitlefont,@atitlesize,"...") }}</line>
       <line>{{@wtime2}}</line>
       <line>{{@wtime2}}</line>
     </text>
     </text>
     <text position="30x96" display="{{@wshow3}}">
     <text position="{{30-if(@useimages,0,23)}}x96" display="{{@wshow3}}">
       <line face="{{@atitlefont}}" size="{{@atitlesize}}">{{ truncatew($watching_id3_aname,137,@atitlefont,@atitlesize,"...") }}</line>
       <line face="{{@atitlefont}}" size="{{@atitlesize}}">{{ truncatew($watching_id3_aname,137+if(@useimages,0,22),@atitlefont,@atitlesize,"...") }}</line>
       <line>{{@wtime3}}</line>
       <line>{{@wtime3}}</line>
     </text>
     </text>
     <text position="30x120" display="{{@wshow4}}">
     <text position="{{30-if(@useimages,0,23)}}x120" display="{{@wshow4}}">
       <line face="{{@atitlefont}}" size="{{@atitlesize}}">{{ truncatew($watching_id4_aname,137,@atitlefont,@atitlesize,"...") }}</line>
       <line face="{{@atitlefont}}" size="{{@atitlesize}}">{{ truncatew($watching_id4_aname,137+if(@useimages,0,22),@atitlefont,@atitlesize,"...") }}</line>
       <line>{{@wtime4}}</line>
       <line>{{@wtime4}}</line>
     </text>
     </text>
Line 1,728: Line 1,751:


     <!-- LAST FINISHED -->
     <!-- LAST FINISHED -->
     <text position="243x36" line-space="1.2">
     <text position="{{243-if(@useimages,0,36)}}x36" line-space="1.2">
       <line face="{{@atitlefont}}" size="{{@atitlesize}}">{{ truncatew($finishedwatching_id1_aname,119,@atitlefont,@atitlesize,"...") }}</line>
       <line face="{{@atitlefont}}" size="{{@atitlesize}}">{{ truncatew($finishedwatching_id1_aname,109+if(@useimages,0,36),@atitlefont,@atitlesize,"...") }}</line>
       <line>{{$finishedwatching_id1_eps}} episode{{if($finishedwatching_id1_eps==1,"","s")}}</line>
       <line>{{$finishedwatching_id1_eps}} episode{{if($finishedwatching_id1_eps==1,"","s")}}</line>
       <line>Rating: {{if(@lfrating==0,"-.--",precision(@lfrating,2))}}</line>
       <line>Rating: {{if(@lfrating==0,"-.--",precision(@lfrating,2))}}</line>
     </text>
     </text>
     <!-- LAST VOTED -->
     <!-- LAST VOTED -->
     <text position="393x36" line-space="1.2">
     <text position="{{393-if(@useimages,0,36)}}x36" line-space="1.2">
       <line face="{{@atitlefont}}" size="{{@atitlesize}}">{{ truncatew($latestvote_id1_aname,119,@atitlefont,@atitlesize,"...") }}</line>
       <line face="{{@atitlefont}}" size="{{@atitlesize}}">{{ truncatew($latestvote_id1_aname,109+if(@useimages,0,36),@atitlefont,@atitlesize,"...") }}</line>
       <line>{{if(@lveps==1,"One ep.",@lveps+" eps")}}, R: {{if(@lvrating==0,"-.--",precision(@lvrating,2))}}</line>
       <line>{{if(@lveps==1,"One ep.",@lveps+" eps")}}, R: {{if(@lvrating==0,"-.--",precision(@lvrating,2))}}</line>
       <line>My vote: {{precision($latestvote_id1_vote,1)}}</line>
       <line>My vote: {{precision($latestvote_id1_vote,1)}}</line>
Line 1,774: Line 1,797:


     <text position="{{@timeleftpos}}x121">
     <text position="{{@timeleftpos}}x121">
       <line>{{@timetext}}</line>
       <line display="{{@showtotaltime}}">{{@timetext}}</line>
     </text>
     </text>


     <!-- CREDIT - cannot be enforced but I really appreciate if you leave this here -->
     <!-- CREDIT - cannot be enforced but I really appreciate if you leave this here -->
     <text position="496x140" align="bottom-right" face="{{@atitlefont}}" size="{{@atitlesize}}">
     <text position="496x140" align="bottom-right" face="{{@atitlefont}}" size="{{@atitlesize}}">
       <line>Template design by Soulweaver</line>
       <line>Template design by Soulweaver * V{{precision(@version,2)}}</line>
     </text>
     </text>
     <text display="false" position="0x0" face="{{@atitlefont}}" size="{{@atitlesize}}">
     <text display="true" position="0x0" face="{{@atitlefont}}" size="{{@atitlesize}}" color="#ff0000">
       <line>Currently editing the template, may appear broken at times</line>
       <line>Currently editing the template, may appear broken at times</line>
     </text>
     </text>
92

edits

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