Template:InfoboxLifeform: Difference between revisions

From Subnautica Wiki
mNo edit summary
Tag: sourceedit
m (Fix.)
 
(14 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<infobox layout="stacked">
{| cellpadding="4" cellspacing="0" style="margin: 1em 1em 1em 0; border: 1px #ccc solid;" align="right" width="400px"
<title source="title"><default>{{PAGENAME}}</default></title>
! colspan="2" | {{#if:{{{image}}} | [[File:{{{image}}}]] | [[File:Unknown.png]]}}
<image source="image"><caption source="caption"/></image>
|-
<data source="category"><label>category</label></data>
| colspan="2" style="text-align: center; font-weight: bold; background-color: #0130B9" | {{PAGENAME}}
<data source="attitude"><label>attitude</label></data>
|-
<data source="catchable"><label>catchable</label></data>
{{#if:{{{category|}}}|
<data source="biome"><label>'''Biome(s):'''</label></data>
{{!}} '''Category:'''
<data source="dna"><label>'''DNA:'''</label></data>
{{!}} style="border-left-style: solid" {{!}} {{#switch: {{{category}}}
<data source="food"><label>'''Food Raw/Cooked:'''</label></data>
|Fauna = [[:Category:Fauna|Fauna]] [[Category:Fauna]]
<data source="h20"><label>'''H<sup>2</sup>0 Raw/Cooked:'''</label></data>
|Flora = [[:Category:Flora|Flora]] [[Category:Flora]]}}}}
<data source="resources"><label>'''Resources:'''</label></data>
|-
<data source="comment"><label>'''Comment:'''</label></data>
{{#if:{{{attitude|}}}|
</infobox>
{{!}} '''Attitude:'''
<noinclude>
{{!}} style="border-left-style: solid" {{!}} {{#switch: {{{attitude}}}
== Usage & preview ==
|Passive = [[:Category:Passive|Passive]] [[Category:Passive]]
Type in this:
|Defensive = [[:Category:Defensive|Defensive]] [[Category:Defensive]]

|Aggressive = [[:Category:Aggressive|Aggressive]] [[Category:Aggressive]]}}}}
<pre>
|-
{{InfoboxLifeform
{{#if:{{{biome|}}}|
|image=
{{!}} '''Biome(s):'''
|category=
{{!}} style="border-left-style: solid" {{!}} {{#switch: {{{biome}}}
|attitude=
|Safe Shallows = [[:Category:Safe Shallows|Safe Shallows]] [[Category:Safe Shallows]]
|catchable=
|Kelp Forest = [[:Category:Kelp Forest|Kelp Forest]] [[Category:Kelp Forest]]
|biome=
|Grassy Plateaus = [[:Category:Grassy Plateaus|Grassy Plateaus]] [[Category:Grassy Plateaus]]
|dna=
|Jelly Shroom = [[:Category:Jelly Shroom|Jelly Shroom]] [[Category:Jelly Shroom]]
|food=
|Mushroom Forest = [[:Category:Mushroom Forest|Mushroom Forest]] [[Category:Mushroom Forest]]
|h20=
|Koosh Zone = [[:Category:Koosh Zone|Koosh Zone]] [[Category:Koosh Zone]]
|resources=
|Inactive Lava = [[:Category:Inactive Lava|Inactive Lava]] [[Category:Inactive Lava]]
|comment=
|Sparse Zone = [[:Category:Sparse Zone|Sparse Zone]] [[Category:Sparse Zone]]
}}
|Active Lava = [[:Category:Active Lava|Active Lava]] [[Category:Active Lava]]}}}}

|-
</pre>
{{#if:{{{dna|}}}|

{{!}} '''DNA:'''
to see this:
{{!}} style="border-left-style: solid" {{!}} {{{dna}}}}}

|-
{{InfoboxLifeform
{{#if:{{{food|}}}|
|image=Example.jpg
{{!}} '''Food Raw/Cooked:'''
|category=This is a test
{{!}} style="border-left-style: solid" {{!}} {{{food}}} [[Category:Food]]}}
|attitude=This is a test
|-
|catchable=This is a test
{{#if:{{{h20|}}}|
|biome=This is a test
{{!}} '''H<sup>2</sup>0 Raw/Cooked:'''
|dna=This is a test
{{!}} style="border-left-style: solid" {{!}} {{{h20}}}}}
|food=This is a test
|-
|h20=This is a test
{{#if:{{{resources|}}}|
|resources=This is a test
{{!}} '''Resources:'''
|comment=This is a test
{{!}} style="border-left-style: solid" {{!}} {{{resources}}}}}
}}
|-

{{#if:{{{comment|}}}|

{{!}} '''Comment:'''
[{{fullurl:{{ns:Template}}:{{PAGENAME}}}}?action=purge Click here to refresh the preview above]
{{!}} style="border-left-style: solid" {{!}} {{{comment}}}}}
|}<noinclude>
</noinclude>
[{{Purge}}]</noinclude>

Latest revision as of 05:57, 4 July 2023

<infobox layout="stacked"> <title source="title"><default>InfoboxLifeform</default></title>

<image source="image"></image> <label>category</label> <label>attitude</label> <label>catchable</label> <label>Biome(s):</label> <label>DNA:</label> <label>Food Raw/Cooked:</label> <label>H20 Raw/Cooked:</label> <label>Resources:</label> <label>Comment:</label> </infobox>

Usage & preview

Type in this:

{{InfoboxLifeform
|image=
|category=
|attitude=
|catchable=
|biome=
|dna=
|food=
|h20=
|resources=
|comment=
}}

to see this:

<infobox layout="stacked"> <title source="title"><default>InfoboxLifeform</default></title>

<image source="image"></image> <label>category</label> <label>attitude</label> <label>catchable</label> <label>Biome(s):</label> <label>DNA:</label> <label>Food Raw/Cooked:</label> <label>H20 Raw/Cooked:</label> <label>Resources:</label> <label>Comment:</label> </infobox> Click here to refresh the preview above