Template:Biome: Difference between revisions

From Sagan 4 Alpha Wiki
Jump to navigation Jump to search
Content added Content deleted
imported>Mason11987
mNo edit summary
imported>Mason11987
mNo edit summary
Line 61: Line 61:
<td style="padding: 0.4em 1em 0.4em 0; text-align: center; vertical-align: top; white-space: nowrap;" > '''Descendant of'''
<td style="padding: 0.4em 1em 0.4em 0; text-align: center; vertical-align: top; white-space: nowrap;" > '''Descendant of'''
</td>
</td>
<td style="padding: 0.4em 1em 0.4em 0; text-align: center; vertical-align: top; white-space: nowrap;" > '''[[:category:Descendant biome of {{{name}}}|Ancestor of]]'''
<td style="padding: 0.4em 1em 0.4em 0; text-align: center; vertical-align: top; white-space: nowrap;" > '''Ancestor of'''
</td></tr><tr>
</td></tr><tr>
<td style="border-top: solid 1px #999999; padding: 0.4em 1em 0.4em 0; vertical-align: top;"> {{qif|test={{{ancestor|}}}|then=[[{{{ancestor}}}]]{{#ifeq:{{PAGENAME}}|{{{name}}}|[[category:Descendant biome of {{{ancestor}}}|{{PAGENAME}}]]|}}|else={{qif|test={{{ancestorX|}}}|then={{{ancestorX}}}|else=''Unknown''}}}}
<td style="border-top: solid 1px #999999; padding: 0.4em 1em 0.4em 0; vertical-align: top;"> {{qif|test={{{ancestor|}}}|then=[[{{{ancestor}}}]]{{#ifeq:{{PAGENAME}}|{{{name}}}|[[category:Descendant biome of {{{ancestor}}}|{{PAGENAME}}]]|}}|else={{qif|test={{{ancestorX|}}}|then={{{ancestorX}}}|else=''Unknown''}}}}

Revision as of 11:07, 15 January 2008

This template is to be used on all biomes pages along with {{BiomeSpecies}} and {{BiomeSpecies2}}.

Usage

{{Biome
|name        = 
|week        = If extinct list the week it existed (along with week2,week3,ect. below).  If extant input its first week.
|week2       = 
|image       = Just the file name, leave blank if none (optional)
|extant      = (If extinct, place a 1 here.  If extanct leave blank)
|ancestor    = 
|ancestorx   = 
}}
{{BiomeSpecies}}{{BiomeSpecies2}}

Example input

{{Biome
|name        = Rhodix Vents
|week        = 6
|image       = rhodixvents.jpg
|extant      = 
|ancestor    = Deep Ocean Vent
}}
{{BiomeSpecies}}{{BiomeSpecies2}}
text text text text text

Example output

Rhodix Vents

Week

6 - Present

Descendant of Ancestor of
Deep Ocean Vent

<DPL> debug=1 category=Descendant biome of Biome category=Biomes mode=none titlemaxlength=40 <DPL>


text text text text text