Template:RandomImageInTaxon: Difference between revisions

From Sagan 4 Alpha Wiki
Jump to navigation Jump to search
Content added Content deleted
imported>Disgustedorite
No edit summary
imported>Disgustedorite
(adding ability to generate more than one)
Line 1: Line 1:
Displays an image of a random species in a given category, meant for use on taxonomy pages. First parameter is the category name, second is custom text in place of the page name.
Displays an image of a random species in a given category, meant for use on taxonomy pages. First parameter is the category name, second is custom text in place of the page name, third is number of species to display.


<onlyinclude>{{#dpl:category={{{1|Eukaryota}}}|category=species|randomcount=1|format=,,[[File:²{show|SpeciesInfo|%PAGE%|imageAlt}²|thumb|[[%PAGE%]] is an example of {{{2|{{{1|Eukaryota}}}}}}.]],}}</onlyinclude>
<onlyinclude>{{#dpl:category={{{1|Eukaryota}}}|category=species|randomcount={{{3|1}}}|format=,,[[File:²{show|SpeciesInfo|%PAGE%|imageAlt}²|thumb|[[%PAGE%]] is an example of {{{2|{{{1|Eukaryota}}}}}}.]],}}</onlyinclude>

Revision as of 08:08, 18 January 2023

Displays an image of a random species in a given category, meant for use on taxonomy pages. First parameter is the category name, second is custom text in place of the page name, third is number of species to display.