Template:5e Disease: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
(wip)
 
No edit summary
Line 1: Line 1:
<includeonly>
<noinclude>
{{#cargo_declare:
_table = 5e_Disease
|Name = String
|Sort_Text = String
|Rarity = String
|Targets = Wikitext String
|Resistance = Wikitext String
|Immune = Wikitext String
|Primary_Effect = Wikitext
|Secondary_Effect = Wikitext
|Incubation = Wikitext String
|Duration = Wikitext String
|Vector = Wikitext String
|Carriers = Wikitext String
|Damage_Type= Wikitext String
|Deadly = Boolean
|Disease = Boolean
}}</noinclude><includeonly>
'''Name:''' {{#if: {{{sorttext|}}}|{{DEFAULTSORTKEY:{{{sorttext}}} 5e}}|{{DEFAULTSORTKEY:{{{name|}}} 5e}}|}}{{{name|}}}[[Category:5e Diseases]]{{#if: {{{rarity|}}}|<!-- rarity
'''Name:''' {{#if: {{{sorttext|}}}|{{DEFAULTSORTKEY:{{{sorttext}}} 5e}}|{{DEFAULTSORTKEY:{{{name|}}} 5e}}|}}{{{name|}}}[[Category:5e Diseases]]{{#if: {{{rarity|}}}|<!-- rarity
'''Rarity:''' {{{rarity}}}</span>{{#switch: {{{rarity|}}}
'''Rarity:''' {{{rarity}}}</span>|}}{{#if: {{{targets|}}}|<!-- targets --><span style="font-size: 0.85em;"><br />
| Common = {{#set: Rarity=Common}}
'''Targets:''' {{{targets}}}</span>|}}{{#if: {{{resitant|}}}|<!-- resistant --><span style="font-size: 0.85em;"><br />
| Rare = {{#set: Rarity=Rare}}
'''Resistant:''' {{{resistant}}}</span>|}}{{#if: {{{immune|}}}|<!-- immune --><span style="font-size: 0.85em;"><br />
| {{#set: Rarity={{{rarity|}}}}}
'''Immune:''' {{{immune}}}</span>|}}{{#if: {{{primary effect|}}}|<!-- primary --><span style="font-size: 0.85em;"><br />
}}|}}{{#if: {{{targets|}}}|<!-- targets --><span style="font-size: 0.85em;><br />
'''Primary Effects:''' {{{primary effect}}}</span>|}}{{#if: {{{secondary effect|}}}|<!-- secondary --><span style="font-size: 0.85em;"><br />
'''Targets:''' {{{targets}}}</span>{{#set: Targets={{{targets}}}}}|}}{{#if: {{{resitant|}}}|<!-- resistant --><span style="font-size: 0.85em;><br />
'''Secondary Effects:''' {{{secondary effect}}}</span>|}}{{#if: {{{incubation|}}}|<!-- incubation --><span style="font-size: 0.85em;"><br />
'''Resistant:''' {{{resistant}}}</span>{{#set: Resistant={{{resistant}}}}}|}}{{#if: {{{immune|}}}|<!-- immune --><span style="font-size: 0.85em;><br />
'''Incubation:''' {{{incubation}}}</span>|}}{{#if: {{{duration|}}}|<!-- duration --><span style="font-size: 0.85em;"><br />
'''Immune:''' {{{immune}}}</span>{{#set: Immune={{{immune}}}}}|}}{{#if: {{{primary effect|}}}|<!-- primary --><span style="font-size: 0.85em;><br />
'''Duration:''' {{{duration}}}</span>|}}{{#if: {{{vector|}}}|<!-- vector --><span style="font-size: 0.85em;"><br />
'''Primary Effects:''' {{{primary effect}}}</span>{{#set: Primary Effects={{{primary effect}}}}}|}}{{#if: {{{secondary effect|}}}|<!-- secondary --><span style="font-size: 0.85em;><br />
'''Vector:''' {{{vector}}}</span>|}}{{#if: {{{carriers|}}}|<!-- carriers --><span style="font-size: 0.85em;"><br />
'''Secondary Effects:''' {{{secondary effect}}}</span>{{#set: Secondary Effects={{{secondary effect}}}}}|}}{{#if: {{{incubation|}}}|<!-- incubation --><span style="font-size: 0.85em;><br />
'''Carriers:''' {{{carriers}}}</span>|}}{{#if: {{{damage type|}}}|<!-- damage type --><span style="font-size: 0.85em;"><br />
'''Incubation:''' {{{incubation}}}</span>{{#set: Incubation={{{incubation}}}}}|}}{{#if: {{{duration|}}}|<!-- duration --><span style="font-size: 0.85em;><br />
'''Damage Type:''' {{{damage type}}}</span>|}}{{#if: {{{deadly|}}}|<!-- deadly --><span style="font-size: 0.85em;"><br />
'''Duration:''' {{{duration}}}</span>{{#set: Duration={{{duration}}}}}|}}{{#if: {{{vector|}}}|<!-- vector --><span style="font-size: 0.85em;><br />
'''Deadly:''' True</span>|}}{{#if: {{{disease|}}}|<!-- is disease --><span style="font-size: 0.85em;"><br />
'''Vector:''' {{{vector}}}</span>{{#set: Vector={{{vector}}}}}|}}{{#if: {{{carriers|}}}|<!-- carriers --><span style="font-size: 0.85em;><br />
'''Desease:''' True</span>|}}<!--
'''Carriers:''' {{{carriers}}}</span>{{#set: Carriers={{{carriers}}}}}|}}{{#if: {{{damage type|}}}|<!-- damage type --><span style="font-size: 0.85em;><br />
Cargo Store
'''Damage Type:''' {{{damage type}}}</span>{{#set: DamageType={{{damage type}}}}}|}}{{#if: {{{deadly|}}}|<!-- deadly --><span style="font-size: 0.85em;><br />
-->{{#cargo_store:
'''Deadly:''' True{{#set: Deadly=true}}</span>|}}<!-- is disease -->{{#set: Is Disease=true}}</includeonly><noinclude>
_table = 5e_Disease
|Name = {{{name|}}}
|Sort_Text = {{#if: {{{sorttext|}}}|{{{sorttext}}} 5e|{{{name|}}} 5e|}}
|Rarity = {{{rarity|}}}
|Targets = {{{targets|}}}
|Resistance = {{{resitant|}}}
|Immune = {{{immune|}}}
|Primary_Effect = {{{primary effect|}}}
|Secondary_Effect = {{{secondary effect|}}}
|Incubation = {{{incubation|}}}
|Duration = {{{duration|}}}
|Vector = {{{vector|}}}
|Carriers = {{{carriers|}}}
|Damage_Type= {{{damage type|}}}
|Deadly = {{#if: {{{deadly|}}}|1|0}}
|Disease = {{#if: {{{disease|}}}|1|0}}
}}</includeonly><noinclude>
This template sets properties for the disease and provides a summary.
This template sets properties for the disease and provides a summary.


Line 38: Line 72:
}}
}}
</pre>
</pre>
===Add'l Entries===
<pre>|disease= <!--blank or true--></pre>


==Example==
==Example==

Revision as of 19:35, 26 April 2020

This template defines the table "5e_Disease". View table. This template sets properties for the disease and provides a summary.

Syntax

{{5e Disease
|name=
|sorttext=
|rarity=
|targets=
|resistant=
|immune=
|primary effect= <!-- 1-3 word summary -->
|secondary effect= 
|incubation=
|duration=
|vector=
|carriers=
|damage type= <!-- poison, psychic, fire, etc. -->
|deadly= <!--blank or true-->
}}

Add'l Entries

|disease= <!--blank or true-->

Example

{{5e Disease
|name=Foo
|sorttext=
|rarity=Common
|targets=Humanoids
|resistant=Lizardfolk
|immune=Tortles
|primary effect=Foolishness <!-- 1-3 word summary -->
|secondary effect=Shivers, Hearing Loss 
|incubation=2 weeks
|duration=
|vector=Airborne
|carriers=Humanoids
|damage type=Cold <!-- poison, psychic, fire, etc. -->
|deadly= <!--blank or true-->
}}


Name: Foo
Targets: Humanoids

Immune: Tortles

Primary Effects: Foolishness

Secondary Effects: Shivers, Hearing Loss

Incubation: 2 weeks

Vector: Airborne

Carriers: Humanoids

Damage Type: Cold