Difference between revisions of "Template:LEN"

From Traveller Wiki - Science-Fiction Adventure in the Far future
Jump to navigation Jump to search
(Replace if template with string parser if)
Line 4: Line 4:
 
{{#if: {{{4|}}}|[[Category: {{{4}}}]]}}
 
{{#if: {{{4|}}}|[[Category: {{{4}}}]]}}
 
{{#if: {{{5|}}}|[[Category: {{{5}}}]]}}
 
{{#if: {{{5|}}}|[[Category: {{{5}}}]]}}
<includeonly>[[Category:Library]][[Category:Non-canon]]</includeonly>
+
<includeonly>[[Category:Library]][[Category:Non-canon]][[Category:{{#sub:{{PAGENAME}}|0|1}}]]</includeonly>
 
<noinclude>
 
<noinclude>
This template is a text substitution template designed to mark an article as part of the non-canon library and any other categories as required (up to 5). You must include the first category, but all others as optional.  
+
This template is a text substitution template designed to mark an article as part of the non-canon library and any other categories as required (up to 5). You must include the first category, but all others as optional. This also generates an entry for the first letter of the article name.
 
<pre><nowiki>
 
<pre><nowiki>
 
{{LE
 
{{LE

Revision as of 22:08, 14 January 2008

[[Category:{{{1}}}]]




This template is a text substitution template designed to mark an article as part of the non-canon library and any other categories as required (up to 5). You must include the first category, but all others as optional. This also generates an entry for the first letter of the article name.

{{LE
  |{category 1}
  |<category 2>
  |<category 3>
  |<category 4>
  |<category 5>
}}