Template:Fauna: Difference between revisions
Mesmerized (talk | contribs) No edit summary Tag: sourceedit |
No edit summary Tag: 2017 source edit |
||
(26 intermediate revisions by 11 users not shown) | |||
Line 14: | Line 14: | ||
<data source="description"> |
<data source="description"> |
||
<label>Description</label> |
<label>Description</label> |
||
⚫ | |||
⚫ | |||
⚫ | |||
<format>{{#ifeq: {{TestInput|{{{affiliation|}}}}} |
|||
| passed |
|||
| {{{affiliation}}} |
|||
}}</format> |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
</data> |
</data> |
||
<data source="inhabit"> |
<data source="inhabit"> |
||
Line 22: | Line 38: | ||
</data> |
</data> |
||
<data source="health"> |
<data source="health"> |
||
<label>Health</label> |
<label>Health</label> |
||
</data> |
</data> |
||
<data source="damage"> |
<data source="damage"> |
||
Line 57: | Line 73: | ||
<label>DNA</label> |
<label>DNA</label> |
||
</data> |
</data> |
||
⚫ | |||
⚫ | |||
⚫ | |||
<data source="voiceactor"> |
<data source="voiceactor"> |
||
<label>Voice Actor</label> |
<label>Voice Actor</label> |
||
</data> |
</data> |
||
<data source=" |
<data source="debugspawn"> |
||
<label>Debug Spawn</label> |
<label>Debug Spawn</label> |
||
<format>{{#if:{{#explode:{{{debugspawn}}}||1}}| |
|||
*[[Console Commands#Spawn|{{#explode:{{{debugspawn}}}||0}}]] |
|||
*[[Console Commands#Spawn|{{#explode:{{{debugspawn}}}||1}}]] |
|||
{{#if:{{#explode:{{{debugspawn}}}||2}}| |
|||
*[[Console Commands#Spawn|{{#explode:{{{debugspawn}}}||2}}]] |
|||
{{#if:{{#explode:{{{debugspawn}}}||3}}| |
|||
*[[Console Commands#Spawn|{{#explode:{{{debugspawn}}}||3}}]] |
|||
}} |
|||
}} |
|||
|[[Console Commands#Spawn|{{{debugspawn}}}]]}} |
|||
</format> |
|||
⚫ | |||
<data source="item_id"> |
|||
<label>Debug Spawn</label> |
|||
<format>{{#if:{{#explode:{{{item_id}}}||1}}| |
|||
*[[Console Commands#Spawn|{{#explode:{{{item_id}}}||0}}]] |
|||
*[[Console Commands#Spawn|{{#explode:{{{item_id}}}||1}}]] |
|||
{{#if:{{#explode:{{{item_id}}}||2}}| |
|||
*[[Console Commands#Spawn|{{#explode:{{{item_id}}}||2}}]] |
|||
{{#if:{{#explode:{{{item_id}}}||3}}| |
|||
*[[Console Commands#Spawn|{{#explode:{{{item_id}}}||3}}]] |
|||
}} |
|||
}} |
|||
|[[Console Commands#Spawn|{{{item_id}}}]]}} |
|||
</format> |
|||
</data> |
</data> |
||
<group layout="horizontal"> |
|||
<header>Food</header> |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
<group layout="horizontal"> |
<group layout="horizontal"> |
||
<header> |
<header>Food & Water</header> |
||
<data source=" |
<data source="food"> |
||
<label> |
<label>Food</label> |
||
</data> |
</data> |
||
<data source=" |
<data source="water"> |
||
<label> |
<label>H<sub>2</sub>O</label> |
||
</data> |
</data> |
||
<data source=" |
<data source="oxygen"> |
||
<label> |
<label>O<sub>2</sub></label> |
||
</data> |
</data> |
||
</group> |
</group> |
||
<group collapse="open" class="tab-eggs"> |
<group collapse="open" class="tab-eggs"> |
||
Line 110: | Line 136: | ||
<label>Bioreactor</label> |
<label>Bioreactor</label> |
||
</data> |
</data> |
||
<data source=" |
<data source="debugspawn2"> |
||
<label> |
<label>Debug Spawn</label> |
||
<format>{{#if:{{#explode:{{{debugspawn2}}}||1}}| |
|||
*[[Console Commands#Spawn|{{#explode:{{{debugspawn2}}}||0}}]] |
|||
*[[Console Commands#Spawn|{{#explode:{{{debugspawn2}}}||1}}]] |
|||
{{#if:{{#explode:{{{debugspawn2}}}||2}}| |
|||
*[[Console Commands#Spawn|{{#explode:{{{debugspawn2}}}||2}}]] |
|||
{{#if:{{#explode:{{{debugspawn2}}}||3}}| |
|||
*[[Console Commands#Spawn|{{#explode:{{{debugspawn2}}}||3}}]] |
|||
}} |
|||
}} |
|||
|[[Console Commands#Spawn|{{{debugspawn2}}}]]}} |
|||
</format> |
|||
</data> |
</data> |
||
</group> |
</group> |
||
Line 117: | Line 154: | ||
<noinclude> |
<noinclude> |
||
Example usage:<pre> |
Example usage:<pre> |
||
{{ |
{{Fauna |
||
|title1 = Example Title |
|title1 = Example Title |
||
|image1 = Unknown.png |
|image1 = Unknown.png |
||
|caption1 = Example caption |
|caption1 = Example caption |
||
|category = Example category |
|category = Example category |
||
|tab = Example tab |
|tab = Example tab |
||
|description = Example description |
|description = Example description |
||
| |
|descriptioncooked = Example descriptioncooked |
||
| |
|descriptioncured = Example descriptioncured |
||
| |
|inhabit = Example inhabit |
||
| |
|attitude = Example attitude |
||
| |
|health = Example health |
||
| |
|damage = Example damage |
||
| |
|juvenile_damage = Example jDamage |
||
| |
|adult_damage = Example aDamage |
||
| |
|drops = Example drops |
||
| |
|perks = Example perks |
||
| |
|biome = Example biome |
||
| |
|active_during = Example activeTime |
||
| |
|size = Example size |
||
| |
|length = Example len |
||
| |
|bioreactor2 = Example energyValue |
||
| |
|dna = Example DNA |
||
| |
|voiceactor = Example vActor |
||
| |
|debug_spawn = Example spawn |
||
| |
|raw1 = Example foodValue (raw) |
||
| |
|cooked1 = Example foodValue (cooked) |
||
| |
|cured1 = Example foodValue (cured) |
||
| |
|raw2 = Example waterValue (raw) |
||
| |
|cooked2 = Example waterValue (cooked) |
||
| |
|cured2 = Example waterValue (cured) |
||
| |
|raw3 = Example O₂Value (raw) |
||
| |
|cooked3 = Example O₂Value (cooked) |
||
| |
|cured3 = Example O₂Value (cured) |
||
| |
|image3 = Unknowegg.png |
||
| |
|caption2 = Example caption for egg |
||
| |
|tab2 = Example egg tab |
||
| |
|description2 = Example egg description |
||
⚫ | |||
|incubation = Example incubation |
|||
|bioreactor = Example egg energyValue |
|||
|item_id = Example eggID |
|||
}} |
}} |
||
</pre> |
</pre> |
||
The above code results in: |
The above code results in: |
||
{{ |
{{Fauna |
||
|title1 = Example Title |
|title1 = Example Title |
||
|image1 = Unknown.png |
|image1 = Unknown.png |
||
|caption1 = Example caption |
|caption1 = Example caption |
||
|category = Example category |
|category = Example category |
||
|tab = Example tab |
|tab = Example tab |
||
|description = Example description |
|description = Example description |
||
| |
|descriptioncooked = Example descriptioncooked |
||
| |
|descriptioncured = Example descriptioncured |
||
| |
|inhabit = Example inhabit |
||
| |
|attitude = Example attitude |
||
| |
|damage = Example damage |
||
| |
|juvenile_damage = Example jDamage |
||
| |
|adult_damage = Example aDamage |
||
| |
|drops = Example drops |
||
| |
|perks = Example perks |
||
| |
|biome = Example biome |
||
| |
|active_during = Example activeTime |
||
| |
|size = Example size |
||
| |
|length = Example len |
||
| |
|bioreactor2 = Example energyValue |
||
| |
|dna = Example DNA |
||
| |
|voiceactor = Example vActor |
||
| |
|voiceactress = Example vActress |
||
| |
|debug_spawn = Example spawn |
||
| |
|raw1 = Example foodValue (raw) |
||
| |
|cooked1 = Example foodValue (cooked) |
||
| |
|cured1 = Example foodValue (cured) |
||
| |
|raw2 = Example waterValue (raw) |
||
| |
|cooked2 = Example waterValue (cooked) |
||
| |
|cured2 = Example waterValue (cured) |
||
| |
|raw3 = Example O₂Value (raw) |
||
| |
|cooked3 = Example O₂Value (cooked) |
||
| |
|cured3 = Example O₂Value (cured) |
||
|image2 = Unknowegg.png |
|||
⚫ | |||
| |
|caption2 = Example caption for egg |
||
| |
|tab2 = Example egg tab |
||
|description2 = Example egg description |
|||
|biome2 = Example egg biome |
|||
|incubation = Example incubation |
|||
|bioreactor = Example egg energyValue |
|||
|item_id = Example eggID |
|||
}} |
}} |
||
</noinclude> |
</noinclude> |
Latest revision as of 20:41, 29 November 2020
<infobox>
<title source="title1" style="font-weight:bold; text-align:center;"> <default>Fauna</default> </title> <image source="image1">
</image> <label>Category</label> <label>Tab</label> <label>Description</label> <label>Affiliation</label> <format></format> <label>Age</label> <label>Description when cooked</label> <label>Description when cured</label> <label>Inhabit</label> <label>Attitude</label> <label>Health</label> <label>Damage</label> <label>Adult Damage</label> <label>Juvenile Damage</label> <label>Drops</label> <label>Perks</label> <label>Biome</label> <label>Active During</label> <label>Size</label> <label>Length</label> <label>Bioreactor</label> <label>DNA</label> <label>Voice Actor</label>
<label>Debug Spawn</label> <format>- {{#explode:{{{debugspawn}}}||0}}
- {{#explode:{{{debugspawn}}}||1}}
- {{#explode:{{{debugspawn}}}||2}}
- {{#explode:{{{debugspawn}}}||3}}
- {{#explode:{{{item_id}}}||0}}
- {{#explode:{{{item_id}}}||1}}
- {{#explode:{{{item_id}}}||2}}
- {{#explode:{{{item_id}}}||3}}
<group layout="horizontal"> <header>Food & Water</header> <label>Food</label> <label>H2O</label> <label>O2</label> </group> <group collapse="open" class="tab-eggs"> <header>Egg</header> <image source="image2"> </image> <label>Tab</label> <label>Description</label> <label>Biome</label> <label>Incubation</label> <label>Bioreactor</label>
<label>Debug Spawn</label> <format>- {{#explode:{{{debugspawn2}}}||0}}
- {{#explode:{{{debugspawn2}}}||1}}
- {{#explode:{{{debugspawn2}}}||2}}
- {{#explode:{{{debugspawn2}}}||3}}
</group> </infobox> Example usage:
{{Fauna |title1 = Example Title |image1 = Unknown.png |caption1 = Example caption |category = Example category |tab = Example tab |description = Example description |descriptioncooked = Example descriptioncooked |descriptioncured = Example descriptioncured |inhabit = Example inhabit |attitude = Example attitude |health = Example health |damage = Example damage |juvenile_damage = Example jDamage |adult_damage = Example aDamage |drops = Example drops |perks = Example perks |biome = Example biome |active_during = Example activeTime |size = Example size |length = Example len |bioreactor2 = Example energyValue |dna = Example DNA |voiceactor = Example vActor |debug_spawn = Example spawn |raw1 = Example foodValue (raw) |cooked1 = Example foodValue (cooked) |cured1 = Example foodValue (cured) |raw2 = Example waterValue (raw) |cooked2 = Example waterValue (cooked) |cured2 = Example waterValue (cured) |raw3 = Example O₂Value (raw) |cooked3 = Example O₂Value (cooked) |cured3 = Example O₂Value (cured) |image3 = Unknowegg.png |caption2 = Example caption for egg |tab2 = Example egg tab |description2 = Example egg description |biome2 = Example egg biome |incubation = Example incubation |bioreactor = Example egg energyValue |item_id = Example eggID }}
The above code results in: <infobox>
<title source="title1" style="font-weight:bold; text-align:center;"> <default>Fauna</default> </title> <image source="image1">
</image> <label>Category</label> <label>Tab</label> <label>Description</label> <label>Affiliation</label> <format></format> <label>Age</label> <label>Description when cooked</label> <label>Description when cured</label> <label>Inhabit</label> <label>Attitude</label> <label>Health</label> <label>Damage</label> <label>Adult Damage</label> <label>Juvenile Damage</label> <label>Drops</label> <label>Perks</label> <label>Biome</label> <label>Active During</label> <label>Size</label> <label>Length</label> <label>Bioreactor</label> <label>DNA</label> <label>Voice Actor</label>
<label>Debug Spawn</label> <format>- {{#explode:{{{debugspawn}}}||0}}
- {{#explode:{{{debugspawn}}}||1}}
- {{#explode:{{{debugspawn}}}||2}}
- {{#explode:{{{debugspawn}}}||3}}
- {{#explode:Example eggID||0}}
- {{#explode:Example eggID||1}}
- {{#explode:Example eggID||2}}
- {{#explode:Example eggID||3}}
<group layout="horizontal"> <header>Food & Water</header> <label>Food</label> <label>H2O</label> <label>O2</label> </group> <group collapse="open" class="tab-eggs"> <header>Egg</header> <image source="image2"> </image> <label>Tab</label> <label>Description</label> <label>Biome</label> <label>Incubation</label> <label>Bioreactor</label>
<label>Debug Spawn</label> <format>- {{#explode:{{{debugspawn2}}}||0}}
- {{#explode:{{{debugspawn2}}}||1}}
- {{#explode:{{{debugspawn2}}}||2}}
- {{#explode:{{{debugspawn2}}}||3}}
</group> </infobox>