Template:Species: Difference between revisions
miraheze:sagan4mason>Mnidjm m clean up, replaced: |week → |epoch (5), week| → epoch| (4), Exweekcalc → Exepochcalc (5) |
miraheze:sagan4mason>Mnidjm m clean up, replaced: week → epoch (11), Week → Epoch (5) |
||
Line 12: | Line 12: | ||
|image = Just the file name, leave blank if none (optional) |
|image = Just the file name, leave blank if none (optional) |
||
|extant = (If extinct, place a 1 here. If extant leave blank) |
|extant = (If extinct, place a 1 here. If extant leave blank) |
||
| |
|exepoch = |
||
|exgen = |
|exgen = |
||
|excause = |
|excause = |
||
Line 47: | Line 47: | ||
|image = Sagan_001.jpg |
|image = Sagan_001.jpg |
||
|extant = 1 |
|extant = 1 |
||
| |
|exepoch = |
||
|exgen = |
|exgen = |
||
|excause = |
|excause = |
||
Line 80: | Line 80: | ||
|image = Sagan_001.jpg |
|image = Sagan_001.jpg |
||
|extant = 1 |
|extant = 1 |
||
| |
|exepoch =1 |
||
|exgen =8 |
|exgen =8 |
||
|excause =solar flare |
|excause =solar flare |
||
Line 110: | Line 110: | ||
}}</td></tr><tr> |
}}</td></tr><tr> |
||
<td colspan=2 style="padding: 0.4em 1em 0.4em 0; text-align: center; vertical-align: top; white-space: nowrap;" >{{#if:{{{exgen|}}}{{#ifeq:{{{extant|}}}||a}}|{{temporal range|{{{generation}}}|{{#if:{{{extant|}}}|{{#expr:{{{exgen|}}}-1}}|{{ThisGen}}}}|{{{extant|}}}}}}}<!-- |
<td colspan=2 style="padding: 0.4em 1em 0.4em 0; text-align: center; vertical-align: top; white-space: nowrap;" >{{#if:{{{exgen|}}}{{#ifeq:{{{extant|}}}||a}}|{{temporal range|{{{generation}}}|{{#if:{{{extant|}}}|{{#expr:{{{exgen|}}}-1}}|{{ThisGen}}}}|{{{extant|}}}}}}}<!-- |
||
-->{{qif|test={{{extant|}}}|then=[[Image:Extinct.png]]<br>{{{exepoch|{{#if:{{Exepochcalc|{{{name|{{PAGENAME}}}}}}}|{{Exepochcalc|{{{name|{{PAGENAME}}}}}}}|?}}}}}/{{{exgen|?}}}, {{{excause|unknown cause}}}{{#if:{{{exepoch|{{Exepochcalc|{{{name|{{PAGENAME}}}}}}}}}}|[[Category:Extinct in |
-->{{qif|test={{{extant|}}}|then=[[Image:Extinct.png]]<br>{{{exepoch|{{#if:{{Exepochcalc|{{{name|{{PAGENAME}}}}}}}|{{Exepochcalc|{{{name|{{PAGENAME}}}}}}}|?}}}}}/{{{exgen|?}}}, {{{excause|unknown cause}}}{{#if:{{{exepoch|{{Exepochcalc|{{{name|{{PAGENAME}}}}}}}}}}|[[Category:Extinct in Epoch {{{exepoch|{{Exepochcalc|{{{name|{{PAGENAME}}}}}}}}}}]]|[[Category:Unknown extinction epoch]]}}{{#if:{{{exgen|}}}|[[Category:Extinct in Generation {{{exgen}}}]]|[[Category:Unknown extinction generation]]}}{{#if:{{{excause|}}}||[[Category:Unknown extinction cause]]}}<!-- |
||
-->{{#ifeq:{{PAGENAME}}|{{{name}}}|[[category:Extinct]]|}}|else=[[Image:Extant.png]]{{#ifeq:{{PAGENAME}}|{{{name}}}|[[Category:Extant]]|}}}} |
-->{{#ifeq:{{PAGENAME}}|{{{name}}}|[[category:Extinct]]|}}|else=[[Image:Extant.png]]{{#ifeq:{{PAGENAME}}|{{{name}}}|[[Category:Extant]]|}}}} |
||
</td></tr><tr> |
</td></tr><tr> |
||
Line 134: | Line 134: | ||
*******[[{{{name|}}}|{{{species|}}}]] {{qif|test={{{species|}}}|then={{#ifeq:{{PAGENAME}}|{{{name}}}|[[category:{{{species}}}|{{PAGENAME}}]]|}}}} |
*******[[{{{name|}}}|{{{species|}}}]] {{qif|test={{{species|}}}|then={{#ifeq:{{PAGENAME}}|{{{name}}}|[[category:{{{species}}}|{{PAGENAME}}]]|}}}} |
||
</td></tr>}}<tr> |
</td></tr>}}<tr> |
||
<td style="border-top: solid 1px #999999; padding: 0.4em 1em 0.4em 0; text-align: left; vertical-align: top; white-space: nowrap;" > ''' |
<td style="border-top: solid 1px #999999; padding: 0.4em 1em 0.4em 0; text-align: left; vertical-align: top; white-space: nowrap;" > '''Epoch/Generation''' |
||
</td><td style="border-top: solid 1px #999999; padding: 0.4em 1em 0.4em 0; vertical-align: top;" > [[ |
</td><td style="border-top: solid 1px #999999; padding: 0.4em 1em 0.4em 0; vertical-align: top;" > [[Epoch {{{epoch}}}|{{{epoch}}}]]/[[Generation {{{generation}}}|{{{generation}}}]] {{#ifeq:{{PAGENAME}}|{{{name}}}|[[category:Epoch {{{epoch}}}|{{PAGENAME}}]][[category:Generation {{{generation}}}|{{PAGENAME}}]]|}} |
||
</td></tr><tr> |
</td></tr><tr> |
||
<tr> |
<tr> |
||
Line 174: | Line 174: | ||
<td style="padding: 0.4em 1em 0.4em 0; text-align: center; vertical-align: top; white-space: nowrap;" > '''[[:Category:Descendant of {{PAGENAME}}|Ancestor of]]''' |
<td style="padding: 0.4em 1em 0.4em 0; text-align: center; vertical-align: top; white-space: nowrap;" > '''[[:Category:Descendant of {{PAGENAME}}|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 of {{{ancestor}}}|{{PAGENAME}}]]|}}|else={{qif|test={{{ancestorX|}}}|then={{{ancestorX}}}|else=''Unknown''}}}}{{#if:{{{ancestorX|}}}|{{#ifeq:{{{species}}}|spp.||[[Category:Hybrid Species]]}}}}{{#ifeq:{{{name|Protosagania}}}|Protosagania||{{#if:{{{ancestor|}}}{{{ancestorX|}}}||[[Category:Unknown ancestor]]}}}}{{#if:{{{genus|}}}{{{species|}}}||[[Category:Species lacking a binomial name]]}}{{#if:{{{genus|}}}||[[Category:Species lacking a genus]]}}{{#if:{{{family|}}}||[[Category:Species lacking a family]]}}{{#if:{{{order|}}}||[[Category:Species lacking an order]]}}{{#if:{{{class|}}}||[[Category:Species lacking a class]]}}{{#if:{{{phylum|}}}||[[Category:Species lacking a phylum]]}}{{#if:{{{family|}}}{{{order|}}}{{{class|}}}{{{phylum|}}}{{{kingdom|}}}{{{domain|}}}||[[Category:Species lacking classification]]}}{{#ifeq:{{{species}}}|spp.|[[Category:Genus groups]]}}{{#if:{{{size|}}}||[[Category:Size Unknown]]}}{{#if:{{{diet|}}}||[[Category:Diet Unknown]]}}{{#if:{{{respiration|}}}||[[Category:Respiration Unknown]]}}{{#if:{{{thermoregulation|}}}||[[Category:Thermoregulation Unknown]]}}{{#if:{{{reproduction|}}}||[[Category:Reproduction Unknown]]}}{{#ifeq:{{Show|SpeciesInfo|{{{ancestor}}}|generation}}|{{{generation}}}|[[Category:Species created in the same generation as their ancestor]]}}{{#ifeq:{{ |
<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 of {{{ancestor}}}|{{PAGENAME}}]]|}}|else={{qif|test={{{ancestorX|}}}|then={{{ancestorX}}}|else=''Unknown''}}}}{{#if:{{{ancestorX|}}}|{{#ifeq:{{{species}}}|spp.||[[Category:Hybrid Species]]}}}}{{#ifeq:{{{name|Protosagania}}}|Protosagania||{{#if:{{{ancestor|}}}{{{ancestorX|}}}||[[Category:Unknown ancestor]]}}}}{{#if:{{{genus|}}}{{{species|}}}||[[Category:Species lacking a binomial name]]}}{{#if:{{{genus|}}}||[[Category:Species lacking a genus]]}}{{#if:{{{family|}}}||[[Category:Species lacking a family]]}}{{#if:{{{order|}}}||[[Category:Species lacking an order]]}}{{#if:{{{class|}}}||[[Category:Species lacking a class]]}}{{#if:{{{phylum|}}}||[[Category:Species lacking a phylum]]}}{{#if:{{{family|}}}{{{order|}}}{{{class|}}}{{{phylum|}}}{{{kingdom|}}}{{{domain|}}}||[[Category:Species lacking classification]]}}{{#ifeq:{{{species}}}|spp.|[[Category:Genus groups]]}}{{#if:{{{size|}}}||[[Category:Size Unknown]]}}{{#if:{{{diet|}}}||[[Category:Diet Unknown]]}}{{#if:{{{respiration|}}}||[[Category:Respiration Unknown]]}}{{#if:{{{thermoregulation|}}}||[[Category:Thermoregulation Unknown]]}}{{#if:{{{reproduction|}}}||[[Category:Reproduction Unknown]]}}{{#ifeq:{{Show|SpeciesInfo|{{{ancestor}}}|generation}}|{{{generation}}}|[[Category:Species created in the same generation as their ancestor]]}}{{#ifeq:{{Epochfromgen|{{{generation}}}}}|{{{epoch}}}||[[Category:Species with mismatched epoch and generation numbers]]}} {{#ifeq:{{gencheck|{{{generation}}}|{{PAGENAME}}}}|no|[[Category:Species which are not linked on their generation page]]}}{{#if:{{{ancestor|}}}|{{#ifexist:{{{ancestor}}}||[[Category:Species with a non-existent ancestor listed]]}}}}<!-- |
||
--> |
--> |
||
Line 204: | Line 204: | ||
|ancestor = Wikitext string |
|ancestor = Wikitext string |
||
|exgen = Wikitext string |
|exgen = Wikitext string |
||
| |
|exepoch = Wikitext string |
||
|descendants = Wikitext |
|descendants = Wikitext |
||
|image = File |
|image = File |
||
Line 225: | Line 225: | ||
|ancestor = {{{ancestor|}}}{{{ancestorX|}}} |
|ancestor = {{{ancestor|}}}{{{ancestorX|}}} |
||
|exgen = {{{exgen|?}}} |
|exgen = {{{exgen|?}}} |
||
| |
|exepoch = {{Exepochcalc|{{{name|{{PAGENAME}}}}}}} |
||
|descendants = {{#if:{{#dpl:|debug=no|noresultsheader= |category=Descendant of {{PAGENAME}}|titlemaxlength=40}}|{{#dpl:|debug=no|noresultsheader= |category=Descendant of {{PAGENAME}}|titlemaxlength=40}}|none}} |
|descendants = {{#if:{{#dpl:|debug=no|noresultsheader= |category=Descendant of {{PAGENAME}}|titlemaxlength=40}}|{{#dpl:|debug=no|noresultsheader= |category=Descendant of {{PAGENAME}}|titlemaxlength=40}}|none}} |
||
|image = {{{image|}}} |
|image = {{{image|}}} |
Revision as of 05:49, 10 August 2022
This template is to be used on species pages.
Usage
{{Species |name = |epoch = |generation = |creator = Creator, just plain text |creator2 = Optional, plain text (leave blank if there's only one creator) |artist = Optional, leave blank if it's the same as the creator |image = Just the file name, leave blank if none (optional) |extant = (If extinct, place a 1 here. If extant leave blank) |exepoch = |exgen = |excause = |ancestor = |ancestorX = If there is a special case, put raw code in here, leave above blank. |size = Creatures size (optional) |support = |habitat = Where your species lives (see biome list) |habitat2 = Additional habitat, can add up 20 using the format |habitat# = location |diet = Herbivore/Carnivore/Omnivore (optional) |respiration = |thermoregulation = |reproduction = |domain = |kingdom = |phylum = |class = |order = |family = |genus = |species = }}
Example input
{{Species |name = Protosagania |epoch = 1 |generation = 1 |creator = Hydromancerx |creator2 = |artist = |image = Sagan_001.jpg |extant = 1 |exepoch = |exgen = |excause = |ancestor = |size = Microscopic |support = |habitat = Tidepool |diet = Varied |respiration = Varied |thermoregulation = Varied |reproduction = Binary fission |domain = Nucleophora |kingdom = Protobia |phylum = Sagamoeboidea |class = N/A |order = N/A |family = N/A |genus = Protosagania |species = sp. }} text text text text text
Example output
Protosagania (Protosagania sp.) | |
---|---|
File:Sagan 001.jpg | |
![]() ![]() 1/8, solar flare | |
Creator | Hydromancerx Other |
| |
Epoch/Generation | 1/1 |
Habitat | Tidepool |
Size | Microscopic |
Support | Unknown |
Diet | Varied |
Respiration | Varied |
Thermoregulation | Varied |
Reproduction | Binary fission |
Descendant of | Ancestor of |
Unknown |
{{#cargo_store: _table = SpeciesInfo |title = Species |type = Species |status = extinct |creator = Hydromancerx |artist = |epoch = 1 |generation = 1 |size = Microscopic |diet = Varied |reproduction = Binary fission |family = |genus = Protosagania |species = sp. |ancestor = |exgen = 8 |exepoch = |descendants = none |image = Sagan_001.jpg |imageAlt = Sagan_001.jpg }}
text text text text text text
{{#cargo_declare: _table = SpeciesInfo |title = Wikitext string |type = Wikitext string |status = Wikitext string |creator = Wikitext string |artist = Wikitext string |epoch = Wikitext string |generation = Wikitext string |size = Wikitext string |diet = Wikitext |reproduction = Wikitext string |family = Wikitext string |genus = Wikitext string |species = Wikitext string |ancestor = Wikitext string |exgen = Wikitext string |exepoch = Wikitext string |descendants = Wikitext |image = File |imageAlt = Wikitext string }}