Difference between revisions of "Template:MOB Location"

From Project: Gorgon Wiki
Jump to: navigation, search
m
m (Well, it works, but isn't at all pretty. If someone wants to clean it up, that would be awesome.)
Line 1: Line 1:
 
==Location==
 
==Location==
 
{{ #if:{{{location1|}}} | ; [[{{{location1}}}]] {{ #if:{{{desc1|}}}|: {{{desc1}}} }} {{ #if:{{{stats1|}}}|: {{{stats1}}} }} [[Category:{{{location1}}} Creatures]] }}
 
{{ #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}}} }} {{ #if:{{{stats2|}}}|: {{{stats2}}} }}[[Category:{{{location2}}} Creatures]] }}
{{ #if:{{{location3|}}} | ; [[{{{location3}}}]] {{ #if:{{{desc3|}}}|: {{{desc3}}} }} [[Category:{{{location3}}} Creatures]] }}
+
{{ #if:{{{location3|}}} | ; [[{{{location3}}}]] {{ #if:{{{desc3|}}}|: {{{desc3}}} }} {{ #if:{{{stats3|}}}|: {{{stats3}}} }}[[Category:{{{location3}}} Creatures]] }}
{{ #if:{{{location4|}}} | ; [[{{{location4}}}]] {{ #if:{{{desc4|}}}|: {{{desc4}}} }} [[Category:{{{location4}}} Creatures]] }}
+
{{ #if:{{{location4|}}} | ; [[{{{location4}}}]] {{ #if:{{{desc4|}}}|: {{{desc4}}} }} {{ #if:{{{stats4|}}}|: {{{stats4}}} }}[[Category:{{{location4}}} Creatures]] }}
{{ #if:{{{location5|}}} | ; [[{{{location5}}}]] {{ #if:{{{desc5|}}}|: {{{desc5}}} }} [[Category:{{{location5}}} Creatures]] }}
+
{{ #if:{{{location5|}}} | ; [[{{{location5}}}]] {{ #if:{{{desc5|}}}|: {{{desc5}}} }} {{ #if:{{{stats5|}}}|: {{{stats5}}} }}[[Category:{{{location5}}} Creatures]] }}
{{ #if:{{{location6|}}} | ; [[{{{location6}}}]] {{ #if:{{{desc6|}}}|: {{{desc6}}} }} [[Category:{{{location6}}} Creatures]] }}
+
{{ #if:{{{location6|}}} | ; [[{{{location6}}}]] {{ #if:{{{desc6|}}}|: {{{desc6}}} }} {{ #if:{{{stats6|}}}|: {{{stats6}}} }}[[Category:{{{location6}}} Creatures]] }}
{{ #if:{{{location7|}}} | ; [[{{{location7}}}]] {{ #if:{{{desc7|}}}|: {{{desc7}}} }} [[Category:{{{location7}}} Creatures]] }}
+
{{ #if:{{{location7|}}} | ; [[{{{location7}}}]] {{ #if:{{{desc7|}}}|: {{{desc7}}} }} {{ #if:{{{stats7|}}}|: {{{stats7}}} }}[[Category:{{{location7}}} Creatures]] }}
{{ #if:{{{location8|}}} | ; [[{{{location8}}}]] {{ #if:{{{desc8|}}}|: {{{desc8}}} }} [[Category:{{{location8}}} Creatures]] }}
+
{{ #if:{{{location8|}}} | ; [[{{{location8}}}]] {{ #if:{{{desc8|}}}|: {{{desc8}}} }} {{ #if:{{{stats8|}}}|: {{{stats8}}} }}[[Category:{{{location8}}} Creatures]] }}
{{ #if:{{{location9|}}} | ; [[{{{location9}}}]] {{ #if:{{{desc9|}}}|: {{{desc9}}} }} [[Category:{{{location9}}} Creatures]] }}<noinclude>
+
{{ #if:{{{location9|}}} | ; [[{{{location9}}}]] {{ #if:{{{desc9|}}}|: {{{desc9}}} }} {{ #if:{{{stats9|}}}|: {{{stats9}}} }}[[Category:{{{location9}}} Creatures]] }}<noinclude>
 
==Syntax==
 
==Syntax==
 
<pre>
 
<pre>
Line 17: Line 17:
 
| location2 =
 
| location2 =
 
| desc2 =  
 
| desc2 =  
| stats2 =
+
| stats2 = [[Image:Armor-icon-30px.gif|Armor]] X [[Image:Health-icon-30px.gif|Health]] X [[Image:Rage-icon-30px.gif|Rage]] X
 
| location3 =  
 
| location3 =  
 
| desc3 =  
 
| desc3 =  
 +
| stats3 = [[Image:Armor-icon-30px.gif|Armor]] X [[Image:Health-icon-30px.gif|Health]] X [[Image:Rage-icon-30px.gif|Rage]] X
 
| location4 =
 
| location4 =
 
| desc4 =
 
| desc4 =
 +
| stats4 = [[Image:Armor-icon-30px.gif|Armor]] X [[Image:Health-icon-30px.gif|Health]] X [[Image:Rage-icon-30px.gif|Rage]] X
 
| location5 =
 
| location5 =
 
| desc5 =
 
| desc5 =
 +
| stats5 = [[Image:Armor-icon-30px.gif|Armor]] X [[Image:Health-icon-30px.gif|Health]] X [[Image:Rage-icon-30px.gif|Rage]] X
 
| location6 =
 
| location6 =
 
| desc6 =
 
| desc6 =
 +
| stats6 = [[Image:Armor-icon-30px.gif|Armor]] X [[Image:Health-icon-30px.gif|Health]] X [[Image:Rage-icon-30px.gif|Rage]] X
 
| location7 =
 
| location7 =
 
| desc7 =
 
| desc7 =
 +
| stats7 = [[Image:Armor-icon-30px.gif|Armor]] X [[Image:Health-icon-30px.gif|Health]] X [[Image:Rage-icon-30px.gif|Rage]] X
 
| location8 =
 
| location8 =
 
| desc8 =
 
| desc8 =
 +
| stats8 = [[Image:Armor-icon-30px.gif|Armor]] X [[Image:Health-icon-30px.gif|Health]] X [[Image:Rage-icon-30px.gif|Rage]] X
 
| location9 =
 
| location9 =
 
| desc9 =
 
| desc9 =
 +
| stats9 = [[Image:Armor-icon-30px.gif|Armor]] X [[Image:Health-icon-30px.gif|Health]] X [[Image:Rage-icon-30px.gif|Rage]] X
 
}}
 
}}
 
</pre>
 
</pre>

Revision as of 18:29, 29 April 2017

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 = [[Image:Armor-icon-30px.gif|Armor]] X [[Image:Health-icon-30px.gif|Health]] X [[Image:Rage-icon-30px.gif|Rage]] X
| location3 = 
| desc3 = 
| stats3 = [[Image:Armor-icon-30px.gif|Armor]] X [[Image:Health-icon-30px.gif|Health]] X [[Image:Rage-icon-30px.gif|Rage]] X
| location4 =
| desc4 =
| stats4 = [[Image:Armor-icon-30px.gif|Armor]] X [[Image:Health-icon-30px.gif|Health]] X [[Image:Rage-icon-30px.gif|Rage]] X
| location5 =
| desc5 =
| stats5 = [[Image:Armor-icon-30px.gif|Armor]] X [[Image:Health-icon-30px.gif|Health]] X [[Image:Rage-icon-30px.gif|Rage]] X
| location6 =
| desc6 =
| stats6 = [[Image:Armor-icon-30px.gif|Armor]] X [[Image:Health-icon-30px.gif|Health]] X [[Image:Rage-icon-30px.gif|Rage]] X
| location7 =
| desc7 =
| stats7 = [[Image:Armor-icon-30px.gif|Armor]] X [[Image:Health-icon-30px.gif|Health]] X [[Image:Rage-icon-30px.gif|Rage]] X
| location8 =
| desc8 =
| stats8 = [[Image:Armor-icon-30px.gif|Armor]] X [[Image:Health-icon-30px.gif|Health]] X [[Image:Rage-icon-30px.gif|Rage]] X
| location9 =
| desc9 =
| stats9 = [[Image:Armor-icon-30px.gif|Armor]] X [[Image:Health-icon-30px.gif|Health]] X [[Image:Rage-icon-30px.gif|Rage]] X
}}

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.