Difference between revisions of "Template:Judge-str"

From Discworld MUD Wiki
Jump to: navigation, search
(Go back to the neater implementation, problem is probably that the wiki need to reprocess the template's result need to recall how to do that)
(don't show here, just on include)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{!}}Judge-overall-{{{1|?}}}={{{2|?}}}<nowiki>
+
<includeonly>{{Infobox weapon
</nowiki>{{!}}Judge-attack-{{{1|?}}}={{{3|?}}}<nowiki>
+
<onlyinclude> | Judge-overall-{{{1|?}}}={{{2|?}}}
</nowiki>{{!}}Judge-parry-{{{1|?}}}={{{4|?}}}
+
| Judge-attack-{{{1|?}}}={{{3|?}}}
<noinclude><br style="clear:both;" />
+
| Judge-parry-{{{1|?}}}={{{4|?}}}</onlyinclude>
 +
}}</includeonly><noinclude><br style="clear:both;" />
 
{{documentation}}</noinclude>
 
{{documentation}}</noinclude>

Latest revision as of 19:02, 24 July 2011


[edit]

Documentation
 

Shortcut to enter in the {{Infobox weapon}} all the judges for a given strength value with less typing.

Parameters
1st: The number of your strength you had when judging the weapon, like "13" if you didn't rearrange and do not have stat effects.
2nd: The string or number for the overall judge.
3rd: The string or number for the ease of attack judge.
4th: The string or number for the ease of parry judge.

You can the put it inside an infobox by using subst to make it show properly, like this:

{{subst:Judge-str|9|10|10|11}}

Once you save it the wiki automagically changes it so that it looks like the equivalent long form, this was the only thing that made this template work.


Examples
Judge-str
Weapon information
Precise dimensions No information
Material No information
Weight 3 3/9 lb
Thaums/sec  ? stable / ? talisman / ? max
Hands 2
Commands Pierce, Slice, Impale, Behead, Iai
Melee type None
Judge data
Speed 6 Quick 6
Maximum damage 8 Quite high 8
Average damage 3 Rather low 3
Str Overall Attack ease Parry ease
23 11 rather good
11
10 easy
10
12 very easy
12

Instead of typing the following with the result to the right:

{{Infobox weapon
 | Weight = 3 3/9 lb
 | Commands = [[Pierce]], [[Slice (command)|Slice]], [[Impale]], [[Behead]], [[Iai]]
 | Hands = 2
 | Type = None
 | Judge-overall-23 = 11
 | Judge-attack-23 = 10
 | Judge-parry-23 = 12
 | Judge-speed = Quick
 | Judge-max = Quite high
 | Judge-ave = Rather low
}}









Judge-str
Weapon information
Precise dimensions No information
Material No information
Weight 3 3/9 lb
Thaums/sec  ? stable / ? talisman / ? max
Hands 2
Commands Pierce, Slice, Impale, Behead, Iai
Melee type None
Judge data
Speed 6 Quick 6
Maximum damage 8 Quite high 8
Average damage 3 Rather low 3
Str Overall Attack ease Parry ease
13 11 rather good
11
10 easy
10
12 very easy
12

You can type this with the same result on your right:

{{Infobox weapon
 | Weight = 3 3/9 lb
 | Commands = [[Pierce]], [[Slice (command)|Slice]], [[Impale]], [[Behead]], [[Iai]]
 | Hands = 2
 | Type = None
{{subst:Judge-str|13|11|10|12}}
 | Judge-speed = Quick
 | Judge-max = Quite high
 | Judge-ave = Rather low
}}


Now you might check the source of this page and think I didn't use this template to make the second example, but that's what the substitution does when you save. It still saves typing it in full when converting tables using {{rbkey}}.