Difference between revisions of "Template:ClusterWorlds"

From Traveller Wiki - Science-Fiction Adventure in the Far future
Jump to navigation Jump to search
Line 6: Line 6:
 
  |mode=userformat
 
  |mode=userformat
 
  |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 the {{{1|{{PAGENAME}}}}}</div>
+
  |resultsheader=<div style="padding-top: 0.2em; padding-bottom: 0.2em; background:#ccccff; font-weight:bold"> %PAGES% Worlds 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>
}}
+
}}</div><noinclude>
</div><noinclude>
+
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.
|includematch= /\{{!}}({{{1|}}}{{!}}{{{3|}}}{{!}}{{{4|}}}{{!}}{{{5|}}})\{{!}}/
 
|linksto={{{1|Uncharted}}}_{{{2|Sector}}}
 
This template list in a navigation box, lists all of the [[:Category: Worlds|Worlds]] in the wiki that link to the sector name page(s), and have a [[:Template: World]] with a parameter matching the first, third, fourth, or fifth parameter of this template.
 
  
Usually this is used for the [[:Category: Sectors|Sector]] articles to allow creating a list of all the worlds within the particular sector. It can also be used to list worlds in a [[:Category: Subsectors|Subsectors]] as well.  
+
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.
 +
 
 +
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>.
  
 
This requires the #dpl (DynamicPageList) parser function
 
This requires the #dpl (DynamicPageList) parser function
 
[[Category: Templates|SectorWorlds]]
 
[[Category: Templates|SectorWorlds]]
[[Category: DPL Templates|SectorWorlds]]
+
[[Category: DPL Templates|SectorWorlds]]</noinclude>
 
 
</noinclude>
 

Revision as of 20:16, 24 August 2013

No world articles for ClusterWorlds

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.

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.

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 {{ClusterWorlds|Dodds Cluster}}.

This requires the #dpl (DynamicPageList) parser function