Template:Category-site-Nav: Difference between revisions

From kanterella
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
== Plant ==
<noinclude>This template is about giving site based sub-queries by adding this template to a category.
<includeonly>__NOTOC__<div class="nav_col">
 
It assumes you are looking for a breakdown of each site or type of site. It counts the pages with that site and category to give a number and the site name will link to a query of those pages (sorted chronologically descending).
 
* the query template = [[Template:Site category queries]]
:: Optional "sort" input is possible if you want to create unique versions of the query template
 
</noinclude>
<includeonly>== Plant ==
__NOTOC__<div class="nav_col">
<div class="c1">
<div class="c1">
===[[NRC Region 1|Region 1]]===
===[[NRC Region 1|Region 1]]===
Line 21: Line 29:
<hr>{{#ask:[[Category:Site]][[site type::Plant]][[NRC region::NRC Region 4]][[Site decommissioned::True]]|?name|format=ul|template=Site category queries{{#if:{{{sort|}}}|-{{{sort|}}}}}|link=none|limit=50}}
<hr>{{#ask:[[Category:Site]][[site type::Plant]][[NRC region::NRC Region 4]][[Site decommissioned::True]]|?name|format=ul|template=Site category queries{{#if:{{{sort|}}}|-{{{sort|}}}}}|link=none|limit=50}}
</div>
</div>
</div>[[Category:Category by site]]</includeonly>
</div>[[Category:Category by site]]


== University ==
== University ==
Line 40: Line 48:
== Agency ==
== Agency ==
{{#ask:[[Category:Site]][[site type::Agency]]|?name|format=ul|template=Site category queries{{#if:{{{sort|}}}|-{{{sort|}}}}}|link=none|limit=50}}
{{#ask:[[Category:Site]][[site type::Agency]]|?name|format=ul|template=Site category queries{{#if:{{{sort|}}}|-{{{sort|}}}}}|link=none|limit=50}}
</includeonly>

Revision as of 08:46, 3 January 2025

This template is about giving site based sub-queries by adding this template to a category.

It assumes you are looking for a breakdown of each site or type of site. It counts the pages with that site and category to give a number and the site name will link to a query of those pages (sorted chronologically descending).

Optional "sort" input is possible if you want to create unique versions of the query template