Difference between revisions of "Template:LibraryEntries"

From Traveller Wiki - Science-Fiction Adventure in the Far future
Jump to navigation Jump to search
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__{{NavigationBox
+
{{NavigationBox
 
|Title            = {{{1|Library}}} data entries
 
|Title            = {{{1|Library}}} data entries
 
|Image            =
 
|Image            =
 
|Category          =
 
|Category          =
|List              =  
+
|List              = <div style="text-align:left;-webkit-column-count:4;column-count:4;">
 
   {{#dpl:category=+{{{1|Library}}}
 
   {{#dpl:category=+{{{1|Library}}}
 
     |notcategory      = templates
 
     |notcategory      = templates
Line 9: Line 9:
 
     |ordermethod      = title
 
     |ordermethod      = title
 
     |columns          = 4
 
     |columns          = 4
    |rowcolformat      = class=navboxleft
 
 
     |allowcachedresults= true
 
     |allowcachedresults= true
 
     |notcategory={{{skip category 1|}}}
 
     |notcategory={{{skip category 1|}}}
 
     |notcategory={{{skip category 2|}}}
 
     |notcategory={{{skip category 2|}}}
 
     |notcategory={{{skip category 3|}}}
 
     |notcategory={{{skip category 3|}}}
   }}
+
   }}</div>
 
}}<noinclude>
 
}}<noinclude>
 
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.  
 
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.  
Line 25: Line 24:
 
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:
 
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>{{LibraryExtries|<specific category>}}</nowiki>
+
<nowiki>{{LibraryEntries|<specific category>}}</nowiki>
  
 
<nowiki>{{LibraryEntries|skip category 1=<specific category>}} </nowiki>
 
<nowiki>{{LibraryEntries|skip category 1=<specific category>}} </nowiki>

Latest revision as of 00:34, 17 November 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