Difference between revisions of "Template:DISEASE infobox"
From Project: Gorgon Wiki
(Setting up template.) |
m |
||
(4 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: | + | ! 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}} | + | | 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" | | + | ! style="background:#eee; color:#000000; border-radius:2px; width:100px;" colspan="2" align="center" | {{{description|-}}} |
− | |||
|- | |- | ||
− | + | {{ #if:{{{type|}}}|{{pipe}}- valign="top" | |
− | + | ! 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:{{{ | ||
− | ! style="background:#f5e0c7; color:#000000; border-radius:2px; width:100px;" align="center" {{pipe}} | ||
− | {{pipe}} <div class="block2" style="color:#ffffff;">{{{ | ||
}} | }} | ||
|- | |- | ||
− | {{ #if:{{{ | + | {{ #if:{{{curse|}}}|{{pipe}}- valign="top" |
− | ! style="background:#f5e0c7; color:#000000; border-radius:2px; width:100px;" align="center" {{pipe}} | + | ! style="background:#f5e0c7; color:#000000; border-radius:2px; width:100px;" align="center" {{pipe}} Boss: |
− | {{pipe}} <div class="block2" style="color:#ffffff;">{{{ | + | {{pipe}} <div class="block2" style="color:#ffffff;">[[{{{curse}}}]]</div> |
}} | }} | ||
− | | | + | {{ #switch: {{FULLPAGENAME}} |
− | {{ #if:{{{ | + | | {{ #if: {{{type|}}} | [[Category:Disease/{{{type}}}]] }} |
− | |||
}} | }} | ||
|}<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. | + | : 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> | ||
− | {{ | + | {{DISEASE infobox |
− | | | + | | name = Feeble Fever |
− | | | + | | description = You've been infected with a basic disease! It is permanent until cured. -3 Max Health. |
+ | | type = Basic | ||
}} | }} | ||
</pre> | </pre> | ||
+ | {{DISEASE infobox | ||
+ | | name = Feeble Fever | ||
+ | | description = You've been infected with a basic disease! It is permanent until cured. -3 Max Health. | ||
+ | | type = Basic | ||
+ | }} | ||
+ | ==== 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> | </pre> | ||
+ | |||
{{DISEASE infobox | {{DISEASE infobox | ||
− | | name = | + | | name = Concussion Damage |
− | | description = | + | | 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 = | + | | type = Curse |
− | | 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
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 }}
Feeble Fever
| |
---|---|
{ | |
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 }}
Concussion Damage
| |
---|---|
{ | |
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: |