Template:InfoboxLifeform: Difference between revisions

From Subnautica Wiki
No edit summary
Tag: sourceedit
m (Fix.)
 
(23 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:{{{attitude|}}}|
<data source="biome"><label>'''Biome(s):'''</label></data>
{{!}} '''Attitude:'''
<data source="dna"><label>'''DNA:'''</label></data>
{{!}} style="border-left-style: solid" {{!}} {{#switch: {{{attitude}}}
<data source="food"><label>'''Food Raw/Cooked:'''</label></data>
|Passive = [[:Category:Passive|Passive]]
<data source="h20"><label>'''H<sup>2</sup>0 Raw/Cooked:'''</label></data>
|Defensive = [[:Category:Defensive|Defensive]]
<data source="resources"><label>'''Resources:'''</label></data>
|Aggressive = [[:Category:Aggressive|Aggressive]]}}}}
<data source="comment"><label>'''Comment:'''</label></data>
|-
</infobox>
{{#if:{{{biome|}}}|
<noinclude>
{{!}} '''Biome(s):'''
== Usage & preview ==
{{!}} style="border-left-style: solid" {{!}} {{{biome}}}}}
Type in this:
|-

{{#if:{{{dna|}}}|
<pre>
{{!}} '''DNA:'''
{{InfoboxLifeform
{{!}} style="border-left-style: solid" {{!}} {{{dna}}}}}
|image=
|-
|category=
{{#if:{{{foodraw|}}}|
|attitude=
{{!}} '''Food Raw:'''
|catchable=
{{!}} style="border-left-style: solid" {{!}} {{{foodraw}}}}}
|biome=
|-
|dna=
{{#if:{{{h20raw|}}}|
|food=
{{!}} '''H<sup>2</sup>0 Raw:'''
|h20=
{{!}} style="border-left-style: solid" {{!}} {{{h20raw}}}}}
|resources=
|-
|comment=
{{#if:{{{foodcooked|}}}|
}}
{{!}} '''Food Raw:'''

{{!}} style="border-left-style: solid" {{!}} {{{foodraw}}}}}
</pre>
|-

{{#if:{{{h20cooked|}}}|
to see this:
{{!}} '''H<sup>2</sup>0 Cooked:'''

{{!}} style="border-left-style: solid" {{!}} {{{h20cooked}}}}}
{{InfoboxLifeform
|-
|image=Example.jpg
{{#if:{{{resources|}}}|
|category=This is a test
{{!}} '''Resources:'''
|attitude=This is a test
{{!}} style="border-left-style: solid" {{!}} {{{resources}}}}}
|catchable=This is a test
|-
|biome=This is a test
{{#if:{{{comment|}}}|
|dna=This is a test
{{!}} '''Comment:'''
|food=This is a test
{{!}} style="border-left-style: solid" {{!}} {{{comment}}}}}
|h20=This is a test
|}<noinclude>
|resources=This is a test
[{{Purge}}]</noinclude>
|comment=This is a test
}}


[{{fullurl:{{ns:Template}}:{{PAGENAME}}}}?action=purge Click here to refresh the preview above]
</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