Difference between revisions of "Template:ClusterWorlds2"

From Traveller Wiki - Science-Fiction Adventure in the Far future
Jump to navigation Jump to search
(Created page with "<div class="toccolours" style="clear: both; width: 94%; margin: 0.5em auto; text-align: center; padding: 0em 0em 0em 0em; border-radius: 4px"> {{#dpl: category={{{1|{{PAGENAME...")
 
 
(11 intermediate revisions by 2 users not shown)
Line 7: Line 7:
 
  |titlematch=%(world)
 
  |titlematch=%(world)
 
  |includepage={World}.dpl
 
  |includepage={World}.dpl
  |resultsheader=<div style="padding-top: 0.2em; padding-bottom: 0.2em; background:#ccccff; font-weight:bold"> %PAGES% Worlds in [[{{{1|{{PAGENAME}}}}}]]</div>
+
  |resultsheader=<div style="padding-top: 0.2em; padding-bottom: 0.2em; background:#ccccff; font-weight:bold"> %PAGES% of %TOTALPAGES% World articles in [[{{{1|{{PAGENAME}}}}}]]</div>
 
  |noresultsheader=<div style="padding-top: 0.2em; padding-bottom: 0.2em; background:#ccccff; font-weight:bold">No world articles for {{{1|{{PAGENAME}}}}}</div>
 
  |noresultsheader=<div style="padding-top: 0.2em; padding-bottom: 0.2em; background:#ccccff; font-weight:bold">No world articles for {{{1|{{PAGENAME}}}}}</div>
 
  |format=<div style="font-size: 90%; padding: 0.5em 1em">,,&nbsp; &bull; &nbsp;,</div>
 
  |format=<div style="font-size: 90%; padding: 0.5em 1em">,,&nbsp; &bull; &nbsp;,</div>
 
  |resultsfooter      = ²{Extension DPL continue¦dir=%SCROLLDIR%¦pages=%PAGES%¦total=%TOTALPAGES%¦firsttitle=%FIRSTTITLE%¦lasttitle=%LASTTITLE%¦page={{FULLPAGENAME}}}²\n
 
  |resultsfooter      = ²{Extension DPL continue¦dir=%SCROLLDIR%¦pages=%PAGES%¦total=%TOTALPAGES%¦firsttitle=%FIRSTTITLE%¦lasttitle=%LASTTITLE%¦page={{FULLPAGENAME}}}²\n
  |count             = {%DPL_count:200%}
+
  |count = {%DPL_count:200%}
  |scroll=yes
+
  |scroll = No
}}</div><noinclude>
+
}}</div>
This template list in a navigation box lists all of the worlds gathered together in a category specifically for noting Traces, Clusters, Mains, Surveys, and other astrographic grouping of systems. The category is assumed to be named <NAME>_worlds to indicate which worlds are within the group. This template limits the list to 200 entries, but allows scrolling through the list. This allows creating a list for clusters with more than 500 items, the DPL hardcoded limit.  
+
<noinclude>
 +
'''SYNOPSIS:''' This template list in a navigation box lists all of the worlds gathered together in a category specifically for noting Traces, Clusters, Mains, Surveys, and other astrographic grouping of systems.  
 +
* The category is assumed to be named <NAME>_worlds to indicate which worlds are within the group.  
 +
* This template limits the list to 200 entries, but allows scrolling through the list.  
 +
* This allows creating a list for clusters with more than 500 items, the DPL hardcoded limit.  
  
If the template is to be included in the article about the grouping, such that the category is simply the article name with "_worlds" appended (the recommended practice), no parameters are required.  
+
'''PARAMETERS:''' If the template is to be included in the article about the grouping, such that the category is simply the article name with "_worlds" appended (the recommended practice), no parameters are required.
 +
 
 +
''Example:'' <nowiki>{{ClusterWorlds2}}</nowiki> produces the results above.  
  
 
For example, the [[Spinward Marches Sector]] contains a grouping of worlds called [[Dodds Cluster]]. There is a category [[:Category:Dodds Cluster worlds]].  
 
For example, the [[Spinward Marches Sector]] contains a grouping of worlds called [[Dodds Cluster]]. There is a category [[:Category:Dodds Cluster worlds]].  
  
If the template is in another article, or the naming convention wasn't followed, include the name of the primary article (e.g. "Dodds Cluster") as the first parameter. For example <nowiki>{{ClusterWorlds|Dodds Cluster}}</nowiki>.
+
If the template is used in another article, or the naming convention wasn't followed, include the name of the primary article (e.g. "Dodds Cluster") as the first parameter. For example <nowiki>{{ClusterWorlds2|Dodds Cluster}}</nowiki>.
 +
 
 +
This produces the following results:
 +
 
 +
{{ClusterWorlds2|Dodds Cluster}}
 +
 +
This requires the #dpl (DynamicPageList) parser function.
  
This requires the #dpl (DynamicPageList) parser function
+
[[Category:Templates|ClusterWorlds]]
[[Category: Templates|ClusterWorlds]]
+
[[Category:NavBox Templates|ClusterWorlds]]
[[Category: DPL Templates|ClusterWorlds]]</noinclude>
+
[[Category:DPL Templates|ClusterWorlds]]
 +
{{MET}}</noinclude>

Latest revision as of 05:21, 28 December 2019

No world articles for ClusterWorlds2

SYNOPSIS: This template list in a navigation box lists all of the worlds gathered together in a category specifically for noting Traces, Clusters, Mains, Surveys, and other astrographic grouping of systems.

  • The category is assumed to be named <NAME>_worlds to indicate which worlds are within the group.
  • This template limits the list to 200 entries, but allows scrolling through the list.
  • This allows creating a list for clusters with more than 500 items, the DPL hardcoded limit.

PARAMETERS: If the template is to be included in the article about the grouping, such that the category is simply the article name with "_worlds" appended (the recommended practice), no parameters are required.

Example: {{ClusterWorlds2}} produces the results above.

For example, the Spinward Marches Sector contains a grouping of worlds called Dodds Cluster. There is a category Category:Dodds Cluster worlds.

If the template is used in another article, or the naming convention wasn't followed, include the name of the primary article (e.g. "Dodds Cluster") as the first parameter. For example {{ClusterWorlds2|Dodds Cluster}}.

This produces the following results:

17 of 17 World articles in Dodds Cluster
Aramis (SM 2540)  •  Chamois  •  D'mara  •  Dobham  •  Dodds  •  Farquahar  •  Keltchner  •  Labora  •  Pyramus  •  Robin (SM 2637)  •  Squanine  •  Tee-tee-tee  •  Tenelphi  •  Thisbe  •  Thornnastor  •  Youghal  •  Zephyr (SM 3138)  •  
startbacknext(17 listed)


This requires the #dpl (DynamicPageList) parser function.