Template:5e Disease: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
(wip)
 
mNo edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<noinclude>
'''Name:''' {{#if: {{{sorttext|}}}|{{DEFAULTSORTKEY:{{{sorttext}}} 5e}}|{{DEFAULTSORTKEY:{{{name|}}} 5e}}|}}{{{name|}}}[[Category:5e Diseases]]{{#if: {{{rarity|}}}|<!-- rarity
{{#cargo_declare:
'''Rarity:''' {{{rarity}}}</span>{{#switch: {{{rarity|}}}
_table = 5e_Disease
| Common = {{#set: Rarity=Common}}
|Name = String
| Rare = {{#set: Rarity=Rare}}
|Sort_Text = String
| {{#set: Rarity={{{rarity|}}}}}
|Rarity = String
}}|}}{{#if: {{{targets|}}}|<!-- targets --><span style="font-size: 0.85em;><br />
|Targets = Wikitext String
'''Targets:''' {{{targets}}}</span>{{#set: Targets={{{targets}}}}}|}}{{#if: {{{resitant|}}}|<!-- resistant --><span style="font-size: 0.85em;><br />
|Resistance = Wikitext String
'''Resistant:''' {{{resistant}}}</span>{{#set: Resistant={{{resistant}}}}}|}}{{#if: {{{immune|}}}|<!-- immune --><span style="font-size: 0.85em;><br />
|Immune = Wikitext String
'''Immune:''' {{{immune}}}</span>{{#set: Immune={{{immune}}}}}|}}{{#if: {{{primary effect|}}}|<!-- primary --><span style="font-size: 0.85em;><br />
|Primary_Effects = Wikitext
'''Primary Effects:''' {{{primary effect}}}</span>{{#set: Primary Effects={{{primary effect}}}}}|}}{{#if: {{{secondary effect|}}}|<!-- secondary --><span style="font-size: 0.85em;><br />
|Secondary_Effects = Wikitext
'''Secondary Effects:''' {{{secondary effect}}}</span>{{#set: Secondary Effects={{{secondary effect}}}}}|}}{{#if: {{{incubation|}}}|<!-- incubation --><span style="font-size: 0.85em;><br />
|Incubation = Wikitext String
'''Incubation:''' {{{incubation}}}</span>{{#set: Incubation={{{incubation}}}}}|}}{{#if: {{{duration|}}}|<!-- duration --><span style="font-size: 0.85em;><br />
|Duration = Wikitext String
'''Duration:''' {{{duration}}}</span>{{#set: Duration={{{duration}}}}}|}}{{#if: {{{vector|}}}|<!-- vector --><span style="font-size: 0.85em;><br />
|Vector = Wikitext String
'''Vector:''' {{{vector}}}</span>{{#set: Vector={{{vector}}}}}|}}{{#if: {{{carriers|}}}|<!-- carriers --><span style="font-size: 0.85em;><br />
|Carriers = Wikitext String
'''Carriers:''' {{{carriers}}}</span>{{#set: Carriers={{{carriers}}}}}|}}{{#if: {{{damage type|}}}|<!-- damage type --><span style="font-size: 0.85em;><br />
|Damage_Type= Wikitext String
'''Damage Type:''' {{{damage type}}}</span>{{#set: DamageType={{{damage type}}}}}|}}{{#if: {{{deadly|}}}|<!-- deadly --><span style="font-size: 0.85em;><br />
|Deadly = Boolean
'''Deadly:''' True{{#set: Deadly=true}}</span>|}}<!-- is disease -->{{#set: Is Disease=true}}</includeonly><noinclude>
}}</noinclude><includeonly>
<span style="display:inline-block; width:50vw; background:steelblue; border-top:solid 1px steelblue; border-top-left-radius:0.5em; border-top-right-radius:0.5em; color:ghostwhite;">'''Disease Summary'''</span><br />
<span style="font-size:1.3em;">'''{{{name|}}}'''</span>&nbsp;{{{refs|}}}{{#if: {{{sorttext|}}}|{{DEFAULTSORTKEY:{{{sorttext}}} 5e}}|{{DEFAULTSORTKEY:{{{name|}}} 5e}}|}}[[Category:5e Diseases]]{{#if: {{{rarity|}}}|<!-- rarity
'''Rarity:''' {{{rarity}}}</span>|}}{{#if: {{{targets|}}}|<!-- targets --><span style="font-size: 0.85em;"><br />
'''Targets:''' {{{targets}}}</span>|}}{{#if: {{{resitant|}}}|<!-- resistant --><span style="font-size: 0.85em;"><br />
'''Resistant:''' {{{resistant}}}</span>|}}{{#if: {{{immune|}}}|<!-- immune --><span style="font-size: 0.85em;"><br />
'''Immune:''' {{{immune}}}</span>|}}{{#if: {{{primary effect|}}}|<!-- primary --><span style="font-size: 0.85em;"><br />
'''Primary Effects:''' {{{primary effect}}}</span>|}}{{#if: {{{secondary effect|}}}|<!-- secondary --><span style="font-size: 0.85em;"><br />
'''Secondary Effects:''' {{{secondary effect}}}</span>|}}{{#if: {{{incubation|}}}|<!-- incubation --><span style="font-size: 0.85em;"><br />
'''Incubation:''' {{{incubation}}}</span>|}}{{#if: {{{duration|}}}|<!-- duration --><span style="font-size: 0.85em;"><br />
'''Duration:''' {{{duration}}}</span>|}}{{#if: {{{vector|}}}|<!-- vector --><span style="font-size: 0.85em;"><br />
'''Vector:''' {{{vector}}}</span>|}}{{#if: {{{carriers|}}}|<!-- carriers --><span style="font-size: 0.85em;"><br />
'''Carriers:''' {{{carriers}}}</span>|}}{{#if: {{{damage type|}}}|<!-- damage type --><span style="font-size: 0.85em;"><br />
'''Damage Type:''' {{{damage type}}}</span>|}}{{#if: {{{deadly|}}}|<!-- deadly --><span style="font-size: 0.85em;"><br />
'''Deadly:''' True</span>|}}
<!--
Cargo Store
-->{{#if: {{{nodb|}}}|<!--skip-->|{{#cargo_store:
_table = 5e_Disease
|Name = {{{name|}}}
|Sort_Text = {{#if: {{{sorttext|}}}|{{{sorttext}}} 5e|{{{name|}}} 5e|}}
|Rarity = {{{rarity|}}}
|Targets = {{{targets|}}}
|Resistance = {{{resitant|}}}
|Immune = {{{immune|}}}
|Primary_Effects = {{{primary effect|}}}
|Secondary_Effects = {{{secondary effect|}}}
|Incubation = {{{incubation|}}}
|Duration = {{{duration|}}}
|Vector = {{{vector|}}}
|Carriers = {{{carriers|}}}
|Damage_Type= {{{damage type|}}}
|Deadly = {{#if: {{{deadly|}}}|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 24: Line 57:
|name=
|name=
|sorttext=
|sorttext=
|refs=
|rarity=
|rarity=
|targets=
|targets=
Line 44: Line 78:
|name=Foo
|name=Foo
|sorttext=
|sorttext=
|refs=<ref>{{Cite Pub|Foo's Guide to Nothing|pages=70}} Licensed: [[Public Domain]].</ref>
|rarity=Common
|rarity=Common
|targets=Humanoids
|targets=Humanoids
Line 62: Line 97:
|name=Foo
|name=Foo
|sorttext=
|sorttext=
|refs=<ref>{{Cite Pub|Foo's Guide to Nothing|pages=70}} Licensed: [[Public Domain]].</ref>
|rarity=Common
|rarity=Common
|targets=Humanoids
|targets=Humanoids
Line 74: Line 110:
|damage type=Cold <!-- poison, psychic, fire, etc. -->
|damage type=Cold <!-- poison, psychic, fire, etc. -->
|deadly= <!--blank or true-->
|deadly= <!--blank or true-->
|nodb=true
}}
}}

Latest revision as of 12:26, 4 January 2022

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

Syntax[edit]

{{5e Disease
|name=
|sorttext=
|refs=
|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-->
}}

Example[edit]

{{5e Disease
|name=Foo
|sorttext=
|refs=<ref>{{Cite Pub|Foo's Guide to Nothing|pages=70}} Licensed: [[Public Domain]].</ref>
|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-->
}}


Disease Summary
Foo [1]
Targets: Humanoids

Immune: Tortles

Primary Effects: Foolishness

Secondary Effects: Shivers, Hearing Loss

Incubation: 2 weeks

Vector: Airborne

Carriers: Humanoids

Damage Type: Cold