SigServer:Examples: Difference between revisions

Jump to navigation Jump to search
(→‎Sig2: Updated)
Line 1,196: Line 1,196:
   </text>
   </text>


</layout>
</signature>
</pre>
== Signature Example 9 ==
by [[User:Din1031|din1031]] 2008.07.25
=== Signature Image ===
[[Image:SigImage9.png]]
Used a costume Background [[Image:1847.png]]
But you can normal use each kind of image
Size: 350x60
Format: PNG (But work with other, too)
At the top you can set some colors to make it more suitable for you Sig image.
=== Source ===
<pre>
<signature>
<!-- This is for a image size 350x60 !-->
<!-- Generate some Settings for easier Handling !-->
<!-- Text Field Color -->
{{@text_bg_color="#CAF7DF";}}
{{@text_bg_alpha=50}}
<!-- Watch Meter Color -->
{{@watchmeter_color="#009966";}}
<!-- Personal date format http://de2.php.net/manual/en/function.date.php -->
{{@personal_date="jS F Y"}}
{{@personal_time="H:i"}}
<!-- This a Small Feature that show today and yesterday set it true/false if you like it -->
{{@personal_showtoday=true}}
<!-- Nick Position Correction -->
{{@textfield_nick_top_pos=43}}
{{@textfield_nick_left_pos=8}}
{{@textfield_nick_font_size=11}}
<!-- If you not know what you do, you should do nothing bellow this line ;) -->
<!-- Nick Length 8 is the best... it will be truncated -->
{{@textfield_nick_length=8}}
<!-- Time Calculation -->
{{@time_days=floor($stat_anidb_viewedlength / 1440)}}
{{@time_hour=floor($stat_anidb_viewedlength / 60) - @time_days * 24}}
{{@time_mins=$stat_anidb_viewedlength - floor($stat_anidb_viewedlength / 60) * 60}}
<!-- Top Positions of the Textfields -->
{{@textfield_min_top_pos=1}}
<!-- Personal Date prepareing -->
{{@today=date("Y-n-j")}}
{{@is_today=if(@today==date("Y-n-j",$latestwatched_id1_viewdate), @personal_showtoday, false)}}
<!-- Yesterday is more work... because no unix timestamp << -->
{{@current_year=date("Y")}}
{{@lastyear=if(@today==(@current_year + "-1-1"),true,false)}}
{{@yesterday=date("j")-1}}
{{@last_month=if(@yesterday==0,if(@lastyear,false,true),false)}}
{{@current_month_gna=if(@last_month,date("n")-1,date("n"));}}
{{@last_day=date("t", @current_year+"-"+@current_month_gna+"-25T10:10:10");}}
{{@yesterday_stamp=if(@lastyear,(@current_year-1) + "-12-31T10:10:10", @current_year + "-" + @current_month_gna + "-" + if(@last_month,@last_day,@yesterday) + "T10:10:10");}}
{{@is_yesterday=if(date("Y-m-j",@yesterday_stamp)==date("Y-m-j", $latestwatched_id1_viewdate),@personal_showtoday,false)}}
{{@current_date=notempty(@personal_date, if(@is_today, "Today", if(@is_yesterday, "Yesterday", date(@personal_date, $latestwatched_id1_viewdate))))}}
{{@date_output=notempty(@personal_date, " on " + @current_date, "")}}
{{@time_output=notempty(@personal_time, " at " + date(@personal_time, $latestwatched_id1_viewdate), "")}}
<variables>
    <default element="text" name="face" value="proggytiny"/>
    <default element="text" name="size" value="12"/>
    <default element="text" name="line-space" value="1"/>
</variables>
<layout>
<!-- Nickname, should not be longer than 8 letters -->
<text position="{{@textfield_nick_left_pos}}x{{@textfield_nick_top_pos}}" angle="90" alpha="80" size="{{@textfield_nick_font_size}}">
<line>{{truncate($Sig_username, if(@textfield_nick_length > 0, @textfield_nick_length , 8))}}</line>
</text>
<!-- Some Basics Stats -->
<shape type="rectangle"
position="58x{{@textfield_min_top_pos}}"
size="162x36"
color="{{@text_bg_color}}"
alpha="{{@text_bg_alpha}}">
</shape>
<text position="60x{{@textfield_min_top_pos + 9}}">
<line> MyList / Anidb Stats</line>
<line>{{padding($stat_mylist_acount, 7, "right");}} / {{padding($anidbstat_acount,7, "left")}} Animes</line>
<line>{{padding($stat_mylist_epcount, 7, "right");}} / {{padding($anidbstat_epcount,7, "left")}} Episodes</line>
</text>
<!-- The time i wasted for Anime :D -->
<shape type="rectangle"
position="228x{{@textfield_min_top_pos}}"
size="82x36"
color="{{@text_bg_color}}"
alpha="{{@text_bg_alpha}}">
</shape>
<text position="230x{{@textfield_min_top_pos + 9}}">
<line>Watchtime for</line>
<line>{{padding($stat_anidb_viewedepcnt, 6, "right")}} Eps</line>
<line>{{padding(@time_days, 4, "right")}}d:{{if(length(@time_hour) == 1, "0" , "")}}{{@time_hour}}h:{{if(length(@time_mins) == 1, "0" , "")}}{{@time_mins}}m</line>
</text>
<!-- Latest Anime Watch -->
<shape type="rectangle"
position="58x{{@textfield_min_top_pos + 39}}"
size="252x20"
color="{{@text_bg_color}}"
alpha="{{@text_bg_alpha}}">
</shape>
<text position="60x{{@textfield_min_top_pos + 46}}" face="tempesta-6" size="6" line-space="1.5">
<line>Last Watch{{@date_output}}{{@time_output}}:</line>
<line>{{if(length($latestwatched_id1_aname) > 39, truncate($latestwatched_id1_aname, 36, "..."), $latestwatched_id1_aname)}} ({{$latestwatched_id1_enumber}})</line>
</text>
<!-- Percent Watched -->
<shape type="rectangle"
position="338x2"
size="10x56"
hollow="true"
alpha="50">
</shape>
<shape type="rectangle"
position="340x{{3+54-round($stat_anidb_ownviewedp*0.54)}}" color="{{@watchmeter_color}}"
size="5x{{round($stat_anidb_ownviewedp*0.54)}}" alpha="50"></shape>
<text position="334x60" angle="90" alpha="80" size="11">
<line>{{padding($stat_anidb_ownviewedp,2,"right");}}% watched</line>
</text>
<text position="323x37" angle="90" alpha="80" size="11">
<line>Mylist</line>
</text>
</layout>
</layout>
</signature>
</signature>
6

edits

Navigation menu

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