Difference between revisions of "Template:Edep"

From Discworld MUD Wiki
Jump to: navigation, search
(jlYWwTQCzrGjnT)
(Undo revision 16810 by 203.121.36.51 (Talk))
Line 1: Line 1:
  http://www.modernelectricguitars.com/propecia.html propecia online 06687 http://www.agamistathemovie.com/ultram.html online pharmacy ultram mozilla pbmqvp http://www.booksfreedownload.info/acomplia.html buy acomplia 814990 http://www.notquitebettycrocker.com effects of ambien and prozac 8)
+
<noinclude>{{documentation}}</noinclude><includeonly>
 +
{| border="1" style="font-size:80%; border:1px solid darkgray; padding:0px" cellspacing="0" cellpadding="0"
 +
  |-
 +
| rowspan="3" style="line-height:105%; border:1px solid darkgray; border-left-width:0px; border-right-width:1px; border-top-width:0px; border-bottom-width:0px; width:80px; text-indent:5%" | [[{{{skill|missing link}}}|{{{shortname|''missing name!''}}}]]
 +
| rowspan="3" style="line-height:105%; border:0px; width:3px" | &nbsp;
 +
| style="line-height:20%; border:1px solid black; border-left-width:0px; border-right-width:1px; border-top-width:0px; border-bottom-width:0px;" | &nbsp;
 +
| colspan="5" style="line-height:20%; border:1px solid black; border-left-width:0px; border-right-width:1px; border-top-width:0px; border-bottom-width:0px;" | &nbsp;
 +
| colspan="5" style="line-height:20%; border:0px;" | &nbsp;
 +
| style="line-height:20%; border:1px solid black; border-left-width:1px; border-right-width:0px; border-top-width:0px; border-bottom-width:0px;" | &nbsp;
 +
| rowspan="3" style="line-height:105%; border:0px; width:3px" | &nbsp;
 +
|-
 +
| style="line-height:105%; border:1px solid black; border-top-width:0px; border-bottom-width:0px; border-left-width:0px; border-right-width:1px; width:{{#expr:({{{threshold-low}}} - {{{scale-min}}} + {{{half-life}}}*ln(1-0.05)/ln(0.5))/({{{scale-max}}} - {{{scale-min}}}) * {{{barsize|300}}}}}px; background-color:#FF0000" | &nbsp;
 +
| style="border:0px; width:{{#expr:({{{half-life}}}*ln(1-0.1/(1-0.05))/ln(0.5))/({{{scale-max}}} - {{{scale-min}}}) * {{{barsize|300}}}}}px; background-color:#FF3300" |
 +
| style="border:0px; width:{{#expr:({{{half-life}}}*ln(1-0.1/(1-0.15))/ln(0.5))/({{{scale-max}}} - {{{scale-min}}}) * {{{barsize|300}}}}}px; background-color:#FF6600" |
 +
| style="border:0px; width:{{#expr:({{{half-life}}}*ln(1-0.1/(1-0.25))/ln(0.5))/({{{scale-max}}} - {{{scale-min}}}) * {{{barsize|300}}}}}px; background-color:#FF9A00" |
 +
| style="border:0px; width:{{#expr:({{{half-life}}}*ln(1-0.1/(1-0.35))/ln(0.5))/({{{scale-max}}} - {{{scale-min}}}) * {{{barsize|300}}}}}px; background-color:#FFCD00" |
 +
| style="border:1px solid black; border-top-width:0px; border-bottom-width:0px; border-left-width:0px; border-right-width:1px; width:{{#expr:({{{half-life}}}*ln(1-0.05/(1-0.45))/ln(0.5))/({{{scale-max}}} - {{{scale-min}}}) * {{{barsize|300}}}}}px; background-color:#FFFF00" |
 +
| style="border:0px; width:{{#expr:({{{half-life}}}*ln(1-0.05/(1-0.50))/ln(0.5))/({{{scale-max}}} - {{{scale-min}}}) * {{{barsize|300}}}}}px; background-color:#FFFF00" |
 +
| style="border:0px; width:{{#expr:({{{half-life}}}*ln(1-0.1/(1-0.55))/ln(0.5))/({{{scale-max}}} - {{{scale-min}}}) * {{{barsize|300}}}}}px; background-color:#CDFF00" |
 +
| style="border:0px; width:{{#expr:({{{half-life}}}*ln(1-0.1/(1-0.65))/ln(0.5))/({{{scale-max}}} - {{{scale-min}}}) * {{{barsize|300}}}}}px; background-color:#9AFF00" |
 +
| style="border:0px; width:{{#expr:({{{half-life}}}*ln(1-0.1/(1-0.75))/ln(0.5))/({{{scale-max}}} - {{{scale-min}}}) * {{{barsize|300}}}}}px; background-color:#66FF00" |
 +
| style="border:0px; width:{{#expr:({{{half-life}}}*ln(1-0.1/(1-0.85))/ln(0.5))/({{{scale-max}}} - {{{scale-min}}}) * {{{barsize|300}}}}}px; background-color:#33FF00" |
 +
| style="border:1px solid black; border-top-width:0px; border-bottom-width:0px; border-left-width:1px; border-right-width:0px; width:{{#expr:({{{scale-max}}} - {{{threshold-low}}} - {{{half-life}}}*ln(1-0.95)/ln(0.5))/({{{scale-max}}} - {{{scale-min}}}) * {{{barsize|300}}}}}px; background-color:#00FF00" |
 +
|-
 +
| style="line-height:20%; border:1px solid black; border-left-width:0px; border-right-width:1px; border-top-width:0px; border-bottom-width:0px;" | &nbsp;
 +
| colspan="5" style="line-height:20%; border:1px solid black; border-left-width:0px; border-right-width:1px; border-top-width:0px; border-bottom-width:0px;" | &nbsp;
 +
| colspan="5" style="line-height:20%; border:0px;" | &nbsp;
 +
| style="line-height:20%; border:1px solid black; border-left-width:1px; border-right-width:0px; border-top-width:0px; border-bottom-width:0px;" | &nbsp;
 +
|-
 +
|}</includeonly>

Revision as of 05:21, 20 July 2010

[edit]

Documentation
This is a template for an exponential skill dependency. It creates a horizontal bar with scale min to max, and then colours the sections within it, from red ('certainly fail') through yellow to green ('certainly succeed'). It inserts black vertical lines at the 5%, 50% and 95% marks.

The parameters are:

  • skill: Name of skill
  • shortname: Shortname (usually 2.2.2.2 format, eg. 'ma.me.el.ai').
  • barsize: Size of skillbar section in pixels (default: 300)
  • scale-min: Lowest scale value
  • scale-max: Highest scale value
  • threshold-low: Miniumum bonus for any chance of success
  • half-life: Increase in bonus required for chance of failure to halve.

Specifically, the gradations are:

0-5%
5-15%
15-25%
25-35%
35-45%
45-55%
55-65%
65-75%
75-85%
85-95%
95-100%