
<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://zoophilia.wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=193.77.24.83</id>
	<title>Zoophilia Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://zoophilia.wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=193.77.24.83"/>
	<link rel="alternate" type="text/html" href="https://zoophilia.wiki/index.php?title=Special:Contributions/193.77.24.83"/>
	<updated>2026-06-21T13:01:33Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://zoophilia.wiki/index.php?title=Template:Code/doc&amp;diff=27920</id>
		<title>Template:Code/doc</title>
		<link rel="alternate" type="text/html" href="https://zoophilia.wiki/index.php?title=Template:Code/doc&amp;diff=27920"/>
		<updated>2012-02-22T12:22:12Z</updated>

		<summary type="html">&lt;p&gt;193.77.24.83: sl:Predloga:Koda&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
&amp;lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
Wraps a short span of text in &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;syntaxhighlight&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; tags (see [[mw:Extension:SyntaxHighlight GeSHi]]).  This template should be used for short samples; longer content should use {{tag|pre}} or {{tag|syntaxhighlight}}. See [[Help:Wiki markup]] for an explanation of what the various tags do.{{clarify|reason=[[Help:Wiki markup]] does not mention any such &amp;quot;source&amp;quot; XML tag.}}&lt;br /&gt;
&lt;br /&gt;
If the content includes an equals sign (=), you must specify the parameter explicitly: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{code|1=date=30 Feb 2010}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The template uses the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;syntaxhighlight&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; tag with the attribute &amp;lt;code&amp;gt;enclose=&amp;quot;none&amp;quot;&amp;lt;/code&amp;gt;. This works like the combination of the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;code&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; tags, applied to the expanded wikitext. For example, &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{code|some &#039;&#039;&#039;wiki&#039;&#039;&#039; text}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; will &#039;&#039;&#039;&#039;&#039;not&#039;&#039;&#039;&#039;&#039; render the word &amp;quot;wiki&amp;quot; in bold, and will render the tripled-single-quotes:&lt;br /&gt;
&lt;br /&gt;
:{{code|some &#039;&#039;&#039;wiki&#039;&#039;&#039; text}}&lt;br /&gt;
&lt;br /&gt;
However, &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{code|a {{template}} call}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; will still invoke the template:&lt;br /&gt;
&lt;br /&gt;
:{{code|a {{template}} call}}&lt;br /&gt;
&lt;br /&gt;
Use {{tag|nowiki}} around the template name to avoid this problem:&lt;br /&gt;
&lt;br /&gt;
:{{code|a &amp;lt;nowiki&amp;gt;{{template}}&amp;lt;/nowiki&amp;gt; call}}&lt;br /&gt;
&lt;br /&gt;
When used inline with regular text, {{tnull|code}} generally looks best and is easiest to read when it is explicitly spaced apart from the regular text:&lt;br /&gt;
:{{code|foo &amp;amp;nbsp;&amp;lt;nowiki&amp;gt;{{code|bar baz}}&amp;lt;/nowiki&amp;gt;&amp;amp;nbsp; quux.}}&lt;br /&gt;
is well spaced:&lt;br /&gt;
:foo &amp;amp;nbsp;{{code|bar baz}}&amp;amp;nbsp; quux.&lt;br /&gt;
versus:&lt;br /&gt;
:{{code|foo &amp;lt;nowiki&amp;gt;{{code|bar baz}}&amp;lt;/nowiki&amp;gt; quux.}}&lt;br /&gt;
which is going to be visually confusing for many:&lt;br /&gt;
:foo {{code|bar baz}} quux.&lt;br /&gt;
because &amp;quot;foo&amp;quot; and &amp;quot;{{code|bar}}&amp;quot; will seem more closely associated than &amp;quot;{{code|bar}}&amp;quot; and &amp;quot;{{code|baz}}&amp;quot;; the width of the space character in a monospaced font is almost always larger than in a proportional font.&lt;br /&gt;
&lt;br /&gt;
Use parameter {{{2}}} (unnamed, as {{para|2}}, or more explicitly as {{para|lang}}) to specify a language for Extension:SyntaxHighlight GeSHi. This option defaults to plain-text, i.e. no highlighting.  There is no highlighting option for wikitext as a markup language, though {{code|html4strict}} and {{code|html5}} are valid values, as are {{code|php}}, {{code|perl}}, {{code|css}}, {{code|javascript}}, {{code|mysql}} and many others. Attempting to use an invalid one causes a list of valid ones to be displayed in place of the template output, when the page is previewed or saved.&lt;br /&gt;
&lt;br /&gt;
This template does not need to be [[Wikipedia:Template substitution|substituted]].&lt;br /&gt;
&lt;br /&gt;
Finally, embedded templates do not function inside {{tnull|code}}; for longer, free-form blocks of code, which can contain templates such as {{tlx|var}} and {{tlx|samp}}, use {{tag|code}} as a wrapper instead of this template.&lt;br /&gt;
&lt;br /&gt;
===Examples===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! style=&amp;quot;width:50%;&amp;quot; | input&lt;br /&gt;
! style=&amp;quot;width:50%;&amp;quot; | output&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;pre style=&amp;quot;margin:0px; white-space:normal;&amp;quot;&amp;gt;Lorem {{code|ipsum &#039;&#039;&#039;dolor&#039;&#039;&#039;}} sit amet&amp;lt;/pre&amp;gt;&lt;br /&gt;
| Lorem {{code|ipsum &#039;&#039;&#039;dolor&#039;&#039;&#039;}} sit amet&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;pre style=&amp;quot;margin:0px; white-space:normal;&amp;quot;&amp;gt;The declaration {{code |lang=cpp |int foo(const std::string&amp;amp; bar, const std::vector&amp;lt;long double*&amp;gt;&amp;amp; baz);}} is the prototype for a function defined later.&amp;lt;/pre&amp;gt; &lt;br /&gt;
| The declaration {{code |lang=cpp |int foo(const std::string&amp;amp; bar, const std::vector&amp;lt;long double*&amp;gt;&amp;amp; baz);}} is the prototype for a function defined later.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;pre style=&amp;quot;margin:0px; white-space:normal;&amp;quot;&amp;gt;If the code contains an [[equals sign]], such as {{code |lang=javascript |code=var img = document.getElementsByTagName(&amp;quot;img&amp;quot;);}}, you must identify the first parameter explicitly as {{{1}}} or {{{code}}}; see also [[:bugzilla:5138]].&amp;lt;/pre&amp;gt; &lt;br /&gt;
| If the code contains an [[equals sign]], such as {{code |lang=javascript |code=var img = document.getElementsByTagName(&amp;quot;img&amp;quot;);}}, you must identify the first parameter explicitly as {{{1}}} or {{{code}}}; see also [[:bugzilla:5138]].&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
{{Var/seealso}}&lt;br /&gt;
* [[Help:Wiki markup]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&amp;lt;!--&lt;br /&gt;
++++ PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, THANK YOU. --&amp;gt;&lt;br /&gt;
[[Category:Programming typing-aid templates|{{PAGENAME}}]]&lt;br /&gt;
[[fr:Modèle:Code]]&lt;br /&gt;
[[sl:Predloga:Koda]]&lt;br /&gt;
&amp;lt;!--[[Category:Semantic markup templates|{{PAGENAME}}]]&lt;br /&gt;
&amp;lt;!--[[Category:Wikipedia XHTML tag replacing templates|{{PAGENAME}}]] - Doesn&#039;t actually qualify yet; needs &amp;lt;code&amp;gt;.--&amp;gt;&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>193.77.24.83</name></author>
	</entry>
	<entry>
		<id>https://zoophilia.wiki/index.php?title=Template:Namespace_detect/doc&amp;diff=114916</id>
		<title>Template:Namespace detect/doc</title>
		<link rel="alternate" type="text/html" href="https://zoophilia.wiki/index.php?title=Template:Namespace_detect/doc&amp;diff=114916"/>
		<updated>2012-01-09T14:45:33Z</updated>

		<summary type="html">&lt;p&gt;193.77.24.83: sl:Predloga:Namespace detect&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{documentation subpage}}&lt;br /&gt;
{{high-risk| 2,000,000+ }}&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 is the {{tl|namespace detect}} meta-template.&lt;br /&gt;
&lt;br /&gt;
It helps other templates detect what type of page they are on.&lt;br /&gt;
&lt;br /&gt;
It detects and groups all the different [[Wikipedia:Namespace#Enumeration|namespaces]] used on Wikipedia into several types:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;main&#039;&#039;&#039; = Main/article space, as in normal Wikipedia articles.&lt;br /&gt;
:&#039;&#039;&#039;talk&#039;&#039;&#039; = Any talk space, such as page names that start with &amp;quot;Talk:&amp;quot;, &amp;quot;User talk:&amp;quot;, &amp;quot;File talk:&amp;quot; and so on.&lt;br /&gt;
:&#039;&#039;&#039;user, wikipedia, file, mediawiki, template, help, category&#039;&#039;&#039;, &#039;&#039;&#039;portal&#039;&#039;&#039; and &#039;&#039;&#039;book&#039;&#039;&#039; = The other namespaces except the talk pages.&lt;br /&gt;
:&#039;&#039;&#039;other&#039;&#039;&#039; = Any namespaces that were not specified as a parameter to the template. See explanation below.&lt;br /&gt;
&lt;br /&gt;
For backwards compatibility this template also understands the old name &#039;&#039;&#039;image&#039;&#039;&#039; for &#039;&#039;&#039;file&#039;&#039;&#039;. But using &#039;&#039;&#039;image&#039;&#039;&#039; is now deprecated.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note!&#039;&#039;&#039; For most usage cases it might be better to use the simpler namespace detection templates. (See the [[#See also|see also]] section below.) Since this template is more prone to human errors such as misspelling the parameter names. &lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
This template takes one or more parameters named after the different page types as listed above. Like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{namespace detect&lt;br /&gt;
| main  = Article text&lt;br /&gt;
| talk  = Talk page text&lt;br /&gt;
| other = Other pages text&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the template is on a main (article) page, it will return this:&lt;br /&gt;
&lt;br /&gt;
:{{namespace detect| demospace=main&lt;br /&gt;
| main  = Article text&lt;br /&gt;
| talk  = Talk page text&lt;br /&gt;
| other = Other pages text&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
If the template is on any other page than an article or a talk page it will return this:&lt;br /&gt;
&lt;br /&gt;
:{{namespace detect&lt;br /&gt;
| main  = Article text&lt;br /&gt;
| talk  = Talk page text&lt;br /&gt;
| other = Other pages text&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The example above made the template return something for all page types. But if we don&#039;t use the &#039;&#039;&#039;other&#039;&#039;&#039; parameter or leave it empty then it will not return anything for the other page types. Like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{namespace detect&lt;br /&gt;
| file     = File page text&lt;br /&gt;
| category = Category page text&lt;br /&gt;
| other    =&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On any pages other than file and category pages the code above will render nothing.&lt;br /&gt;
&amp;lt;!-- Do not remove this one. It is supposed to render nothing, but we have it here for testing purposes. --&amp;gt;&lt;br /&gt;
:{{namespace detect&lt;br /&gt;
| file     = File page text&lt;br /&gt;
| category = Category page text&lt;br /&gt;
| other    =&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
By using an empty parameter you can make it so the template doesn&#039;t render anything for some specific page type. Like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{namespace detect&lt;br /&gt;
| main  = &lt;br /&gt;
| other = Other pages text&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The code above will render nothing when on mainspace (article) pages, but will return this when on other pages:&lt;br /&gt;
&lt;br /&gt;
:{{namespace detect&lt;br /&gt;
| main  = &lt;br /&gt;
| other = Other pages text&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Demospace and page ===&lt;br /&gt;
For testing and demonstration purposes this template can take two parameters named &#039;&#039;&#039;demospace&#039;&#039;&#039; and &#039;&#039;&#039;page&#039;&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
Demospace understands any of the page type names used by this template, including the &#039;&#039;&#039;other&#039;&#039;&#039; type. It tells the template to behave like it is on some specific type of page. Like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{namespace detect &lt;br /&gt;
| main  = Article text&lt;br /&gt;
| other = Other pages text&lt;br /&gt;
| demospace = main&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
No matter on what kind of page the code above is used it will return this:&lt;br /&gt;
&lt;br /&gt;
:{{namespace detect &lt;br /&gt;
| main  = Article text&lt;br /&gt;
| other = Other pages text&lt;br /&gt;
| demospace = main&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;page&#039;&#039;&#039; parameter instead takes a normal pagename. It makes this template behave exactly as if on that page. The pagename doesn&#039;t have to be an existing page. Like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{namespace detect &lt;br /&gt;
| user  = User page text&lt;br /&gt;
| other = Other pages text&lt;br /&gt;
| page = User:Example&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
No matter on what kind of page the code above is used it will return this:&lt;br /&gt;
&lt;br /&gt;
:{{namespace detect &lt;br /&gt;
| user  = User page text&lt;br /&gt;
| other = Other pages text&lt;br /&gt;
| page = User:Example&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
It can be convenient to let your template understand the demospace and/or page parameter and send it on to the {{tl|namespace detect}} template. Then do like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{namespace detect &lt;br /&gt;
| main  = Article text&lt;br /&gt;
| other = Other pages text&lt;br /&gt;
| demospace = {{{demospace|}}}&lt;br /&gt;
| page  = {{{page|}}}&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If both the &#039;&#039;&#039;demospace&#039;&#039;&#039; and &#039;&#039;&#039;page&#039;&#039;&#039; parameters are empty or undefined then the template will detect page types as usual.&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
List of all parameters:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{namespace detect&lt;br /&gt;
| main  = &lt;br /&gt;
...&lt;br /&gt;
| other =&lt;br /&gt;
| demospace = {{{demospace|}}} / main / talk / user / &lt;br /&gt;
              wikipedia / file / mediawiki / template / &lt;br /&gt;
              help / category / portal / book / other&lt;br /&gt;
| page  = {{{page|}}} / User:Example&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: Empty values to the &amp;quot;main&amp;quot; ... &amp;quot;book&amp;quot; parameters have special meaning.&lt;br /&gt;
&lt;br /&gt;
=== Technical details ===&lt;br /&gt;
Namespace &amp;quot;Image&amp;quot; was renamed to &amp;quot;File&amp;quot; on 11 December 2008. This template was updated to understand both names well before that, thus it still works fine. For backwards compatibility it still understands &amp;quot;image&amp;quot; both as a parameter name, such as &amp;quot;image = File page text&amp;quot;, and as a value &amp;quot;demospace = image&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Namespace &amp;quot;Book&amp;quot; was added to the English Wikipedia on 28 December 2009. This template has been updated so it detects the &amp;quot;Book:&amp;quot; namespace as type &#039;&#039;&#039;book&#039;&#039;&#039;, and it already automatically detected &amp;quot;Book talk:&amp;quot; as type &#039;&#039;&#039;talk&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
If you intend to feed tables as content to the numbered parameters of this template, then you need to know this:&lt;br /&gt;
&lt;br /&gt;
[[Help:Template|Templates]] do have a problem to handle parameter data that contains pipes &amp;quot;&amp;lt;code&amp;gt;|&amp;lt;/code&amp;gt;&amp;quot;, unless the pipe is inside another template &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{name|param1}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; or inside a piped link &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[Help:Template|help]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. Thus templates can not handle [[Help:Table|wikitables]] as input unless you escape them by using the {{tn|!}} template. This makes it hard to use wikitables as parameters to templates. Instead the usual solution is to use &amp;quot;[[Help:HTML in wikitext|HTML wikimarkup]]&amp;quot; for the table code, which is more robust.&lt;br /&gt;
&lt;br /&gt;
For more technical details such as about &amp;quot;copying to other projects&amp;quot; and &amp;quot;CSS based namespace detection&amp;quot; see {{tl|main talk other}} and its talk page.&lt;br /&gt;
&lt;br /&gt;
=== See also ===&lt;br /&gt;
{{namespace detect see also}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
&amp;lt;!-- CATEGORIES AND INTERWIKIS HERE, THANKS --&amp;gt;&lt;br /&gt;
[[Category:Namespace manipulation templates]]&lt;br /&gt;
&lt;br /&gt;
[[ar:قالب:Namespace detect]]&lt;br /&gt;
[[be-x-old:Шаблён:Вызначэньне прасторы назваў]]&lt;br /&gt;
[[ca:Plantilla:Detecta espai de noms]]&lt;br /&gt;
[[cy:Nodyn:Namespace detect]]&lt;br /&gt;
[[hsb:Předłoha:Namespace detect]]&lt;br /&gt;
[[ko:틀:이름공간 검출]]&lt;br /&gt;
[[ja:Template:Namespace detect]]&lt;br /&gt;
[[mn:Загвар:Namespace detect]]&lt;br /&gt;
[[pt:Predefinição:Namespace detect]]&lt;br /&gt;
[[sl:Predloga:Namespace detect]]&lt;br /&gt;
[[sr:Шаблон:Namespace detect]]&lt;br /&gt;
[[uk:Шаблон:Namespace detect]]&lt;br /&gt;
[[ur:سانچہ:Namespace detect]]&lt;br /&gt;
[[zh:Template:Namespace detect]]&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>193.77.24.83</name></author>
	</entry>
	<entry>
		<id>https://zoophilia.wiki/index.php?title=Template:When_on_basepage/doc&amp;diff=96929</id>
		<title>Template:When on basepage/doc</title>
		<link rel="alternate" type="text/html" href="https://zoophilia.wiki/index.php?title=Template:When_on_basepage/doc&amp;diff=96929"/>
		<updated>2012-01-09T14:35:47Z</updated>

		<summary type="html">&lt;p&gt;193.77.24.83: sl:Predloga:Osnovnastran podstran&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{documentation subpage}}&lt;br /&gt;
{{high-risk| 350,000+ }}&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 is the {{tl|basepage subpage}} meta-template.&lt;br /&gt;
&lt;br /&gt;
This template helps other templates detect if they are on a &#039;&#039;&#039;basepage&#039;&#039;&#039;, &#039;&#039;&#039;subpage&#039;&#039;&#039; or &#039;&#039;&#039;subsubpage&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
&lt;br /&gt;
This template takes one or more parameters, like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{basepage subpage&lt;br /&gt;
| Basepage text&lt;br /&gt;
| Subpage text&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the template is on the page &amp;quot;User:Example&amp;quot;, it will return this:&lt;br /&gt;
&lt;br /&gt;
:{{basepage subpage&lt;br /&gt;
| Basepage text&lt;br /&gt;
| Subpage text&lt;br /&gt;
| page = User:Example&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
If the template is on &amp;quot;User:Example/test&amp;quot; or &amp;quot;User:Example/test/test&amp;quot; or any page lower than that, it will return this:&lt;br /&gt;
&lt;br /&gt;
:{{basepage subpage&lt;br /&gt;
| Basepage text&lt;br /&gt;
| Subpage text&lt;br /&gt;
| page = User:Example/test/test&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
This template can also detect &amp;quot;subsubpages&amp;quot;, like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{basepage subpage&lt;br /&gt;
| Basepage text&lt;br /&gt;
| Subpage text&lt;br /&gt;
| Subsubpage text&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the template is on &amp;quot;User:Example/test/test&amp;quot; or any page lower than that, it will return this:&lt;br /&gt;
&lt;br /&gt;
:{{basepage subpage&lt;br /&gt;
| Basepage text&lt;br /&gt;
| Subpage text&lt;br /&gt;
| Subsubpage text&lt;br /&gt;
| page = User:Example/test/test&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
By using an empty parameter you can make it so the template doesn&#039;t render anything for some specific page type. Like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{basepage subpage&lt;br /&gt;
| Basepage text&lt;br /&gt;
| Subpage text&lt;br /&gt;
| &lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The code above will render nothing when on &amp;quot;User:Example/test/test&amp;quot; or lower, but will return this when on &amp;quot;User:Example/test&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
:{{basepage subpage&lt;br /&gt;
| Basepage text&lt;br /&gt;
| Subpage text&lt;br /&gt;
| &lt;br /&gt;
| page = User:Example/test&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== The &amp;quot;page&amp;quot; parameter ===&lt;br /&gt;
&lt;br /&gt;
For testing and demonstration purposes this template can take a parameter named &#039;&#039;&#039;page&#039;&#039;&#039;. Like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{basepage subpage&lt;br /&gt;
| Basepage text&lt;br /&gt;
| Subpage text&lt;br /&gt;
| page = User:Example/test&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
No matter on what kind of page the code above is used it will return this:&lt;br /&gt;
&lt;br /&gt;
:{{basepage subpage&lt;br /&gt;
| Basepage text&lt;br /&gt;
| Subpage text&lt;br /&gt;
| page = User:Example/test&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;page&#039;&#039;&#039; parameter makes this template behave exactly as if on that page. Thus, if a subsubpagename like &amp;quot;User:Example/test/test&amp;quot; is fed, then it returns the subsubpage text if there is one, otherwise it returns the subpage text. &lt;br /&gt;
&lt;br /&gt;
The pagename doesn&#039;t have to be an existing page. &lt;br /&gt;
&lt;br /&gt;
If the parameter is empty or undefined, the name of the current page determines the result.&lt;br /&gt;
&lt;br /&gt;
You can make it so your template also understands the &#039;&#039;&#039;page&#039;&#039;&#039; parameter. That means you can demonstrate the different appearances of your template in the documentation for your template. Then do like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{basepage subpage&lt;br /&gt;
| Basepage text&lt;br /&gt;
| Subpage text&lt;br /&gt;
| page = {{{page|}}}&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Technical details ===&lt;br /&gt;
&lt;br /&gt;
Templates have a problem to handle parameter data that contains equal signs &amp;quot;&amp;lt;code&amp;gt;=&amp;lt;/code&amp;gt;&amp;quot;. But that is easily solved by using numbered parameters. Like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{basepage subpage&lt;br /&gt;
| 1 = Basepage text&lt;br /&gt;
| 2 = Subpage text&lt;br /&gt;
| 3 = Subsubpage text&lt;br /&gt;
| page = {{{page|}}}&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This template detects subpages even when used in namespaces that doesn&#039;t have the MediaWiki [[meta:Link#Subpage feature|subpage feature]] enabled. Thus this template works the same in all namespaces.&lt;br /&gt;
&lt;br /&gt;
=== See also ===&lt;br /&gt;
&lt;br /&gt;
{{pagename detect see also}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
&amp;lt;!-- CATEGORIES AND INTERWIKIS HERE, THANKS --&amp;gt;&lt;br /&gt;
[[Category:Wikipedia metatemplates]]&lt;br /&gt;
&lt;br /&gt;
[[as:Template:Basepage subpage]]&lt;br /&gt;
[[sl:Predloga:Osnovnastran podstran]]&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>193.77.24.83</name></author>
	</entry>
</feed>