Difference between revisions of "Template:MOB Location"
From Project: Gorgon Wiki
m (Testing.) |
m |
||
Line 1: | Line 1: | ||
==Location== | ==Location== | ||
− | {{ #if:{{{location1|}}} | ; [[{{{location1}}}]] {{ #if:{{{desc1|}}}|: {{{desc1}}} }} {{ #if:{{{ | + | {{ #if:{{{location1|}}} | ; [[{{{location1}}}]] {{ #if:{{{desc1|}}}|: {{{desc1}}} }} {{ #if:{{{stats1|}}}|: {{{stats1}}} }} [[Category:{{{location1}}} Creatures]] }} |
{{ #if:{{{location2|}}} | ; [[{{{location2}}}]] {{ #if:{{{desc2|}}}|: {{{desc2}}} }} [[Category:{{{location2}}} Creatures]] }} | {{ #if:{{{location2|}}} | ; [[{{{location2}}}]] {{ #if:{{{desc2|}}}|: {{{desc2}}} }} [[Category:{{{location2}}} Creatures]] }} | ||
{{ #if:{{{location3|}}} | ; [[{{{location3}}}]] {{ #if:{{{desc3|}}}|: {{{desc3}}} }} [[Category:{{{location3}}} Creatures]] }} | {{ #if:{{{location3|}}} | ; [[{{{location3}}}]] {{ #if:{{{desc3|}}}|: {{{desc3}}} }} [[Category:{{{location3}}} Creatures]] }} | ||
Line 14: | Line 14: | ||
| location1 = | | location1 = | ||
| desc1 = | | desc1 = | ||
− | | | + | | stats1 = [[Image:Armor-icon-30px.gif|Armor]]: X [[Image:Health-icon-30px.gif|Health]]: X [[Image:Rage-icon-30px.gif|Rage]]: X |
− | | | ||
− | | | ||
| location2 = | | location2 = | ||
| desc2 = | | desc2 = | ||
− | | | + | | stats2 = |
− | |||
− | |||
| location3 = | | location3 = | ||
| desc3 = | | desc3 = |
Revision as of 18:24, 29 April 2017
Contents
Location
Syntax
{{MOB Location | location1 = | desc1 = | stats1 = [[Image:Armor-icon-30px.gif|Armor]]: X [[Image:Health-icon-30px.gif|Health]]: X [[Image:Rage-icon-30px.gif|Rage]]: X | location2 = | desc2 = | stats2 = | location3 = | desc3 = | 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.