Template:InfoboxLifeform: Difference between revisions

From Subnautica Wiki
No edit summary
Tag: sourceedit
m (Fix.)
 
(12 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:{{{catchable|}}}|
|image=
{{!}} '''Catchable:'''
|category=
{{!}} style="border-left-style: solid" {{!}} {{#switch: {{{catchable}}}
|attitude=
| Y||y = [[File:Yes.png]]
|catchable=
| N||n = [[File:No.png]]
|biome=
| (Error: Input Y or N)}}}}}}
|dna=
|-
|food=
{{#if:{{{biome|}}}|
|h20=
{{!}} '''Biome(s):'''
|resources=
{{!}} style="border-left-style: solid" {{!}} {{{biome}}}}}
|comment=
|-
}}
{{#if:{{{dna|}}}|

{{!}} '''DNA:'''
</pre>
{{!}} style="border-left-style: solid" {{!}} {{{dna}}}}}

|-
to see this:
{{#if:{{{food|}}}|

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

{{!}} style="border-left-style: solid" {{!}} {{{comment}}}}}

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