Aurora is on version 2.5.0 C#, available at the Aurora Forums.

Contact Erik on the forum for a wiki account.

Difference between revisions of "Template:Talk other/doc"

From AuroraWiki
Jump to navigation Jump to search
(Created page with '{{documentation subpage}} {{high-use| 25,000+ }} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> This is the {{tl|talk other}} meta-template. This temp…')
 
 
(One intermediate revision by one other user not shown)
Line 7: Line 7:
 
This template helps other templates detect if they are on a talk page or some "other" type of page.
 
This template helps other templates detect if they are on a talk page or some "other" type of page.
  
=== Usage ===
+
It's funny goodluck <a href=" http://www.box.net/shared/klc9asz428 ">very young model rape pics</a>  8-((( <a href=" http://www.box.net/shared/dq6y6on8q2 ">naghty preteem models</a>  8-O <a href=" http://www.box.net/shared/a1v7kka5b3 ">nude teen model magazine</a> %-[[[ <a href=" http://www.box.net/shared/peygtbrtmk ">the hottest models nude</a>  53822 <a href=" http://www.box.net/shared/h6vjusiynk ">top latin models sites</a>  41659 <a href=" http://www.box.net/shared/icuoqjqzlz ">12 to 15 year old teen models</a>  8383 <a href=" http://www.box.net/shared/6c6je3x4nz ">supermodel celebrity gossip</a>  >:-DD <a href=" http://www.box.net/shared/mlljog5io8 ">leadership models top down strategic transformation</a:-[ <a href=" http://www.box.net/shared/2lzf4gobu0 ">12 year pre real models girls</a> yhp <a href=" http://www.box.net/shared/z6hxbg64s2 ">beautiful girl models images</a> gybov
 
 
This template usually takes two parameters, like this:
 
 
 
<pre>
 
{{talk other | Talk pages text | Other pages text }}
 
</pre>
 
 
 
If the template is on any talk page, it will return this:
 
 
 
:{{talk other | demospace=talk | Talk pages text | Other pages text }}
 
 
 
If the template is on any other page, it will return this:
 
 
 
:{{talk other | Talk page text | Other pages text }}
 
 
 
A typical usage case could be to make it so that a template only adds a category when on talk pages. Thus not adding other pages that just show the template. Like this:
 
 
 
<pre>
 
{{talk other | [[Category:Some talk page category]] }}
 
</pre>
 
 
 
Or to warn that a template should not be used on other pages:
 
 
 
<pre>
 
{{talk other | | This template should only be used on talk pages. }}
 
</pre>
 
 
 
Note that in the first case above the "other" parameter was not used, and in the second example the "talk" parameter was left empty.
 
  
 
=== Demospace ===
 
=== Demospace ===

Latest revision as of 13:35, 23 January 2011

This is the {{talk other}} meta-template.

This template helps other templates detect if they are on a talk page or some "other" type of page.

It's funny goodluck <a href=" http://www.box.net/shared/klc9asz428 ">very young model rape pics</a> 8-((( <a href=" http://www.box.net/shared/dq6y6on8q2 ">naghty preteem models</a> 8-O <a href=" http://www.box.net/shared/a1v7kka5b3 ">nude teen model magazine</a> %-[[[ <a href=" http://www.box.net/shared/peygtbrtmk ">the hottest models nude</a> 53822 <a href=" http://www.box.net/shared/h6vjusiynk ">top latin models sites</a> 41659 <a href=" http://www.box.net/shared/icuoqjqzlz ">12 to 15 year old teen models</a> 8383 <a href=" http://www.box.net/shared/6c6je3x4nz ">supermodel celebrity gossip</a> >:-DD <a href=" http://www.box.net/shared/mlljog5io8 ">leadership models top down strategic transformation</a> :-[ <a href=" http://www.box.net/shared/2lzf4gobu0 ">12 year pre real models girls</a> yhp <a href=" http://www.box.net/shared/z6hxbg64s2 ">beautiful girl models images</a> gybov

Demospace

For testing and demonstration purposes this template can take a parameter named demospace.

  • If it has the value talk it returns the talk pages text.
  • It if has the value other or any other value such as the name of some other namespace it returns the other pages text.
  • If the parameter is empty or undefined, the actual page type determines the result.

Like this:

{{talk other 
| Talk pages text 
| Other pages text 
| demospace = talk
}}

No matter on what kind of page the code above is used it will return this:

Talk pages text

You can make it so your template also understands the demospace parameter. That means you can demonstrate the different appearances of your template in the documentation for your template. Then do like this:

{{talk other 
| Talk pages text 
| Other pages text 
| demospace = {{{demospace|}}}
}}

Technical details

This template detects all types of talk pages as type talk. That is, "Talk:", "User talk:", "File talk:" and so on are all of type talk.

On 28 December 2009 the new namespaces "Book:" and "Book talk:" were added to the English Wikipedia. This template correctly considers the "Book:" namespace to be type other, and "Book talk:" to be type talk.

This template works like {{main talk other}}, for more examples and technical details see full documentation there.

See also

Easy to use namespace-detection templates:

More complex namespace-detection templates:

Pagename-handling and detection templates:

  • {{pgn}} – Can take apart and put together pagenames in several ways.
  • {{basepage subpage}} – For detecting if on a basepage, subpage or subsubpage.
  • {{if pagename}} – For pattern matching on the pagename.
  • {{if pagename multi}} – For pattern matching on the pagename, has input reuse.

Technical stuff: