FANDOM


This talk page is for discussing the Template:Charm log submission page.

Test example (for revision 4643147)

Based on revision 4643147.


<!--Simulation of the Corporeal beast-->
<!--As of August, 18th, the charmrates of Corp are: 22% 12% 21% 41% (96.5% charm droprate) -->
{{Var|kills|50}} <!-- All of the occurences of the {{{kills}}} template variable have been replaced by {{#var:kills}} in order to simulate the template perfectly.-->

<!-- Currently, the charm variables are way off, for the example. Edit to the number shown after the variable to fill in the "expected/perfect" numbers -->
{{Var|gold|130}} <!-- 13x50x22%=143 -->
{{Var|green|130}} <!-- 13x50x12%=78 -->
{{Var|crimson|130}} <!-- 13x50x21%=143 (22%, rounding to the nearest integer) -->
{{Var|blue|130}} <!-- 13x50x41%=273 (42%, rounding to the nearest integer) -->

{{Var|perkill|13}}<!--The Corporeal Beast drops 13 charms a time-->
{{Var|curgold|{{Charm:Corporeal_Beast|view=gold}}}}
{{Var|curgreen|{{Charm:Corporeal_Beast|view=green}}}}
{{Var|curcrimson|{{Charm:Corporeal_Beast|view=crimson}}}}
{{Var|curblue|{{Charm:Corporeal_Beast|view=blue}}}}
{{Var|curtot|{{#expr:100*({{Charm:Corporeal_Beast|view=kills}}-{{Charm:Corporeal_Beast|view=none}})/{{Charm:Corporeal_Beast|view=kills}} round 1}}}}

<!--The next part is between comment tags, because these variables have been defined previously, for the sake of the example (normally, it should be defined in the Charm log submission template).-->
<!--{{var|gold|{{#if:{{{gold|}}}|{{{gold}}}|0}}}}{{var|green|{{#if:{{{green|}}}|{{{green}}}|0}}}}{{var|crimson|{{#if:{{{crimson|}}}|{{{crimson}}}|0}}}}{{var|blue|{{#if:{{{blue|}}}|{{{blue}}}|0}}}}-->
{{#vardefine:totalcharms|{{#expr:{{,|{{#var:gold}}}}+{{,|{{#var:green}}}}+{{,|{{#var:crimson}}}}+{{,|{{#var:blue}}}} }}}}<noinclude>
'''''Check for spelling mistakes, then save the edits. After saving your edit, make sure that you check the page for additional error messages.''''' - '''Vandalism is NOT tolerated!'''
{| class="wikitable" style="text-align:center;"
! Total kills
! [[File:Gold charm.png|link=Gold charm|Gold charms]]
! [[File:Green charm.png|link=Green charm|Green charms]]
! [[File:Crimson charm.png|link=Crimson charm|Crimson charms]]
! [[File:Blue charm.png|link=Blue charm|Blue charms]]
! Kills with charms
</noinclude>{{#ifexpr:
{{#var:perkill|1}}>0|{{#ifexpr:({{#replace:{{#expr:{{#var:curtot}}-{{#expr:{{#var:totalcharms}}/{{,|{{#var:kills}}}}/{{#var:perkill|1}}*100 round 1}}}}|-|}})>10|{{!}}-
{{!}}colspan="6"{{!}}Your charm submission seems unlikely. '''Did you<br/>take into account that {{#var:perkill|multiple}} charms are dropped a time?'''|}}|}}
|- {{#ifexpr:({{#var:totalcharms}}/{{#var:perkill|1}}) > {{,|{{#var:kills}}}}|style="background:#FF6464;"}}
|{{#ifexpr:{{,|{{#var:kills}}}}<50|style="background:#FF6464;"{{!}}|}} {{formatnum:{{#var:kills}}}}
|{{#ifexpr:({{#replace:{{#expr:{{#var:curgold}}-{{#expr:{{,|{{#var:gold}}}}/{{,|{{#var:kills}}}}/{{#var:perkill|1}}*100 round 1}}}}|-|}})>10|class="diffwarn"|}}| {{formatnum:{{#var:gold}}}} ({{#expr:{{,|{{#var:gold}}}}/{{,|{{#var:kills}}}}/{{#var:perkill|1}}*100 round 1}}%)
|{{#ifexpr:({{#replace:{{#expr:{{#var:curgreen}}-{{#expr:{{,|{{#var:green}}}}/{{,|{{#var:kills}}}}/{{#var:perkill|1}}*100 round 1}}}}|-|}})>10|class="diffwarn"|}}| {{formatnum:{{#var:green}}}} ({{#expr:{{,|{{#var:green}}}}/{{,|{{#var:kills}}}}/{{#var:perkill|1}}*100 round 1}}%)
|{{#ifexpr:({{#replace:{{#expr:{{#var:curcrimson}}-{{#expr:{{,|{{#var:crimson}}}}/{{,|{{#var:kills}}}}/{{#var:perkill|1}}*100 round 1}}}}|-|}})>10|class="diffwarn"|}}| {{formatnum:{{#var:crimson}}}} ({{#expr:{{,|{{#var:crimson}}}}/{{,|{{#var:kills}}}}/{{#var:perkill|1}}*100 round 1}}%)
|{{#ifexpr:({{#replace:{{#expr:{{#var:curblue}}-{{#expr:{{,|{{#var:blue}}}}/{{,|{{#var:kills}}}}/{{#var:perkill|1}}*100 round 1}}}}|-|}})>10|class="diffwarn"|}}| {{formatnum:{{#var:blue}}}} ({{#expr:{{,|{{#var:blue}}}}/{{,|{{#var:kills}}}}/{{#var:perkill|1}}*100 round 1}}%)
|{{#ifexpr:({{#replace:{{#expr:{{#var:curtot}}-{{#expr:{{#var:totalcharms}}/{{,|{{#var:kills}}}}/{{#var:perkill|1}}*100 round 1}}}}|-|}})>10|class="diffwarn"|}}| {{formatnum:{{#var:totalcharms}}}} ({{#expr:{{#var:totalcharms}}/{{,|{{#var:kills}}}}/{{#var:perkill|1}}*100 round 1}}%)
|-<noinclude>
|}
----
To highlight percentages that are more than 10% different compared to current data, add <code>.diffwarn {background:#FF7F50;}</code> or any other [[H:CC| colour code]] instead of <code>#FF7F50</code> to [[Special:Mypage/skin.css|your personal CSS file]].

User:Mugger759/Signature 20:19, August 18, 2011 (UTC)

Community content is available under CC-BY-SA unless otherwise noted.