Skip to content

Instantly share code, notes, and snippets.

@borkweb
Created October 6, 2018 04:59
Show Gist options
  • Save borkweb/8b76e5fd86176f69065399f9d6117114 to your computer and use it in GitHub Desktop.
Save borkweb/8b76e5fd86176f69065399f9d6117114 to your computer and use it in GitHub Desktop.
(MediaWiki) Template:Area
{| width="250" align="right" class="info-box area"
|-
{{#if: {{{image|}}}|
{{!}} colspan="2" class="info-image" {{!}} {{{image}}}}}
|-
| colspan="2" class="info-name" | '''{{{name}}}'''
|-
| colspan="2" class="info" | '''General Information'''
|-
{{#if: {{{xp|}}}|
{{!}} class="info-label" {{!}} XP:
{{!}} class="info-value" {{!}}
[[:Category:Experience|{{{xp}}}]]}}
|-
{{#if: {{{xprange|}}}|
{{!}} class="info-label" {{!}} XP Range:
{{!}} class="info-value" {{!}}
{{{xprange}}}}}
|-
{{#if: {{{alignment|}}}|
{{!}} class="info-label" {{!}} Alignment:
{{!}} class="info-value" {{!}}
{{{alignment}}}}}
|-
{{#if: {{{requirements|}}}|
{{!}} class="info-label" {{!}} Requirements:
{{!}} class="info-value" {{!}}
{{{requirements}}}}}
|-
{{#if: {{{mobs|}}}|
{{!}} class="info-label" {{!}} Mobs:
{{!}} class="info-value" {{!}}
{{{mobs}}}}}
|-
{{#if: {{{cabal|}}}|
{{!}} class="info-label" {{!}} Cabal:
{{!}} class="info-value" {{!}}
[[:Category:{{{cabal}}}{{!}}{{{cabal}}}]]}}
|-}}
|}
<includeonly>
[[Category:Location]]{{#if: {{{xp|}}}| [[Category:XP - {{{xp}}}]]}}{{#if: {{{cabal|}}}| [[Category:{{{cabal}}}]][[Category:{{{cabal}}} Area]]}}
</includeonly><noinclude>
{{Clear}}
== Usage ==
To use this template, paste the following code into the top of the page, filling all relevant fields:
<pre>
{{Area
|image=
|name=
|xp=
|xprange=
|alignment=
|cabal=
|requirements=
|mobs=
}}</pre>
</noinclude>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment