Skip to content

Instantly share code, notes, and snippets.

@borkweb
Created October 6, 2018 05:03
Show Gist options
  • Save borkweb/c594436283dad677cd1895e380cbae85 to your computer and use it in GitHub Desktop.
Save borkweb/c594436283dad677cd1895e380cbae85 to your computer and use it in GitHub Desktop.
(MediaWiki) Template:Item
{| width="250" align="right" class="info-box item"
|-
{{#if: {{{image|}}}|
{{!}} colspan="2" class="info-image" {{!}} {{{image}}}}}
|-
| colspan="2" class="info-name" | '''{{{name}}}'''
|-
| colspan="2" class="info" | '''General Information'''
|-
{{#if: {{{cabal|}}}|
{{!}} class="info-label" {{!}} Cabal:
{{!}} class="info-value" {{!}}
[[:Category:{{{cabal}}}{{!}}{{{cabal}}}]]}}
|-
{{#if: {{{location|}}}|
{{!}} class="info-label" {{!}} Location:
{{!}} class="info-value" {{!}}
{{{location}}}}}
|-
{{#if: {{{cost|}}}|
{{!}} class="info-label" {{!}} Cost:
{{!}} class="info-value" {{!}}
{{{cost}}}}}
|-
{{#if: {{{sell|}}}|
{{!}} class="info-label" {{!}} Sells for:
{{!}} class="info-value" {{!}}
{{{sell}}}}}
|-
{{#if: {{{storable|}}}|
{{!}} class="info-label" {{!}} Storable:
{{!}} class="info-value" {{!}}
{{{storable}}}}}
|-
{{#if: {{{dests|}}}|
{{!}} class="info-label" {{!}} Dests:
{{!}} class="info-value" {{!}}
{{{dests}}}}}
|-
{{#if: {{{type|}}}|
{{!}} class="info-label" {{!}} Type:
{{!}} class="info-value" {{!}}
{{{type}}}}}
|-
{{#if: {{{enhancement|}}}|
{{!}} class="info-label" {{!}} Enhancement:
{{!}} class="info-value" {{!}}
{{{enhancement}}}}}
|-
{{#if: {{{usage|}}}|
{{!}} class="info-label" {{!}} Usage:
{{!}} class="info-value" {{!}}
{{{usage}}}}}
|-
{{#if: {{{requirements|}}}|
{{!}} class="info-label" {{!}} Requirements:
{{!}} class="info-value" {{!}}
{{{requirements}}}}}
|-}}
|}
<includeonly>
[[Category:Item]]{{#if: {{{cabal|}}}| [[Category:{{{cabal}}}]][[Category:{{{cabal}}} Item]]}}
</includeonly><noinclude>
{{Clear}}
== Usage ==
To use this template, paste the following code into the top of the page, filling all relevant fields:
<pre>
{{Item
|image=
|name=
|cabal=
|location=
|storable=
|dests=
|cost=
|sell=
|type=
|enhancement=
|usage=
|requirements=
}}</pre>
</noinclude>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment