Difference between revisions of "Template:DISEASE infobox"

From Project: Gorgon Wiki
Jump to: navigation, search
m
m
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{| style="margin:1px; border:1px solid#423930; float:right; text-align:left; position:relative; border-radius:5px; background:#1e1615ff;" cellpadding="5"
 
{| style="margin:1px; border:1px solid#423930; float:right; text-align:left; position:relative; border-radius:5px; background:#1e1615ff;" cellpadding="5"
! colspan="2"|<div class="ib-tbl-hd">[[File:Button_Red.png|300px]]</div> <div class="ib-tbl-hdt">{{{name|name}}}</div>
+
! colspan="2"|<div class="ib-tbl-hd">[[File:Button_Maroon.png|300px]]</div> <div class="ib-tbl-hdt">{{{name|name}}}</div>
 
|-
 
|-
| style= "width:300px;" colspan="2" align="center" | {{{Disease icon|{{name}}}} <br><div class="block2" style="font-size:14px;color:#ffffff;">{{{caption|}}}</div>  
+
| style= "width:300px;" colspan="2" align="center" | {{{Disease icon|{{{name}}}}} <br>  
 
|- valign="top"
 
|- valign="top"
! style="background:#eee; color:#000000; border-radius:2px; width:100px;" align="center" | Zone:
+
! style="background:#eee; color:#000000; border-radius:2px; width:100px;" colspan="2"  align="center" | {{{description|-}}}
| <div class="block2" style="color:#ffffff;">{{{zone|-}}}</div>
 
 
|-
 
|-
! style="background:#eee; color:#000000; border-radius:2px; width:100px;"  align="center" | Location:
+
{{ #if:{{{type|}}}|{{pipe}}- valign="top"
| <div class="block2" style="color:#ffffff;">{{{location|-}}}</div>
+
! style="background:#f5e0c7; color:#000000; border-radius:2px; width:100px;"  align="center" {{pipe}} Type:
|-
+
{{pipe}} <div class="block2" style="color:#ffffff;">[[Disease#{{{type}}}|{{{type}}}]]</div>
{{ #if:{{{beastspeak|}}}|{{pipe}}- valign="top"
 
! style="background:#f5e0c7; color:#000000; border-radius:2px; width:100px;"  align="center" {{pipe}} Beast Speak:
 
{{pipe}} <div class="block2" style="color:#ffffff;">{{{beastspeak}}}</div>
 
 
}}
 
}}
 
|-
 
|-
{{ #if:{{{skilltrainer|}}}|{{pipe}}- valign="top"
+
{{ #if:{{{curse|}}}|{{pipe}}- valign="top"
! style="background:#f5e0c7; color:#000000; border-radius:2px; width:100px;"  align="center" {{pipe}} Skill Trainer:
+
! style="background:#f5e0c7; color:#000000; border-radius:2px; width:100px;"  align="center" {{pipe}} Boss:
{{pipe}} <div class="block2" style="color:#ffffff;">{{{skilltrainer}}}</div>
+
{{pipe}} <div class="block2" style="color:#ffffff;">[[{{{curse}}}]]</div>
 
}}
 
}}
|-
+
{{ #switch: {{FULLPAGENAME}}
{{ #if:{{{vendor|}}}|{{pipe}}- valign="top"
+
| {{ #if: {{{type|}}} | [[Category:Disease/{{{type}}}]] }}
! style="background:#f2cda0; color:#000000; border-radius:2px; width:250px;" colspan="2" align="center" {{pipe}} Vendor
 
 
}}
 
}}
 
|}<noinclude>
 
|}<noinclude>
Line 41: Line 36:
 
: The in-game description of the Disease or Curse
 
: The in-game description of the Disease or Curse
 
; type
 
; type
: If a Disease, list the level (Basic, Complex, Advanced, Other).
+
: OPTIONAL. If a Disease, list the level (Basic, Complex, Advanced, Curse, Other). This will automatically link to a chart on the [[Disease]] page.
 
; curse
 
; curse
: OPTIONAL. Identifies the boss monster that gives the curse.
+
: OPTIONAL. If a Curse, identifies the boss monster that gives the curse.
  
 
==Description==
 
==Description==
Line 55: Line 50:
 
==Examples==
 
==Examples==
 
The typical usage is to use this in a new article, save, and THEN upload the image by clicking the image link (which then is pre-set with the article name):
 
The typical usage is to use this in a new article, save, and THEN upload the image by clicking the image link (which then is pre-set with the article name):
 +
==== Disease example ====
 
<pre>
 
<pre>
{{MAP infobox
+
{{DISEASE infobox
| connects = [[Kur Mountains]]
+
| name = Feeble Fever
| pclevel = 30
+
| description = You've been infected with a basic disease! It is permanent until cured. -3 Max Health.
 +
| type = Basic
 
}}
 
}}
 
</pre>
 
</pre>
 
  
 
{{DISEASE infobox
 
{{DISEASE infobox
 
  | name = Feeble Fever
 
  | name = Feeble Fever
  | description = You've been infected with a basic disease! It is permanent until cured.\n\n-3 Max Health
+
  | description = You've been infected with a basic disease! It is permanent until cured. -3 Max Health.
 
  | type = Basic
 
  | type = Basic
  | curse =
+
}}
 +
==== Curse example ====
 +
 
 +
<pre>
 +
{{DISEASE infobox
 +
| name = Concussion Damage
 +
| description = Occasionally you lose motor coordination and can't attack. This is a permanent curse; you must defeat Forgotten Loading Golem to remove it.
 +
| type = Curse
 +
| curse = Forgotten Loading Golem
 +
}}
 +
</pre>
 +
 
 +
{{DISEASE infobox
 +
| name = Concussion Damage
 +
| description = Occasionally you lose motor coordination and can't attack. This is a permanent curse; you must defeat Forgotten Loading Golem to remove it.
 +
| type = Curse
 +
  | curse = Forgotten Loading Golem
 
}}
 
}}
 
[[Category:Formatting templates|TOWN infobox]]
 
[[Category:Formatting templates|TOWN infobox]]
 
</noinclude>
 
</noinclude>

Latest revision as of 10:41, 17 July 2019

Button Maroon.png
name
{http://cdn.projectgorgon.com/v370/icons/icon_Error: Disease not found.png
-


Syntax

{{DISEASE infobox
| name = 
| description =
| type = 
| curse =
}}

Parameters

name
Not Optional. Must be Article name.
description
The in-game description of the Disease or Curse
type
OPTIONAL. If a Disease, list the level (Basic, Complex, Advanced, Curse, Other). This will automatically link to a chart on the Disease page.
curse
OPTIONAL. If a Curse, identifies the boss monster that gives the curse.

Description

Create an attractive "at a glance" information card for Towns and other locations.

The info card features two images: at the top is an in-game screenshot of the location. At the bottom, is either a picture of the minimap identifying the placement of the location, or a user-created map.

Notes

As with all more complex templates, remember that changes spread on all concerned articles. Please discuss it with the author before making significant changes.

Examples

The typical usage is to use this in a new article, save, and THEN upload the image by clicking the image link (which then is pre-set with the article name):

Disease example

{{DISEASE infobox
 | name = Feeble Fever
 | description = You've been infected with a basic disease! It is permanent until cured. -3 Max Health.
 | type = Basic
}}
Button Maroon.png
Feeble Fever
{icon_2217.png
You've been infected with a basic disease! It is permanent until cured. -3 Max Health.
Type:

Curse example

{{DISEASE infobox
 | name = Concussion Damage
 | description = Occasionally you lose motor coordination and can't attack. This is a permanent curse; you must defeat Forgotten Loading Golem to remove it.
 | type = Curse
 | curse = Forgotten Loading Golem
}}
Button Maroon.png
Concussion Damage
{icon_3481.png
Occasionally you lose motor coordination and can't attack. This is a permanent curse; you must defeat Forgotten Loading Golem to remove it.
Type:
Boss: