Difference between revisions of "Template:MOB Location"

From Project: Gorgon Wiki
Jump to: navigation, search
(This could be useful to automatically update creature location categories, just like the infobox adds the type category)
 
(Added information and updated template)
Line 2: Line 2:
 
==Location==
 
==Location==
 
{{ #if:{{{location1|}}} |
 
{{ #if:{{{location1|}}} |
; {{{location1}}}
+
; [[[[{{{location1}}}]]
: {{{desc1}}}
+
{{ #if:{{{desc1|}}}| : {{{desc1}}} }}
 
[[Category:{{{location1}}} Creatures]]
 
[[Category:{{{location1}}} Creatures]]
 
}}
 
}}
 
{{ #if:{{{location2|}}} |
 
{{ #if:{{{location2|}}} |
; {{{location2}}}
+
; [[{{{location2}}}]]
: {{{desc2}}}
+
{{ #if:{{{desc1|}}}|: {{{desc2}}} }}
 
[[Category:{{{location2}}} Creatures]]
 
[[Category:{{{location2}}} Creatures]]
 
}}
 
}}
 
{{ #if:{{{location3|}}} |
 
{{ #if:{{{location3|}}} |
; {{{location3}}}
+
; [[{{{location3}}}]]
: {{{desc3}}}
+
{{ #if:{{{desc1|}}}|: {{{desc3}}} }}
 
[[Category:{{{location3}}} Creatures]]
 
[[Category:{{{location3}}} Creatures]]
 
}}
 
}}
 
{{ #if:{{{location4|}}} |
 
{{ #if:{{{location4|}}} |
; {{{location4}}}
+
; [[{{{location4}}}]]
: {{{desc4}}}
+
{{ #if:{{{desc1|}}}|: {{{desc4}}} }}
 
[[Category:{{{location4}}} Creatures]]
 
[[Category:{{{location4}}} Creatures]]
 
}}
 
}}
 
{{ #if:{{{location5|}}} |
 
{{ #if:{{{location5|}}} |
; {{{location5}}}
+
; [[{{{location5}}}]]
: {{{desc5}}}
+
{{ #if:{{{desc1|}}}|: {{{desc5}}} }}
 
[[Category:{{{location5}}} Creatures]]
 
[[Category:{{{location5}}} Creatures]]
 
}}
 
}}
 
{{ #if:{{{location6|}}} |
 
{{ #if:{{{location6|}}} |
; {{{location6}}}
+
; [[{{{location6}}}]]
: {{{desc6}}}
+
{{ #if:{{{desc1|}}}|: {{{desc6}}} }}
 
[[Category:{{{location6}}} Creatures]]
 
[[Category:{{{location6}}} Creatures]]
 
}}
 
}}
 
{{ #if:{{{location7|}}} |
 
{{ #if:{{{location7|}}} |
; {{{location7}}}
+
; [[{{{location7}}}]]
: {{{desc7}}}
+
{{ #if:{{{desc1|}}}|: {{{desc7}}} }}
 
[[Category:{{{location7}}} Creatures]]
 
[[Category:{{{location7}}} Creatures]]
 
}}
 
}}
 
{{ #if:{{{location8|}}} |
 
{{ #if:{{{location8|}}} |
; {{{location8}}}
+
; [[{{{location8}}}]]
: {{{desc8}}}
+
{{ #if:{{{desc1|}}}|: {{{desc8}}} }}
 
[[Category:{{{location8}}} Creatures]]
 
[[Category:{{{location8}}} Creatures]]
 
}}
 
}}
 
{{ #if:{{{location9|}}} |
 
{{ #if:{{{location9|}}} |
; {{{location9}}}
+
; [[{{{location9}}}]]
: {{{desc9}}}
+
{{ #if:{{{desc1|}}}|: {{{desc9}}} }}
 
[[Category:{{{location9}}} Creatures]]
 
[[Category:{{{location9}}} Creatures]]
 
}}
 
}}
 
</includeonly>
 
</includeonly>
 +
 +
<noinclude>
 +
==Syntax==
 +
<pre>
 +
{{MOB Location
 +
| location1 =
 +
| desc1 =
 +
| location2 =
 +
| desc2 =
 +
| location3 =
 +
| desc3 =
 +
| location4 =
 +
| desc4 =
 +
| location5 =
 +
| desc5 =
 +
| location6 =
 +
| desc6 =
 +
| location7 =
 +
| desc7 =
 +
| location8 =
 +
| desc8 =
 +
| location9 =
 +
| desc9 =
 +
}}
 +
</pre>
 +
 +
==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, <nowiki>[[Category:Serbule Creatures]]</nowiki> would be added for you.

Revision as of 22:32, 29 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.