<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://enscitech.science.edu/index.php?action=history&amp;feed=atom&amp;title=Template%3ABookCat%2Fdoc</id>
	<title>Template:BookCat/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://enscitech.science.edu/index.php?action=history&amp;feed=atom&amp;title=Template%3ABookCat%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://enscitech.science.edu/index.php?title=Template:BookCat/doc&amp;action=history"/>
	<updated>2026-05-18T17:03:13Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.7</generator>
	<entry>
		<id>https://enscitech.science.edu/index.php?title=Template:BookCat/doc&amp;diff=153&amp;oldid=prev</id>
		<title>Thomas.Eyre: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://enscitech.science.edu/index.php?title=Template:BookCat/doc&amp;diff=153&amp;oldid=prev"/>
		<updated>2025-01-07T20:32:08Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:32, 7 January 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key mediawiki:diff:1.41:old-149:rev-153 --&gt;
&lt;/table&gt;</summary>
		<author><name>Thomas.Eyre</name></author>
	</entry>
	<entry>
		<id>https://enscitech.science.edu/index.php?title=Template:BookCat/doc&amp;diff=149&amp;oldid=prev</id>
		<title>en&gt;Thomas Eyre: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://enscitech.science.edu/index.php?title=Template:BookCat/doc&amp;diff=149&amp;oldid=prev"/>
		<updated>2018-03-06T01:14:36Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
{{possible-risk}}&lt;br /&gt;
&amp;lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This template puts the page on which it&amp;#039;s used (&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{FULLPAGENAME}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;) into appropriate categories, based on certain page-naming and page-categorization conventions.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
When used without parameters, it&lt;br /&gt;
*places subpages of a book in the book&amp;#039;s category ({{nowrap|&amp;lt;code&amp;gt;{{BOOKCATEGORY|}}{{tlx|BOOKNAME}}&amp;lt;/code&amp;gt;}}) and sorts them by chapter name.&lt;br /&gt;
*places a book&amp;#039;s templates in the book&amp;#039;s template category ({{nowrap|&amp;lt;code&amp;gt;{{BOOKCATEGORY|}}{{tlx|BOOKNAME}}/Templates&amp;lt;/code&amp;gt;}}). &amp;#039;&amp;#039;This only does the right thing if a book&amp;#039;s templates begin with&amp;#039;&amp;#039;&amp;amp;nbsp; {{nowrap|&amp;lt;code&amp;gt;Template:{{tlx|BOOKNAME}}&amp;lt;/code&amp;gt;}}&amp;amp;nbsp;.&lt;br /&gt;
*places a book&amp;#039;s template category in the book&amp;#039;s category and in&amp;amp;nbsp; {{nowrap|&amp;lt;code&amp;gt;[[:Category:Book-specific templates]]&amp;lt;/code&amp;gt;}}&amp;amp;nbsp;.&lt;br /&gt;
*places any other category in its parent, sorted by the category&amp;#039;s last name.  The parent has the same name except removing everything from the last slash on; and the last name is the part that was removed after that last slash.  For example, {{nowrap|&amp;lt;code&amp;gt;Category:My Book/Images&amp;lt;/code&amp;gt;}}&amp;amp;nbsp; would go in&amp;amp;nbsp; {{nowrap|&amp;lt;code&amp;gt;Category:My Book&amp;lt;/code&amp;gt;}}&amp;amp;nbsp; with sort key&amp;amp;nbsp; &amp;lt;code&amp;gt;Images&amp;lt;/code&amp;gt;&amp;amp;nbsp;.&lt;br /&gt;
&lt;br /&gt;
===Parameters===&lt;br /&gt;
Optional parameter&amp;amp;nbsp; {{nowrap|&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;filing=deep&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;}}&amp;amp;nbsp; changes the behavior on book pages, so that a book page with more than one slash in its name is placed in a subcategory of the category where its parent page would be placed, sorted by the page&amp;#039;s last name.  For example, using&amp;amp;nbsp; {{nowrap|&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{BookCat|filing=deep}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;}}&amp;amp;nbsp; on page&amp;amp;nbsp; {{nowrap|&amp;lt;code&amp;gt;My Book/Maps/Asia&amp;lt;/code&amp;gt;}}&amp;amp;nbsp; would put that page in&amp;amp;nbsp; {{nowrap|&amp;lt;code&amp;gt;Category:My Book/Maps&amp;lt;/code&amp;gt;}}&amp;amp;nbsp; with sort key&amp;amp;nbsp; &amp;lt;code&amp;gt;Asia&amp;lt;/code&amp;gt;&amp;amp;nbsp;.&lt;br /&gt;
&lt;br /&gt;
Optional parameter&amp;amp;nbsp; {{nowrap|&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;template-filing=deep&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;}}&amp;amp;nbsp; changes the behavior on template pages to deep filing (so&amp;amp;nbsp; {{nowrap|&amp;lt;code&amp;gt;Template:My book/Maps/Asia&amp;lt;/code&amp;gt;}}&amp;amp;nbsp; would go in&amp;amp;nbsp; {{nowrap|&amp;lt;code&amp;gt;Category:My book/Templates/Maps&amp;lt;/code&amp;gt;}}).&lt;br /&gt;
&lt;br /&gt;
Optional parameter&amp;amp;nbsp; &amp;lt;code&amp;gt;sort&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;sortkey&amp;lt;/code&amp;gt; specifies a sort key to be used for categorization instead of relying on {{tl|BOOKSORTKEY}}.&lt;br /&gt;
&lt;br /&gt;
Optional first unnamed parameter is a full page name to use instead of the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{FULLPAGENAME}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; of the current page.&lt;br /&gt;
&lt;br /&gt;
An alternative template {{tl|BookCat/diagnose}} reports the output of {{tl|BookCat}} (with or without parameters) as an inert string, rather than categorizing the current page.&lt;br /&gt;
&lt;br /&gt;
=== Eamples ===&lt;br /&gt;
{{magic word templates/book page examples|BookCat/diagnose}}&lt;br /&gt;
&lt;br /&gt;
=== Internals ===&lt;br /&gt;
This template itself only contains the logic to sort out the identity of the target page; deducing the appropriate categorization is then delegated to {{tl|BookCat/core}}.  As of this writing, parameters assembled here are &amp;lt;code&amp;gt;namespace&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pagename&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;fullpagename&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;sortkey&amp;lt;/code&amp;gt;; the first unnamed parameter is [[Module:TScope/doc#shiftLeft|removed]], and all other parameters are passed through to the subtemplate.&lt;br /&gt;
&lt;br /&gt;
=== See also ===&lt;br /&gt;
* See [[Using Wikibooks/Subjects, Categories, and Classifications#Deep filing (advanced)]] for more information.&lt;br /&gt;
*Instances are listed at&lt;br /&gt;
:* [[:Category:Pages with deep filing]].&lt;br /&gt;
:* [[:Category:Pages passing sort key to BookCat]]&lt;br /&gt;
:* [[:Category:Pages passing page name to BookCat]]&lt;br /&gt;
* {{tl|BOOKCATEGORY}} is closely related.&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
&amp;lt;!-- CATEGORIES AND INTERWIKIS HERE, THANKS --&amp;gt;&lt;br /&gt;
[[Category:Catalogue templates|{{PAGENAME}}]]&lt;br /&gt;
&lt;br /&gt;
[[fr:Modèle:AutoCat]]&lt;br /&gt;
[[pt:Predefinição:AutoCat]]&lt;br /&gt;
[[ru:Шаблон:BookCat]]&lt;br /&gt;
[[tr:Şablon:KitapKat]]&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>en&gt;Thomas Eyre</name></author>
	</entry>
</feed>