Difference between revisions of "Template:ClusterWorlds"

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|T5 Second ...")
 
(Undo revision 559132 by Maksim-Smelchak (talk))
Tag: Undo
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<div class="toccolours" style="clear: both; width: 94%; margin: 0.5em auto; text-align: center; padding: 0em 0em 0em 0em; border-radius: 4px">
 
<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|T5 Second Survey}}}_worlds
+
{{#dpl: category={{{1|{{PAGENAME}}}}}_worlds
 
  |notcategory=Templates
 
  |notcategory=Templates
 
  |ordermethod=title
 
  |ordermethod=title
 
  |order=ascending
 
  |order=ascending
 
  |mode=userformat
 
  |mode=userformat
 +
|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 the {{{1|T5 Second Survey}}}</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|T5 Second Survey}}}</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>
+
----
|includematch= /\{{!}}({{{1|}}}{{!}}{{{3|}}}{{!}}{{{4|}}}{{!}}{{{5|}}})\{{!}}/
+
{{ClusterWorlds/doc}}
|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.
+
[[Category:Templates|ClusterWorlds]]
 
+
[[Category:NavBox Templates|ClusterWorlds]]
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.
+
[[Category:DPL Templates|ClusterWorlds]]</noinclude>
</noinclude>
 

Latest revision as of 13:29, 12 August 2021

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.

Parameters:

1
(Optional) Category Name, defaults to the current page name

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