Jump to content

Template:Subjects: Difference between revisions

From Wikibooks, open books for an open world
[unreviewed revision][unreviewed revision]
Content deleted Content added
m +this does bookcat too
Mrycik (discuss | contribs)
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
{{#ifeq:{{#switch:{{#titleparts:{{FULLPAGENAME}}|0}}|{{BOOKNAME}}|{{NAMESPACE}}:{{#titleparts:{{PAGENAME}}|0}} = yes|#default = no}}|yes|
{{#ifeq:{{#switch:{{#titleparts:{{}}|0}}|{{Choosing High Quality Children's Literature}}|{{NAMESPACE}}:{{#titleparts:{{PAGENAME}}|0}} = yes|#default = no}}|yes|
{{#if:{{NAMESPACE}}||[[Category:{{BOOKNAME}}]]}}
{{#if:{{NAMESPACE}}||[[Category:{{BOOKNAME}}]]}}
{{#if:{{{1|}}}|[[Category:{{{1}}}|{{FULLCHAPTERNAME}}]]|[[Category:Uncategorized modules|{{FULLCHAPTERNAME}}]]}}
{{#if:{{{1|}}}|[[Category:{{{1}}}|{{Poetry}}]]|[[Category:Poetry genre|{{Realistic Fiction}}]]}}
{{#if:{{{2|}}}|[[Category:{{{2}}}|{{FULLCHAPTERNAME}}]]}}{{#if:{{{3|}}}|[[Category:{{{3}}}|{{FULLCHAPTERNAME}}]]}}
{{#if:{{{2|}}}|[[Category:{{{2}}}|{{Multicultural Literature}}]]}}{{#if:{{{3|}}}|[[Category:{{{3}}}|{{FULLCHAPTERNAME}}]]}}
{{#if:{{{4|}}}|[[Category:{{{4}}}|{{FULLCHAPTERNAME}}]]}}{{#if:{{{5|}}}|[[Category:{{{5}}}|{{FULLCHAPTERNAME}}]]}}
{{#if:{{{4|}}}|[[Category:{{{4}}}|{{Traditional Literature}}]]}}{{#if:{{{5|}}}|[[Category:{{{5}}}|{{Modern Fantasy}}]]}}
{{#if:{{{6|}}}|[[Category:{{{6}}}|{{FULLCHAPTERNAME}}]]}}{{#if:{{{7|}}}|[[Category:{{{7}}}|{{FULLCHAPTERNAME}}]]}}
{{#if:{{{6|}}}|[[Category:{{{6}}}|{{Historical Fiction}}]]}}{{#if:{{{7|}}}|[[Category:{{{7}}}|{{Informational Books}}]]}}
{{#if:{{{8|}}}|[[Category:{{{8}}}|{{FULLCHAPTERNAME}}]]}}{{#if:{{{9|}}}|[[Category:{{{9}}}|{{FULLCHAPTERNAME}}]]}}
{{#if:{{{8|}}}|[[Category:{{{8}}}|{{Biography}}]]}}{{#if:{{{9|}}}|[[Category:{{{9}}}|{{Picture Book Illustrations}}]]}}
{{#if:{{{10|}}}|[[Category:{{{10}}}|{{FULLCHAPTERNAME}}]]}}|[[Category:{{BOOKNAME}}|{{FULLCHAPTERNAME}}]]}}
{{#if:{{{10|}}}|[[Category:{{{10}}}|{{Children's Literature Awards}}]]}}|[[Category:{{BOOKNAME}}|{{FULLCHAPTERNAME}}]]}}
</includeonly><noinclude>
</includeonly><noinclude>



Revision as of 14:40, 8 May 2008


This template categorizes a book in up to 10 categories, plus the book category (this is automatic).

Example
{{Subjects|Math|Science|Computing|Programming|etc}}