Template:Show: Difference between revisions

From Sagan 4 Alpha Wiki
Jump to navigation Jump to search
Content added Content deleted
imported>Disgustedorite
(Change: if species being queried is from a compound submission (ie a subgenus), it will pull data from the SpeciesData namespace instead.)
imported>Disgustedorite
No edit summary
Line 7: Line 7:
Above code displays the following: </noinclude><!--{{#cargo_query:tables={{{1|SpeciesInfo}}}
Above code displays the following: </noinclude><!--{{#cargo_query:tables={{{1|SpeciesInfo}}}
|fields={{{3|genus}}}
|fields={{{3|genus}}}
|where=_pageName="{{{2|Golden Sauceback}}}"|no html}}--><onlyinclude>{{#show:{{#ifeq:{{#show:{{{2|Golden Sauceback}}}|?{{{3|Pagetype}}}|link=none}}|compound|SpeciesData:}}{{{2|Golden Sauceback}}}|?{{{3|genus}}}|link=none}}</onlyinclude>
|where=_pageName="{{{2|Golden Sauceback}}}"|no html}}--><onlyinclude>{{#show:{{{2|Golden Sauceback}}}{{#ifeq:{{#show:{{{2|Golden Sauceback}}}|?{{{3|Pagetype}}}|link=none}}|compound|/Data}}|?{{{3|genus}}}|link=none}}</onlyinclude>


<noinclude>[[category:Templates]]</noinclude>
<noinclude>[[category:Templates]]</noinclude>

Revision as of 02:15, 18 April 2023

Displays specific data from a specific page in a specific table.

Format: {{Show|TableName|PageName|Dataname}}

Example: {{Show|SpeciesInfo|Golden Sauceback|genus}}

Above code displays the following: Vermitherium