Difference between revisions of "Template:MOB Location"

From Project: Gorgon Wiki
Jump to: navigation, search
m (One last fix)
m (Testing)
Line 5: Line 5:
 
{{ #if:{{{desc1|}}}| : {{{desc1}}} }}
 
{{ #if:{{{desc1|}}}| : {{{desc1}}} }}
 
[[Category:{{{location1}}} Creatures]]
 
[[Category:{{{location1}}} Creatures]]
}}
+
}} {{ #if:{{{location2|}}} |
{{ #if:{{{location2|}}} |
 
 
; [[{{{location2}}}]]
 
; [[{{{location2}}}]]
 
{{ #if:{{{desc2|}}}|: {{{desc2}}} }}
 
{{ #if:{{{desc2|}}}|: {{{desc2}}} }}
 
[[Category:{{{location2}}} Creatures]]
 
[[Category:{{{location2}}} Creatures]]
}}
+
}}{{ #if:{{{location3|}}} |
{{ #if:{{{location3|}}} |
 
 
; [[{{{location3}}}]]
 
; [[{{{location3}}}]]
 
{{ #if:{{{desc3|}}}|: {{{desc3}}} }}
 
{{ #if:{{{desc3|}}}|: {{{desc3}}} }}
 
[[Category:{{{location3}}} Creatures]]
 
[[Category:{{{location3}}} Creatures]]
}}
+
}}{{ #if:{{{location4|}}} |
{{ #if:{{{location4|}}} |
 
 
; [[{{{location4}}}]]
 
; [[{{{location4}}}]]
 
{{ #if:{{{desc4|}}}|: {{{desc4}}} }}
 
{{ #if:{{{desc4|}}}|: {{{desc4}}} }}
 
[[Category:{{{location4}}} Creatures]]
 
[[Category:{{{location4}}} Creatures]]
}}
+
}}{{ #if:{{{location5|}}} |
{{ #if:{{{location5|}}} |
 
 
; [[{{{location5}}}]]
 
; [[{{{location5}}}]]
 
{{ #if:{{{desc5|}}}|: {{{desc5}}} }}
 
{{ #if:{{{desc5|}}}|: {{{desc5}}} }}
 
[[Category:{{{location5}}} Creatures]]
 
[[Category:{{{location5}}} Creatures]]
}}
+
}}{{ #if:{{{location6|}}} |
{{ #if:{{{location6|}}} |
 
 
; [[{{{location6}}}]]
 
; [[{{{location6}}}]]
 
{{ #if:{{{desc6|}}}|: {{{desc6}}} }}
 
{{ #if:{{{desc6|}}}|: {{{desc6}}} }}
 
[[Category:{{{location6}}} Creatures]]
 
[[Category:{{{location6}}} Creatures]]
}}
+
}}{{ #if:{{{location7|}}} |
{{ #if:{{{location7|}}} |
 
 
; [[{{{location7}}}]]
 
; [[{{{location7}}}]]
 
{{ #if:{{{desc7|}}}|: {{{desc7}}} }}
 
{{ #if:{{{desc7|}}}|: {{{desc7}}} }}
 
[[Category:{{{location7}}} Creatures]]
 
[[Category:{{{location7}}} Creatures]]
}}
+
}}{{ #if:{{{location8|}}} |
{{ #if:{{{location8|}}} |
 
 
; [[{{{location8}}}]]
 
; [[{{{location8}}}]]
 
{{ #if:{{{desc8|}}}|: {{{desc8}}} }}
 
{{ #if:{{{desc8|}}}|: {{{desc8}}} }}
 
[[Category:{{{location8}}} Creatures]]
 
[[Category:{{{location8}}} Creatures]]
}}
+
}}{{ #if:{{{location9|}}} |
{{ #if:{{{location9|}}} |
 
 
; [[{{{location9}}}]]
 
; [[{{{location9}}}]]
 
{{ #if:{{{desc9|}}}|: {{{desc9}}} }}
 
{{ #if:{{{desc9|}}}|: {{{desc9}}} }}

Revision as of 00:28, 30 November 2015


Syntax

{{MOB Location
| location1 = 
| desc1 = 
| location2 =
| desc2 = 
| 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.
location2
The second place this mob is found.
desc2
A short description of where or how to find it 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.