Template:Show: Difference between revisions

From Sagan 4 Alpha Wiki
Jump to navigation Jump to search
Content added Content deleted
imported>Disgustedorite
(hopefully patched that dastardly double results bug)
imported>Disgustedorite
(new auto category just dropped)
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}}}"|limit=1|more results text=|no html}}
|where=_pageName="{{{2|Golden Sauceback}}}"|limit=1|more results text=|default=No results[[Category:Pages containing cargo querys which returned no results]]|no html}}

Revision as of 19:41, 20 September 2021

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: {{#cargo_query:tables=SpeciesInfo |fields=genus |where=_pageName="Golden Sauceback"|limit=1|more results text=|default=No results|no html}}