User:Jade Harley/Sandbox03: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
mNo edit summary
mNo edit summary
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<metadesc>The #1 and official wiki source of information on Barotrauma!</metadesc>
<noinclude>{{Affliction table/doc}}<!--[[Category:Templates]][[Category:Cargo Declaration Templates]][[Category:Cargo Storage Templates]]
__NOTOC__<div id="mf-welcome">{{Main page section
{{#cargo_declare:_table=Afflictions
| header = Welcome to the [https://barotraumagame.com Barotrauma] Wiki!{{#seo:|title=Welcome to the Barotrauma Wiki!}}
| noicon      = String
| contentstyle = padding:4px
| icon        = File
| content = <center>This wiki is owned by the developers and updated chiefly by our players. Launched at the end of 2020, we strive to become your no. 1 source of information on ''Barotrauma.''
| name        = String
{{#seo:|description=This wiki is owned by the developers and updated chiefly by our players. Launched at the end of 2020, we strive to become your no. 1 source of information on Barotrauma.}}
| identifier  = String
<br><br>
| type        = String
The current version of Barotrauma is '''{{v|{{current version}}|numonly}}'''.
| limb        = Wikitext
<br><br>
| scaled      = Wikitext
We currently maintain [[Special:AllPages|{{NUMBEROFARTICLES}} articles]] and have {{NUMBEROFACTIVEUSERS}} [[Special:ActiveUsers|active {{plural:{{NUMBEROFACTIVEUSERS}}|user|users}}]]. [[Special:RequestAccount|Join the editor team]] to make those numbers bigger! You can also chat with us in the official [http://discord.gg/undertow Discord] server.</center>
| evolution  = Wikitext
}}
| range1      = String
</div><br>
| effect1    = Wikitext
 
| range2      = String
<div id="mf-game" class="mainleft">
| effect2    = Wikitext
{{Main page section
| range3      = String
| header = About ''Barotrauma''
| effect3    = Wikitext
| contentstyle=padding:4px
| range4      = String
| content = {{:Barotrauma}}
| effect4    = Wikitext
}}
| range5      = String
 
| effect5    = Wikitext
{{Main page section
| range6      = String
| header = Trailer
| effect6    = Wikitext
| content = <center>{{#ev:youtube|5astpd0RRrY}}</center>
| range7      = String
}}
| effect7    = Wikitext
</div>
| range8      = String
 
| effect8    = Wikitext
<div id="mf-blog" class="mainright">
| treatments  = Wikitext
{{Main page section
| causes      = Wikitext
| header = Blog Posts
| description = String
| contentstyle = padding:6px
}}--></noinclude>
| content = <rss max="3" descriptionlength="200">https://barotraumagame.com/news/?feed=atom</rss>
<includeonly>{{#vardefine:numRanges|{{#if:{{{range8|}}}|8|{{#if:{{{range7|}}}|7|{{#if:{{{range6|}}}|6|{{#if:{{{range5|}}}|5|{{#if:{{{range4|}}}|4|{{#if:{{{range3|}}}|3|{{#if:{{{range2|}}}|2|1}}}}}}}}}}}}}}}}{| style="text-align:center; width:100%"
}}
|-
</div>
! style="width: 13%" | Affliction
 
! style="width: 5%"  | <span class="explain" title="Can the affliction exist on multiple limbs at the same time?">Limb Specific</span>
<div id="mf-content" class="maincenter">
! style="width: 5%"  | <span class="explain" title="Will effects be multiplied by the afflicted's max vitality?">Vitality Scaling</span>
{{Main page section
! style="width: 7%"  | <span class="explain" title="How much does the affliction's strength increase or decrease passively per second?">Strength Change</span>
| content = <div style="display:flex;flex-wrap:wrap;justify-content:center;align-items:center;text-align:center">
! style="width: 7%"  | Strength Range
<div style="flex:1">[[File:MainPageCreaturesIcon.png|156px|link=Category:Creatures]]<br><big>'''[[:Category:Creatures|Creatures]]'''</big></div>
! style="width: 20%" | <span class="explain" title="What happens in that strength range?">Effects</span>
<div style="flex:1">[[File:MainPageItemsIcon.png|156px|link=Category:Items]]<br><big>'''[[:Category:Items|Items]]'''</big></div>
! style="width: 16%" | <span class="explain" title="Total affliction strength reduction. Non-medical items not included.">Treatments</span>
<div style="flex:1">[[File:MainPageGearIcon.png|156px|link=Category:Gear]]<br><big>'''[[:Category:Gear|Gear]]'''</big></div>
! style="width: 15%" | <span class="explain" title="Total affliction strength increase. Non-medical items not included.">Causes</span>
<div style="flex:1">[[File:MainPageInstallationsIcon.png|156px|link=Category:Installations]]<br><big>'''[[:Category:Installations|Installations]]'''</big></div>
|-
<div style="flex:1">[[File:MainPageSubmarinesIcon.png|156px|link=Submarines]]<br><big>'''[[:Submarines|Submarines]]'''</big></div>
|rowspan="{{#var:numRanges}}"|{{#if:{{{noicon|}}}||[[File:{{{icon|Affliction {{{name|{{PAGENAME}}}}}}}}.png|48px]]<br>}}'''{{{name}}}'''{{#if:{{{identifier|}}}|<br><span style="color:#808080"><small>ID: <code>{{{identifier}}}</code></small></span>|}}{{#if:{{{type|}}}|<br><span style="color:#808080"><small>Type: <code>{{{type}}}</code></small></span>}}
</div>
|rowspan="{{#var:numRanges}}"|{{{limb|<span style="color:#808080">No</span>}}}
}}
|rowspan="{{#var:numRanges}}"|{{{scaled|<span style="color:#808080">No</span>}}}
 
|rowspan="{{#var:numRanges}}"|{{{evolution|<span style="color:#808080">None</span>}}}
{{Main page section
|{{{range1|<span style="color:#808080">N/A</span>}}}
| header = Featured Article
|{{{effect1|<span style="color:#808080">N/A</span>}}}
| content = {{Main page featured|Moloch}}  
|rowspan="{{#var:numRanges}}"style="text-align:left"|{{#cargo_query:
}}
| table      = Items
</div>
| fields    = name, _pageName, skill, duration, {{{identifier}}}, {{{identifier}}}fail, {{{type}}}, {{{type}}}fail
 
| where      = {{{identifier}}} < 0 OR {{{identifier}}}fail < 0 OR {{{type}}} < 0 OR {{{type}}}fail < 0 OR explosion{{{identifier}}} < 0 OR explosion{{{identifier}}}fail < 0 OR explosion{{{type}}} < 0 OR explosion{{{type}}}fail < 0
[[Category:Barotrauma Wiki]]
| order by  = {{{identifier}}} ASC, _pageName
<div style="width:0;height:0;overflow:hidden">[[File:Wiki.png|link=Main Page]]</div>
| format    = template
| template  = Affliction table/items{{!}}{{{identifier}}}
| delimiter  = <br>
| named args = yes
| default    = {{#vardefine:notreatments|true}}
}}{{#if:{{{treatments|}}}|{{#ifeq:{{#var:notreatments}}|true||<br>}}{{{treatments}}}|{{#ifeq:{{#var:notreatments}}|true|<span style="color:#808080">None</span>}}}}
|rowspan="{{#var:numRanges}}"style="text-align:left"|{{#cargo_query:
| table      = Items
| fields    = name, _pageName, skill, duration, {{{identifier}}}, {{{identifier}}}fail, {{{type}}}, {{{type}}}fail
| where      = {{{identifier}}} > 0 OR {{{identifier}}}fail > 0 OR {{{type}}} > 0 OR {{{type}}}fail > 0 OR explosion{{{identifier}}} > 0 OR explosion{{{identifier}}}fail > 0 OR explosion{{{type}}} > 0 OR explosion{{{type}}}fail > 0
| order by  = {{{identifier}}} ASC, _pageName
| format    = template
| template  = Affliction table/items{{!}}{{{identifier}}}
| delimiter  = <br>
| named args = yes
| default    = {{#vardefine:nocauses|true}}
}}{{#if:{{{causes|}}}|{{#ifeq:{{#var:nocauses}}|true||<br>}}{{{causes}}}|{{#ifeq:{{#var:nocauses}}|true|<span style="color:#808080">None</span>}}}}{{#if:{{{range2|}}}|
{{!}}-
{{!}} {{{range2}}}
{{!}} {{{effect2}}}}}{{#if:{{{range3|}}}|&#32;<!-- this is here because newlines (and regular spaces) are trimmed when placed at the start, and we need the newline here -->
{{!}}-
{{!}} {{{range3}}}
{{!}} {{{effect3}}}}}{{#if:{{{range4|}}}|&#32;
{{!}}-
{{!}} {{{range4}}}
{{!}} {{{effect4}}}}}{{#if:{{{range5|}}}|&#32;
{{!}}-
{{!}} {{{range5}}}
{{!}} {{{effect5}}}}}{{#if:{{{range6|}}}|&#32;
{{!}}-
{{!}} {{{range6}}}
{{!}} {{{effect6}}}}}{{#if:{{{range7|}}}|&#32;
{{!}}-
{{!}} {{{range7}}}
{{!}} {{{effect7}}}}}{{#if:{{{range8|}}}|&#32;
{{!}}-
{{!}} {{{range8}}}
{{!}} {{{effect8}}}}}<!--
|}{{#if:{{NAMESPACE}}||
{{#cargo_store:_table=Afflictions
| icon        = {{#if:{{{noicon|}}}||File:{{{icon|Affliction {{{name|{{PAGENAME}}}}}}}}.png}}
| name        = {{{name|}}}
| identifier  = {{{identifier|}}}
| type        = {{{type|}}}
| limb        = {{{limb|}}}
| scaled      = {{{scaled|}}}
| evolution  = {{{evolution|}}}
| range1      = {{{range1|}}}
| effect1    = {{{effect1|}}}
| range2      = {{{range2|}}}
| effect2    = {{{effect2|}}}
| range3      = {{{range3|}}}
| effect3    = {{{effect3|}}}
| range4      = {{{range4|}}}
| effect4    = {{{effect4|}}}
| range5      = {{{range5|}}}
| effect5    = {{{effect5|}}}
| range6      = {{{range6|}}}
| effect6    = {{{effect6|}}}
| range7      = {{{range7|}}}
| effect7    = {{{effect7|}}}
| range8      = {{{range8|}}}
| effect8    = {{{effect8|}}}
| treatments  = {{{treatments|}}}
| causes      = {{{causes|}}}
| description = {{{description|}}}
}}}}--></includeonly>

Latest revision as of 00:44, 15 March 2023

Documentation

Example table for Internal Damage:

Affliction Limb Specific Vitality Scaling Strength Change Strength Range Effects Treatments Caused By

Internal Damage
ID: internaldamage
Type: damage
Yes Yes None 0 - 200 -0 → -2 Vitality Fentanyl (-75 | -50)* Desirable Medical Skill72
Deusizine (-60 | -40)* Desirable Medical Skill72
Morphine (-50 | 25)* Desirable Medical Skill30
Opium (-20 | -10)* Desirable Medical Skill15
Hyperzine (-12 | -6)* Desirable Medical Skill50
Tonic Liquid (-12 | 0)* Desirable Medical Skill5
Pomegrenade Extract (-6.25 | -3.125)* Desirable Medical Skill20
N/A

Parameter Description
noicon Prevents the affliction icon from showing if set to Yes.
icon The name of the affliction icon's file. Uses Affliction [Name] if not defined. Does not do anything if noicon is defined.
name The name of the affliction. Required.
identifier The affliction's unique identifier (found in XML).
type The affliction's type (found in XML).
limb Is the affliction able to be applied to a specific limb? Displays No if not defined.
scaled Will Vitality loss and Affliction gain be multiplied by the afflicted's max vitality? Displays No if not defined.
evolution How much does the affliction's strength change per second? Displays None if not defined.
range1 The strength range in which the affliction's first set of effects take place. Displays N/A if not defined.
effect1 The effects that take place in the first strength range. Displays N/A if not defined.
range2 The strength range in which the affliction's second set of effects take place.
effect2 The effects that take place in the second strength range.
range3 The strength range in which the affliction's third set of effects take place.
effect3 The effects that take place in the third strength range.
range4 The strength range in which the affliction's fourth set of effects take place.
effect4 The effects that take place in the fourth strength range.
range5 The strength range in which the affliction's fifth set of effects take place.
effect5 The effects that take place in the fifth strength range.
range6 The strength range in which the affliction's sixth set of effects take place.
effect6 The effects that take place in the sixth strength range.
range7 The strength range in which the affliction's seventh set of effects take place.
effect7 The effects that take place in the seventh strength range.
range8 The strength range in which the affliction's eighth set of effects take place.
effect8 The effects that take place in the eighth strength range.
treatments What Medical Items decrease the affliction's strength? Use Template:Str with this section. Displays N/A if not defined.
causedby What Medical Items increase the affliction's strength? Use Template:Str with this section. Displays N/A if not defined.
sort Used by Cargo.
description Used by Cargo.
hidden Hides the affliction on the page and in the Template:Afflictions table, while still enabling the Template:AfflictionParser to display the affliction.