<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://mediawiki.sinofsx.org/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E6%9D%BF%3AIfTranslation%2Fdoc</id>
	<title>模板:IfTranslation/doc - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://mediawiki.sinofsx.org/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E6%9D%BF%3AIfTranslation%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://mediawiki.sinofsx.org/index.php?title=%E6%A8%A1%E6%9D%BF:IfTranslation/doc&amp;action=history"/>
	<updated>2026-04-06T01:54:43Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://mediawiki.sinofsx.org/index.php?title=%E6%A8%A1%E6%9D%BF:IfTranslation/doc&amp;diff=1523&amp;oldid=prev</id>
		<title>TeCHiScy：​创建页面，内容为“{{Documentation subpage}} This template conditionally activate the first parameter if the current page is a translation, or the second if the current page is in the…”</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.sinofsx.org/index.php?title=%E6%A8%A1%E6%9D%BF:IfTranslation/doc&amp;diff=1523&amp;oldid=prev"/>
		<updated>2018-05-05T02:25:45Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“{{Documentation subpage}} This template conditionally activate the first parameter if the current page is a translation, or the second if the current page is in the…”&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 a translation, or the second if the current page is in the wiki language (i.e. {{#language:{{CONTENTLANGUAGE}}|en}} for this wiki).&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{ifTranslation|1|2}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Parameters:&lt;br /&gt;
# any wikitext in the first parameter is used if the page is a translation (translated document)&lt;br /&gt;
# any wikitext in the second parameter is used if the page is not a translation (document in English)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Important note:&amp;lt;/u&amp;gt; this template is not exactly the opposite of {{tl|ifNotTranslation}}. This present template doesn’t consider the &amp;quot;/en&amp;quot; subpage as a translation (it is triggered by the second parameter), but {{tl|ifNotTranslation}} does consider the &amp;quot;/en&amp;quot; subpage as a translation (triggered by its second parameter).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Use case:&amp;lt;/u&amp;gt; To conditionally include a warning on actual translations, this present template is preferred (else the warning would also be display on the &amp;quot;/en&amp;quot; subpage).&lt;br /&gt;
&lt;br /&gt;
This template is intended to be used with the pages translated with the [[Help:Extension:Translate|Translate extension]]. For translations which are not using Translate, its behavious could be misleading – e.g. if used on [[m:Pobočky Wikimedia]] (unsynchronised Czech translation of [[m: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 there is the code &amp;lt;code&amp;gt;{{tlp|ifTranslation|Warning: this page is a non-authoritative translation of {{BASEPAGENAME}}.}}&amp;lt;/code&amp;gt; at the beginning of the page [[m:WMF Resolutions/FDC Approval Fall 2012]], then [[m:WMF Resolutions/FDC Approval Fall 2012]] and [[m:WMF Resolutions/FDC Approval Fall 2012/en]] will not be displayed the warning, but [[m:WMF Resolutions/FDC Approval Fall 2012/fr]] will.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{tl|ifNotTranslation}}&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>TeCHiScy</name></author>
	</entry>
</feed>