Difference between revisions of "Template:MOB Location"
From Project: Gorgon Wiki
Line 1: | Line 1: | ||
== Location == | == Location == | ||
{| table style="margin:0 0 0.5em 1em; border:1px solid #ccc; text-align:left; background:#f9f9f9; width:500px;" cellpadding="2" | {| table style="margin:0 0 0.5em 1em; border:1px solid #ccc; text-align:left; background:#f9f9f9; width:500px;" cellpadding="2" | ||
+ | |- valign="top" | ||
+ | |- | ||
+ | {{ #if:{{{location1|}}} | | ||
+ | {{pipe}}- | ||
+ | ! style="background:#e0d7d7; width:100px;" align="left" {{pipe}} {{{location1|}}} | ||
+ | }} | ||
+ | |- | ||
+ | {{ #if:{{{desc1|}}} |{| table style="margin:0 0 0.5em 1em; border:1px solid #ccc; text-align:left; background:#f9f9f9; width:500px;" cellpadding="2" | ||
|- valign="top" | |- valign="top" | ||
|- | |- | ||
Line 22: | Line 30: | ||
|- | |- | ||
{{ #if:{{{desc2|}}} | | {{ #if:{{{desc2|}}} | | ||
− | |||
{{pipe}}{{{desc2}}} | {{pipe}}{{{desc2}}} | ||
}} | }} | ||
Line 36: | Line 43: | ||
|- | |- | ||
{{ #if:{{{desc3|}}} | | {{ #if:{{{desc3|}}} | | ||
− | |||
{{pipe}}{{{desc3}}} | {{pipe}}{{{desc3}}} | ||
}} | }} | ||
Line 43: | Line 49: | ||
{{pipe}}- | {{pipe}}- | ||
{{pipe}}[[Image:Armor-icon-30px.gif|Armor]] {{{armor3}}} [[Image:Health-icon-30px.gif|Health]] {{{health3}}} [[Image:Rage-icon-30px.gif|Rage]] {{{rage3}}} | {{pipe}}[[Image:Armor-icon-30px.gif|Armor]] {{{armor3}}} [[Image:Health-icon-30px.gif|Health]] {{{health3}}} [[Image:Rage-icon-30px.gif|Rage]] {{{rage3}}} | ||
+ | }} | ||
+ | {{ #if:{{{location4|}}} | | ||
+ | {{pipe}}- | ||
+ | ! style="background:#e0d7d7; width:100px;" align="left" {{pipe}} {{{location4|}}} | ||
+ | }} | ||
+ | |- | ||
+ | {{ #if:{{{desc4|}}} | | ||
+ | {{pipe}}{{{desc4}}} | ||
+ | }} | ||
+ | |- | ||
+ | {{ #if:{{{armor4|}}} | | ||
+ | {{pipe}}- | ||
+ | {{pipe}}[[Image:Armor-icon-30px.gif|Armor]] {{{armor4}}} [[Image:Health-icon-30px.gif|Health]] {{{health4}}} [[Image:Rage-icon-30px.gif|Rage]] {{{rage4}}} | ||
+ | }} | ||
+ | {{ #if:{{{location5|}}} | | ||
+ | {{pipe}}- | ||
+ | ! style="background:#e0d7d7; width:100px;" align="left" {{pipe}} {{{location5|}}} | ||
+ | }} | ||
+ | |- | ||
+ | {{ #if:{{{desc5|}}} | | ||
+ | {{pipe}}{{{desc5}}} | ||
+ | }} | ||
+ | |- | ||
+ | {{ #if:{{{armor5|}}} | | ||
+ | {{pipe}}- | ||
+ | {{pipe}}[[Image:Armor-icon-30px.gif|Armor]] {{{armor5}}} [[Image:Health-icon-30px.gif|Health]] {{{health5}}} [[Image:Rage-icon-30px.gif|Rage]] {{{rage5}}} | ||
+ | }} | ||
+ | {{ #if:{{{location6|}}} | | ||
+ | {{pipe}}- | ||
+ | ! style="background:#e0d7d7; width:100px;" align="left" {{pipe}} {{{location6|}}} | ||
+ | }} | ||
+ | |- | ||
+ | {{ #if:{{{desc6|}}} | | ||
+ | {{pipe}}{{{desc6}}} | ||
+ | }} | ||
+ | |- | ||
+ | {{ #if:{{{armor6|}}} | | ||
+ | {{pipe}}- | ||
+ | {{pipe}}[[Image:Armor-icon-30px.gif|Armor]] {{{armor6}}} [[Image:Health-icon-30px.gif|Health]] {{{health6}}} [[Image:Rage-icon-30px.gif|Rage]] {{{rage6}}} | ||
+ | }} | ||
+ | {{ #if:{{{location7|}}} | | ||
+ | {{pipe}}- | ||
+ | ! style="background:#e0d7d7; width:100px;" align="left" {{pipe}} {{{location7|}}} | ||
+ | }} | ||
+ | |- | ||
+ | {{ #if:{{{desc7|}}} | | ||
+ | {{pipe}}{{{desc7}}} | ||
+ | }} | ||
+ | |- | ||
+ | {{ #if:{{{armor7|}}} | | ||
+ | {{pipe}}- | ||
+ | {{pipe}}[[Image:Armor-icon-30px.gif|Armor]] {{{armor3}}} [[Image:Health-icon-30px.gif|Health]] {{{health7}}} [[Image:Rage-icon-30px.gif|Rage]] {{{rage7}}} | ||
+ | }} | ||
+ | {{ #if:{{{location8|}}} | | ||
+ | {{pipe}}- | ||
+ | ! style="background:#e0d7d7; width:100px;" align="left" {{pipe}} {{{location8|}}} | ||
+ | }} | ||
+ | |- | ||
+ | {{ #if:{{{desc8|}}} | | ||
+ | {{pipe}}{{{desc8}}} | ||
+ | }} | ||
+ | |- | ||
+ | {{ #if:{{{armor8|}}} | | ||
+ | {{pipe}}- | ||
+ | {{pipe}}[[Image:Armor-icon-30px.gif|Armor]] {{{armor8}}} [[Image:Health-icon-30px.gif|Health]] {{{health8}}} [[Image:Rage-icon-30px.gif|Rage]] {{{rage8}}} | ||
+ | }} | ||
+ | {{ #if:{{{location9|}}} | | ||
+ | {{pipe}}- | ||
+ | ! style="background:#e0d7d7; width:100px;" align="left" {{pipe}} {{{location9|}}} | ||
+ | }} | ||
+ | |- | ||
+ | {{ #if:{{{desc9|}}} | | ||
+ | {{pipe}}{{{desc9}}} | ||
+ | }} | ||
+ | |- | ||
+ | {{ #if:{{{armor9|}}} | | ||
+ | {{pipe}}- | ||
+ | {{pipe}}[[Image:Armor-icon-30px.gif|Armor]] {{{armor9}}} [[Image:Health-icon-30px.gif|Healt9]] {{{health9}}} [[Image:Rage-icon-30px.gif|Rage]] {{{rage9}}} | ||
}} | }} | ||
|} | |} |
Revision as of 19:40, 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 = | armor4= | rage4= | health4= | location5 = | desc5 = | armor5= | rage5= | health5= | location6 = | desc6 = | armor6= | rage6= | health6= | location7 = | desc7 = | armor7= | rage7= | health7= | location8 = | desc8 = | armor8= | rage8= | health8= | location9 = | desc9 = | armor9= | rage9= | health9= }}
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.