<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://moasspedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AExpand_language%2Fhowto%2Fnewtopic</id>
	<title>Template:Expand language/howto/newtopic - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://moasspedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AExpand_language%2Fhowto%2Fnewtopic"/>
	<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Template:Expand_language/howto/newtopic&amp;action=history"/>
	<updated>2026-04-05T11:41:33Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>https://moasspedia.org/w/index.php?title=Template:Expand_language/howto/newtopic&amp;diff=16154&amp;oldid=prev</id>
		<title>Wikipedia&gt;Mathglot: Fix whitespace issue above sections.</title>
		<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Template:Expand_language/howto/newtopic&amp;diff=16154&amp;oldid=prev"/>
		<updated>2021-11-05T19:35:32Z</updated>

		<summary type="html">&lt;p&gt;Fix whitespace issue above sections.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This section provides information about categorization in the {{tl|Expand language}} suite of templates, and explains how to make a new subcategory available for use in a particular language template by use of a topic code. Editors may then employ the topic code in &amp;lt;noinclude&amp;gt;an &amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;Expand &amp;#039;&amp;#039;LanguageName&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt; template&amp;lt;/noinclude&amp;gt;&amp;lt;includeonly&amp;gt;the {{tl|Expand {{{1|&amp;#039;&amp;#039;LanguageName&amp;#039;&amp;#039;}}}}} template&amp;lt;/includeonly&amp;gt; as shorthand for categorizing the article in which it appears into a subcategory associated with that topic code. If you&amp;#039;ve done this before, and just need a refresher, see [[#Quickstart|Quickstart]]. Otherwise, skip to the [[#Background |gory details]] below.&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
=== Quickstart ===&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&amp;lt;includeonly&amp;gt;{{anchor|Quickstart}}{{fhead|level=3|Quickstart}}&amp;lt;/includeonly&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here is a summary of the steps to add a new [[Wikipedia:Categorization#Subcategorization|subcategory]] and a new topic code to the table for &amp;lt;noinclude&amp;gt;a given &amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;Expand &amp;#039;&amp;#039;LanguageName&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/noinclude&amp;gt; &amp;lt;includeonly&amp;gt;[[Template:Expand {{{1|&amp;#039;&amp;#039;LanguageName&amp;#039;&amp;#039;}}}]]&amp;lt;/includeonly&amp;gt; (details follow):&lt;br /&gt;
* determine which missing &amp;#039;&amp;#039;topic code&amp;#039;&amp;#039; you wish to add (e.g., &amp;#039;bio&amp;#039;; see col 1 of the [[Template:Expand language#Topics and categorization|topic table]]) &lt;br /&gt;
* find the &amp;#039;&amp;#039;topic name&amp;#039;&amp;#039; for the topic (e.g., &amp;#039;Biography&amp;#039;; see col. 2 of the [[Template:Expand language#Topics and categorization|Topics table]])&lt;br /&gt;
* derive the subcategory name from the &amp;#039;&amp;#039;topic name&amp;#039;&amp;#039; and the language name {{#if: {{{1|}}} | (&amp;quot;{{{1|}}}&amp;quot;, in this case)|}} (e.g., &amp;lt;code&amp;gt;Biography articles needing translation from {{{1|&amp;#039;&amp;#039;LanguageName&amp;#039;&amp;#039;}}} Wikipedia&amp;lt;/code&amp;gt; (click the topic name in col. 2 of the [[Template:Expand language#Topics and categorization|table]] for an example; e.g., [[:Category:Biography articles needing translation from {{{1|LanguageName}}} Wikipedia]])&lt;br /&gt;
* create the Category page for {{{1|&amp;#039;&amp;#039;LanguageName&amp;#039;&amp;#039;}}} using that name, and categorize it under &amp;lt;code&amp;gt;Category:Articles needing translation from {{#if: {{{1|}}} | {{{1|}}} | &amp;#039;&amp;#039;LanguageName&amp;#039;&amp;#039;}} Wikipedia&amp;lt;/code&amp;gt;&lt;br /&gt;
* Adjust the [[Help:Conditional expressions#Using #switch|&amp;#039;&amp;#039;#switch&amp;#039;&amp;#039; statement]] in &amp;lt;noinclude&amp;gt;the &amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;Expand &amp;#039;&amp;#039;LanguageName&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/noinclude&amp;gt; &amp;lt;includeonly&amp;gt;[[Template:Expand {{{1|&amp;#039;&amp;#039;LanguageName&amp;#039;&amp;#039;}}}]]&amp;lt;/includeonly&amp;gt; template to include: &amp;lt;code&amp;gt;| &amp;#039;&amp;#039;topic code&amp;#039;&amp;#039; = &amp;#039;&amp;#039;Topic name&amp;#039;&amp;#039;&amp;lt;/code&amp;gt;; for example:&lt;br /&gt;
*: &amp;lt;code&amp;gt;| bio = Biography&amp;lt;/code&amp;gt; (model after the &amp;#039;&amp;#039;#switch&amp;#039;&amp;#039; in [[Template:Expand French]] if needed)&lt;br /&gt;
* To use the new code, go to an article needing categorization into the new subcat, and add:&lt;br /&gt;
*: {{#if: {{{1|}}} &amp;lt;code&amp;gt;{{tl|Expand {{{1|&amp;#039;&amp;#039;LanguageName&amp;#039;&amp;#039;}}}|topic{{=}}&amp;#039;&amp;#039;topic&amp;amp;nbsp;code&amp;#039;&amp;#039;|date{{=}}{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}&amp;lt;/code&amp;gt; |&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;Expand {{{1|}}}{{!}}topic{{=}}&amp;#039;&amp;#039;topic&amp;amp;nbsp;code&amp;#039;&amp;#039;{{!}}date{{=}}{{CURRENTMONTHNAME}} {{CURRENTYEAR}}&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;}} to the top of the article.&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
=== Background ===&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&amp;lt;includeonly&amp;gt;{{anchor|Background}}{{fhead|level=3|Background }}&amp;lt;/includeonly&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A topic code is just an abbreviation or word, like &amp;#039;&amp;#039;bio&amp;#039;&amp;#039; for &amp;quot;Biography&amp;quot;, or &amp;#039;&amp;#039;sport&amp;#039;&amp;#039; for &amp;quot;Sports&amp;quot;. Associating a topic code with a subcategory name, and enabling its use to categorize articles on which the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Expand LanguageName}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; appears has two main requirements:&lt;br /&gt;
* Creation of a category page with the appropriate subcategory name for the topic code&lt;br /&gt;
* Ensuring that the wikicode of the particular &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Expand LanguageName}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; template associates the topic code with the right subcategory name.&lt;br /&gt;
&lt;br /&gt;
The {{tl|Expand language}} suite of templates automatically categorizes pages on which it appears into &amp;lt;code&amp;gt;Category:Articles needing translation from &amp;#039;&amp;#039;LanguageName&amp;#039;&amp;#039; Wikipedia&amp;lt;/code&amp;gt;. For many languages, this category may grow too large, and [[Wikipedia:Categorization#Subcategorization|subcategorization]] is needed.  The suite of Expand language templates supports subcategorization into a number of pre-defined subcategories, and provides an easy way of indicating subcategorization by using the {{para|topic}} param in the template, instead of having to know about a complex set of category naming or remember the category names. This page explains how to do that.&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
=== Categorizing articles needing translation ===&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&amp;lt;includeonly&amp;gt;{{fhead|level=3|Categorizing articles needing translation}}&amp;lt;/includeonly&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Adding a new topic goes hand in hand with creating a new subcategory in which to categorize articles needing expansion. The top level (and sometimes only) category for articles needing expansion for a given language follows this pattern:&lt;br /&gt;
: &amp;lt;code&amp;gt;Category:Articles needing translation from &amp;#039;&amp;#039;LanguageName&amp;#039;&amp;#039; Wikipedia&amp;lt;/code&amp;gt;&lt;br /&gt;
But the top level category can often grow to many hundreds or thousands of articles and that&amp;#039;s too much for one category. In order to facilitate a better and more useful categorization, the {{tl|Expand language}} suite of templates supports subcategorization into a number of subcategories using the {{para|topic}} parameter of the language-specific templates, such as  {{tl|Expand French}} or {{tl|Expand German}}. Ten &amp;#039;&amp;#039;&amp;#039;topic codes&amp;#039;&amp;#039;&amp;#039; are defined, such as &amp;#039;&amp;#039;bio&amp;#039;&amp;#039; (for &amp;#039;Biography&amp;#039;) and &amp;#039;&amp;#039;mil&amp;#039;&amp;#039; (for &amp;#039;Military&amp;#039;): when used as the value of the {{para|topic}} parameter, they imply (but do not automatically create) a subcategory of a specific name. For example:&lt;br /&gt;
: {{tlc|Expand &amp;lt;noinclude&amp;gt;French&amp;lt;/noinclude&amp;gt;&amp;lt;includeonly&amp;gt;{{{1|}}}&amp;lt;/includeonly&amp;gt;|topic{{=}}bio}}&lt;br /&gt;
would categorize the article in which it appears into subcategory ⟶ [[:Category:{{Expand language/subcat name|&amp;lt;noinclude&amp;gt;French&amp;lt;/noinclude&amp;gt;&amp;lt;includeonly&amp;gt;{{{1|}}}&amp;lt;/includeonly&amp;gt;|bio}}]] .&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
=== Topic codes and topic names ===&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&amp;lt;includeonly&amp;gt;{{fhead|level=3|Topic codes and topic names}}&amp;lt;/includeonly&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The rows in the [[Template:Expand language#Topics and categorization|topic code table]] show what subcategories already exist under the top level category for a given language; for example, for &amp;lt;noinclude&amp;gt;French&amp;lt;/noinclude&amp;gt;&amp;lt;includeonly&amp;gt;{{{1|}}}&amp;lt;/includeonly&amp;gt;, the topic code table is [[Template:Expand &amp;lt;noinclude&amp;gt;French&amp;lt;/noinclude&amp;gt;&amp;lt;includeonly&amp;gt;{{{1|}}}&amp;lt;/includeonly&amp;gt;#Topics and categorization|here]]. The existing subcategories can be found by clicking (or mousing over) the topic names in column two of the table.&lt;br /&gt;
&lt;br /&gt;
There are ten predefined topic codes that are conventionally available for addition to, and use by, any of the Expand &amp;#039;&amp;#039;LanguageName&amp;#039;&amp;#039; templates. They are: &amp;#039;&amp;#039;bio&amp;#039;&amp;#039;, &amp;#039;&amp;#039;cult&amp;#039;&amp;#039;, &amp;#039;&amp;#039;geo&amp;#039;&amp;#039;, &amp;#039;&amp;#039;gov&amp;#039;&amp;#039;, &amp;#039;&amp;#039;hist&amp;#039;&amp;#039;, &amp;#039;&amp;#039;mil&amp;#039;&amp;#039;, &amp;#039;&amp;#039;sci&amp;#039;&amp;#039;, &amp;#039;&amp;#039;sport&amp;#039;&amp;#039;, &amp;#039;&amp;#039;struct&amp;#039;&amp;#039;, and &amp;#039;&amp;#039;transp&amp;#039;&amp;#039;. Each code is recognized by param {{para|topic}} in the Expand &amp;#039;&amp;#039;LanguageName&amp;#039;&amp;#039; template, which will categorize the page on which it appears into a subcategory based on the associated topic name, e.g.,&amp;#039;&amp;#039;bio&amp;#039;&amp;#039; ⟶ &amp;#039;&amp;#039;Biography&amp;#039;&amp;#039;, and so forth).&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
=== Creating a new subcategory ===&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&amp;lt;includeonly&amp;gt;{{anchor|#Creating a new subcategory}}{{fhead|level=3|Creating a new subcategory}}&amp;lt;/includeonly&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# choose a &amp;#039;&amp;#039;&amp;#039;topic code&amp;#039;&amp;#039;&amp;#039; from the [[Template:Expand language#Topics and categorization|topic code table]] and determine the &amp;#039;&amp;#039;&amp;#039;topic name&amp;#039;&amp;#039;&amp;#039; from column 2 of the table (e.g., &amp;lt;code&amp;gt;bio&amp;lt;/code&amp;gt; ⟶ {{Expand language/decode|bio}})&lt;br /&gt;
# define the subcategory name as a function of topic name and language name, using this pattern: &lt;br /&gt;
#: &amp;lt;code&amp;gt;&amp;#039;&amp;#039;Topic name&amp;#039;&amp;#039; articles needing translation from &amp;#039;&amp;#039;Language name&amp;#039;&amp;#039; Wikipedia&amp;lt;/code&amp;gt; &lt;br /&gt;
#: Example: for topic name &amp;lt;code&amp;gt;{{Expand language/decode|bio}}&amp;lt;/code&amp;gt; and &amp;lt;noinclude&amp;gt;French&amp;lt;/noinclude&amp;gt;&amp;lt;includeonly&amp;gt;{{{1|}}}&amp;lt;/includeonly&amp;gt; we have: {{Expand language/subcat name|&amp;lt;noinclude&amp;gt;French&amp;lt;/noinclude&amp;gt;&amp;lt;includeonly&amp;gt;{{{1|}}}&amp;lt;/includeonly&amp;gt;|bio}}&lt;br /&gt;
# create the category, e.g., [[:Category:{{Expand language/subcat name|French|bio}}]]&lt;br /&gt;
#: Add the following text, and save the page:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;margin:0 20% 0 4.8em&amp;quot;&amp;gt;&lt;br /&gt;
{{Transcat|language=French|topic=bio}}&lt;br /&gt;
{{CatAutoTOC}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
=== Enable subcategorization in the Expand &amp;#039;&amp;#039;LanguageName&amp;#039;&amp;#039; template ===&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&amp;lt;includeonly&amp;gt;{{fhead|level=3|Enable subcategorization in the Expand &amp;#039;&amp;#039;LanguageName&amp;#039;&amp;#039; template}}&amp;lt;/includeonly&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Creating a new subcategory is independent of the Expand language template, and one could always categorize an article into the subcategory the way any article is categorized, simply by adding the category between brackets to the end of the article. But to make subcategorization easier, the specific Expand language template for a given language will categorize the article into a subcategory automatically, if the correct association between topic code and topic name appears in the wikicode of the template. &lt;br /&gt;
&lt;br /&gt;
Edit the specific Expand language template for the given language; for example, for &amp;lt;noinclude&amp;gt;French&amp;lt;/noinclude&amp;gt;&amp;lt;includeonly&amp;gt;{{{1|}}}&amp;lt;/includeonly&amp;gt;: edit [[Template:Expand &amp;lt;noinclude&amp;gt;French&amp;lt;/noinclude&amp;gt;&amp;lt;includeonly&amp;gt;{{{1|}}}&amp;lt;/includeonly&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The association between topic code and topic name for a given language, and by extension between the topic code and the subcategory name, occurs in the wikicode of the specific language name templates, in particular, in the assignment of {{para|topic}}, which usually occurs within a [[Help:Conditional expressions#Using #switch|&amp;#039;&amp;#039;#switch&amp;#039;&amp;#039; statement]] which picks one of a number of topic codes and assigns it to the topic name. Some languages have no support for topic codes, for example, {{tl|Expand Chinese}}; others have full support, like {{tl|Expand French}}, and others have something in between. To enable {{para|topic}} to be used to categorize the article on which it appears into the associated subcategory requires this code to be set up correctly; if the wikicode does not already have it, you can copy the {{var|#switch}} statement that assigns the value of {{para|topic}} from [[Template:Expand French]].&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
=== Classify articles into the new subcategory ===&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&amp;lt;includeonly&amp;gt;{{fhead|level=3|Classify articles into the new subcategory}}&amp;lt;/includeonly&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To classify articles into the new subcategory, use a specific Expand language template with the {{para|topic}} param.&lt;br /&gt;
&lt;br /&gt;
:* Edit the article and find the {{tl|Expand &amp;lt;noinclude&amp;gt;French&amp;lt;/noinclude&amp;gt;&amp;lt;includeonly&amp;gt;{{{1|}}}&amp;lt;/includeonly&amp;gt;}} template&lt;br /&gt;
:* Paste {{para|topic|bio}} into the template call; it can go anywhere, but after the name is good, e.g.:&lt;br /&gt;
:*: {{tlc|Expand &amp;lt;noinclude&amp;gt;French&amp;lt;/noinclude&amp;gt;&amp;lt;includeonly&amp;gt;{{{1|}}}&amp;lt;/includeonly&amp;gt;|John Doe&amp;#039;&amp;#039;&amp;#039;{{Green|{{!}}topic{{=}}bio}}&amp;#039;&amp;#039;&amp;#039;|date{{=}}{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}&lt;br /&gt;
:* Add an edit summary e.g., &amp;quot;&amp;#039;&amp;#039;Added topic=bio to Expand template.&amp;#039;&amp;#039;&amp;quot;; Preview as needed, and Publish.&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
=== Creating non-standard subcategories and topic codes ===&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&amp;lt;includeonly&amp;gt;{{fhead|level=3|Creating non-standard subcategories and topic codes}}&amp;lt;/includeonly&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Topic codes that are not among the standard ten may be created for specific languages and associated with new subcategories as needed. Define a topic code, a topic name corresponding to the variable part of the subcategory name, and add it to the template [[Help:Conditional expressions#Using #switch|&amp;#039;&amp;#039;#switch&amp;#039;&amp;#039; statement]]. &lt;br /&gt;
&lt;br /&gt;
To add the new code to the topic table in the doc page, create a /topics subpage, e.g., [[Template:Expand &amp;lt;noinclude&amp;gt;French&amp;lt;/noinclude&amp;gt;&amp;lt;includeonly&amp;gt;{{{1|}}}&amp;lt;/includeonly&amp;gt;/topics]] in which the row for the topics table is defined. If the file exists, it is transcluded at the end of the table. For an example, see {{para|topic|commune}} in the {{tl|Expand French}} template. &lt;br /&gt;
&lt;br /&gt;
This is a more advanced type of operation which requires some basic knowledge of template writing, so it may be easier to do this by adding an [[Wikipedia:Edit requests|Edit request]] on the Talk page of the template concerned.  In the Edit request, specify the topic code and subcategory name you wish to add.  For example, you could say, &amp;quot;Please add new topic code &amp;#039;&amp;#039;mtn&amp;#039;&amp;#039; to {{tl|Expand Nepali}} which should categorize articles containing {{tlc|Expand Nepali|topic{{=}}mtn}} into subcategory &amp;#039;Mountain articles needing translation from Nepali Wikipedia&amp;#039; using the topic code &amp;#039;&amp;#039;mtn&amp;#039;&amp;#039;.&amp;quot; You can create the subcategory yourself, following the [[#Creating a new subcategory|instructions above]].&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;Mathglot</name></author>
	</entry>
</feed>