Difference between revisions of "Template:MOB Location"
From Project: Gorgon Wiki
m |
|||
Line 1: | Line 1: | ||
− | {| table style="margin:0 0 0.5em 1em; border:1px solid #ccc; text-align:left; background:#f9f9f9;" cellpadding=" | + | == Location == |
+ | {| table style="margin:0 0 0.5em 1em; border:1px solid #ccc; text-align:left; background:#f9f9f9;" cellpadding="2" | ||
|- valign="top" | |- valign="top" | ||
|- | |- | ||
Line 45: | Line 46: | ||
}} | }} | ||
|} | |} | ||
− | |||
{{ #if:{{{location1|}}} | ; [[{{{location1}}}]] {{ #if:{{{desc1|}}}|: {{{desc1}}} }} [[Category:{{{location1}}} Creatures]] }} | {{ #if:{{{location1|}}} | ; [[{{{location1}}}]] {{ #if:{{{desc1|}}}|: {{{desc1}}} }} [[Category:{{{location1}}} Creatures]] }} | ||
{{ #if:{{{location2|}}} | ; [[{{{location2}}}]] {{ #if:{{{desc2|}}}|: {{{desc2}}} }} [[Category:{{{location2}}} Creatures]] }} | {{ #if:{{{location2|}}} | ; [[{{{location2}}}]] {{ #if:{{{desc2|}}}|: {{{desc2}}} }} [[Category:{{{location2}}} Creatures]] }} |
Revision as of 19:21, 29 April 2017
Contents
Location
Syntax
{{MOB Location | location1 = | desc1 = | armor1= | rage1= | health1= | location2 = | desc2 = | armor2 = | health2 = | rage2 = | location3 = | desc3 = | armor3 = | health3 = | rage3 = | location4 = | desc4 = | location5 = | desc5 = | location6 = | desc6 = | location7 = | desc7 = | location8 = | desc8 = | location9 = | desc9 =
Parameters
- location1
- The first place this mob is found.
- desc1
- A short description of where or how to find it in location1.
- armor1
- The amount of armor the mob has in location1.
- health1
- The amount of health the mob has in location1.
- rage1
- The amount of rage the mob has in location1.
- location2
- The second place this mob is found.
- desc2
- A short description of where or how to find it in location2.
- armor2
- The amount of armor the mob has in location2.
- health2
- The amount of health the mob has in location2.
- rage2
- The amount of rage the mob has in location2.
And so on, up to 9 possible locations. Let me know if there's a creature with more than that, we can add more parameters easily enough. Note that all locations are optional - you can call the template with no parameters if you want, and it'll just display the "Location" header.
Description
This automatically adds the location category to that page. So if you entered location1 = Serbule, [[Category:Serbule Creatures]] would be added for you.