Difference between revisions of "Template:LibraryEntries"

From Traveller Wiki - Science-Fiction Adventure in the Far future
Jump to navigation Jump to search
m (sp)
(16 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
|Image            =
 
|Image            =
 
|Category          =
 
|Category          =
|List              = {{#dpl:category=+{{{1|Library}}}
+
|List              = <div style="text-align:left>
|notcategory      = templates
+
  {{#dpl:category=+{{{1|Library}}}
|linksto          = {{FULLPAGENAME}}
+
    |notcategory      = templates
|ordermethod      = title
+
    |linksto          = {{FULLPAGENAME}}
|columns          = 4
+
    |ordermethod      = title
|rowcolformat      = width=70%
+
    |columns          = 4
|resultsheader    = Alphabetical List¶
+
    |allowcachedresults= true
|resultsfooter    =
+
    |notcategory={{{skip category 1|}}}
|allowcachedresults= true
+
    |notcategory={{{skip category 2|}}}
}}
+
    |notcategory={{{skip category 3|}}}
 +
  }}</div>
 
}}<noinclude>
 
}}<noinclude>
This template give the all the article entries in the [[:Category:Library]] or another category linked to this article. Intended to be used in the publication entries to list the library data entries from the book.  
+
This template displays all the article entries in the [[:Category:Library]] or another category linked to this article. Intended to be used in the publication entries to list the library data entries from the book.  
* Practically, this will cite all the articles that site the publication that the template is attached to. If it's in the ''References & Contributors (Sources)'' are of an article, it will be referenced.
+
 +
Practically, this will cite all the articles that site the publication that the template is attached to. If it's in the ''References & Contributors (Sources)'' of an article, it will be listed here.
 +
 
 +
Simple Use:
 +
<nowiki>{{LibraryEntries|<optional category>}}</nowiki>
 +
 
 +
More complicated, the you can add a "skip category 1" parameter to allow adding two dynamically list to a single page, one with a specific category, and one for everything else. On a page this would look like:
 +
 
 +
<nowiki>{{LibraryEntries|<specific category>}}</nowiki>
 +
 
 +
<nowiki>{{LibraryEntries|skip category 1=<specific category>}} </nowiki>
 +
 
 +
This can be extended up to 3 skip categories, parameters are numbered 1 - 3
 +
 
 
[[Category:Templates|LibraryEntries]]
 
[[Category:Templates|LibraryEntries]]
 
[[Category:DPL Templates|LibraryEntries]]
 
[[Category:DPL Templates|LibraryEntries]]
 
[[Category:NavBox Templates|LibraryEntries]]</noinclude>
 
[[Category:NavBox Templates|LibraryEntries]]</noinclude>

Revision as of 00:11, 20 August 2021

Library data entries

This template displays all the article entries in the Category:Library or another category linked to this article. Intended to be used in the publication entries to list the library data entries from the book.

Practically, this will cite all the articles that site the publication that the template is attached to. If it's in the References & Contributors (Sources) of an article, it will be listed here.

Simple Use: {{LibraryEntries|<optional category>}}

More complicated, the you can add a "skip category 1" parameter to allow adding two dynamically list to a single page, one with a specific category, and one for everything else. On a page this would look like:

{{LibraryEntries|<specific category>}}

{{LibraryEntries|skip category 1=<specific category>}}

This can be extended up to 3 skip categories, parameters are numbered 1 - 3