<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://wiki.undertensai.cn/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E6%9D%BF%3AIfNotTranslation%2Fdoc</id>
	<title>模板:IfNotTranslation/doc - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.undertensai.cn/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E6%9D%BF%3AIfNotTranslation%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.undertensai.cn/index.php?title=%E6%A8%A1%E6%9D%BF:IfNotTranslation/doc&amp;action=history"/>
	<updated>2026-11-17T02:59:36Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://wiki.undertensai.cn/index.php?title=%E6%A8%A1%E6%9D%BF:IfNotTranslation/doc&amp;diff=26909&amp;oldid=prev</id>
		<title>2023年11月13日 (一) 19:01 wiki&gt;Baris6161TURK</title>
		<link rel="alternate" type="text/html" href="https://wiki.undertensai.cn/index.php?title=%E6%A8%A1%E6%9D%BF:IfNotTranslation/doc&amp;diff=26909&amp;oldid=prev"/>
		<updated>2023-11-13T19:01:39Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
This template conditionally activate the first parameter if the current page is the source document (hence not a translation), or the second if the current page is a translation subpage.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
:&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{ifNotTranslation|1|2}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Parameters:&lt;br /&gt;
# any wikitext in the second parameter is used if the page is not a translation (source document)&lt;br /&gt;
# any wikitext in the first parameter is used if the page is a translation (any translation: &amp;quot;/en&amp;quot;, &amp;quot;/zh&amp;quot;, etc.)&lt;br /&gt;
&lt;br /&gt;
{{Note|1=&amp;#039;&amp;#039;&amp;#039;&amp;lt;u&amp;gt;Important note:&amp;lt;/u&amp;gt;&amp;#039;&amp;#039;&amp;#039; this template is not exactly the opposite of {{tl|ifTranslation}}. This present template do consider the &amp;quot;/en&amp;quot; subpage as a translation (it is triggered by the second parameter), but {{tl|ifTranslation}} doesn’t considers the &amp;quot;/en&amp;quot; subpage as a translation (triggered by its second parameter).|type=error}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Important use case:&amp;lt;/u&amp;gt; To conditionally include a category only in the source document, this present template is preferred (else the category would also contain the &amp;quot;/en&amp;quot; subpage). &lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Warning:&amp;lt;/u&amp;gt; This template is intended to be used with the pages translated with the {{ll|Help:Extension:Translate|nsp=0}} extension. For translations which are not using Translate, its behavious could be misleading – e.g. if used on [[m:Pobočky Wikimedia|Pobočky Wikimedia]] (unsynchronised Czech translation of [[m:Wikimedia chapters|Wikimedia chapters]]) the template will behave as if it was a page in English (not a translation), and if used on a page ending with &amp;quot;/en&amp;quot; it will behave as if it was a source document even if the page is a translation into English from another language.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
If the code &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{ifNotTranslation|Category:Wikipedia Zero}}&amp;lt;/syntaxhighlight&amp;gt; is at the end of the page [[m:Wikipedia Zero Starting Page|Wikipedia Zero Starting Page]], then [[m:Wikipedia Zero Starting Page|Wikipedia Zero Starting Page]] will be included in the [[m:Category:Wikipedia Zero|category Wikipedia Zero]], but nor [[m:Wikipedia Zero Starting Page/fr|Wikipedia Zero Starting Page/fr]] nor [[m:Wikipedia Zero Starting Page/en|Wikipedia Zero Starting Page/en]] will be in the category.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{tl|ifTranslation}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
&amp;lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, INSIDE INCLUDEONLY TAGS. --&amp;gt;&lt;br /&gt;
[[Category:Internationalization templates]]&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>wiki&gt;Baris6161TURK</name></author>
	</entry>
</feed>