Template:InfoboxLifeform: Difference between revisions
mNo edit summary Tag: sourceedit |
m (Fix.) |
||
(27 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" |
|||
<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" | {{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> |
|||
{{#if:{{{biome|}}}| |
|||
</infobox> |
|||
{{!}}- |
|||
⚫ | |||
{{!}} '''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= |
|||
{{#if:{{{food|}}}| |
|||
|category= |
|||
{{!}}- |
|||
|attitude= |
|||
{{!}} '''Food:''' |
|||
|catchable= |
|||
{{!}} style="border-left-style: solid" {{!}} {{{food}}}}} |
|||
|biome= |
|||
{{#if:{{{h20|}}}| |
|||
|dna= |
|||
{{!}}- |
|||
|food= |
|||
{{!}} '''H<sup>2</sup>0:''' |
|||
|h20= |
|||
{{!}} style="border-left-style: solid" {{!}} {{{h20}}}}} |
|||
|resources= |
|||
|comment= |
|||
{{!}}- |
|||
}} |
|||
{{!}} '''Resources:''' |
|||
{{!}} style="border-left-style: solid" {{!}} {{{resources}}}}} |
|||
</pre> |
|||
{{#if:{{{comment|}}}| |
|||
{{!}}- |
|||
to see this: |
|||
{{!}} '''Comment:''' |
|||
{{!}} style="border-left-style: solid" {{!}} {{{comment}}}}} |
|||
{{InfoboxLifeform |
|||
⚫ | |||
|image=Example.jpg |
|||
⚫ | |||
|category=This is a test |
|||
|attitude=This is a test |
|||
|catchable=This is a test |
|||
|biome=This is a test |
|||
|dna=This is a test |
|||
|food=This is a test |
|||
|h20=This is a test |
|||
|resources=This is a test |
|||
|comment=This is a test |
|||
}} |
|||
[{{fullurl:{{ns:Template}}:{{PAGENAME}}}}?action=purge Click here to refresh the preview above] |
|||
⚫ |
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