Template:Subject: Difference between revisions
Appearance
wikademia>Mike.lifeguard m Reverted edit of Mrycik, changed back to last version by Mike.lifeguard |
wikademia>Wikademia m 22 revisions |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{{#ifeq:{{#switch:{{#titleparts:{{FULLPAGENAME}}|0}}|{{BOOKNAME}}|{{NAMESPACE}}:{{#titleparts:{{PAGENAME}}|0}} = yes|#default = no}}|yes| | {{#ifeq:{{#switch:{{#titleparts:{{FULLPAGENAME}}|0}}|{{BOOKNAME}}|{{NAMESPACE}}:{{#titleparts:{{PAGENAME}}|0}} = yes|#default = no}}|yes| | ||
{{#if:{{NAMESPACE}}||[[Category:{{BOOKNAME}}]]}} | {{#if:{{NAMESPACE}}||[[Category:{{{bookcategory|{{BOOKNAME}}}}}]]}} | ||
{{#if:{{{1|}}}|[[Category:{{{1}}}|{{FULLCHAPTERNAME}}]]|[[Category:Uncategorized modules|{{FULLCHAPTERNAME}}]]}} | {{#if:{{{1|}}}|[[Category:{{{1}}}|{{FULLCHAPTERNAME}}]]|[[Category:Uncategorized modules|{{FULLCHAPTERNAME}}]]}} | ||
{{#if:{{{2|}}}|[[Category:{{{2}}}|{{FULLCHAPTERNAME}}]]}}{{#if:{{{3|}}}|[[Category:{{{3}}}|{{FULLCHAPTERNAME}}]]}} | {{#if:{{{2|}}}|[[Category:{{{2}}}|{{FULLCHAPTERNAME}}]]}}{{#if:{{{3|}}}|[[Category:{{{3}}}|{{FULLCHAPTERNAME}}]]}} | ||
| Line 10: | Line 10: | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
This template categorizes a book in up to 10 categories, plus the book category (this is automatic). | This template categorizes a book in up to 10 categories, plus the book category (this is automatic). The book category can be modified by setting the <code>bookcategory</code> variable | ||
<pre>{{Subject|Math|Science|Computing|Programming|etc}} | |||
{{Subject|bookcategory=book (book)|Math|Science|etc}}</pre> | |||
[[Category:Catalogue templates]] | |||
</noinclude> | </noinclude> | ||
Latest revision as of 00:33, 29 April 2009
This template categorizes a book in up to 10 categories, plus the book category (this is automatic). The book category can be modified by setting the bookcategory variable
{{Subject|Math|Science|Computing|Programming|etc}}
{{Subject|bookcategory=book (book)|Math|Science|etc}}