Template

Main talk file other/doc

From Joomla! Documentation

< Template:Main talk file other
Revision as of 12:47, 9 May 2008 by CirTap (talk | contribs) (1 revision(s))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This is a documentation subpage for Template:Main talk file other.
It contains usage information, categories and other content that is not part of the original template page.
To view the template page itself, see Template:Main talk file other.

This template is used inside other templates that need to behave differently (usually look differently) depending on what type of page they are on. It detects and groups all the different namespaces used on Joomla! Documentation into four types:

main = Main/article space, as in normal Wikipedia articles.
talk = Any talk space, such as page names that start with "Talk:", ":", "Framework talk:" and so on.
file = Image/media space, such as viewing an uploaded file
other = All other spaces, such as page names that start with "User:", ":", "Framework:" and so on.

Functions/Features[edit]

If this template is used without any parameters it returns the type name that the page belongs to: main, talk, file or other.

This template can also take four parameters and then returns one of them depending on which type a page belongs to.

Usage[edit]

This template page (and its doc page) belongs to the type "other". Thus this code on this page: {{main talk file other}} renders like this: other

Using the numeric parameter 1 - 4

{{main talk file other|Article text|Talk page text|Image page|Other pages text}}

it renders like this:

Other pages text

Parameters[edit]

Parameter Name Parameter Description req./opt.
{{{1}}} - {{{4}}} alternative return value depending on namespace match optional
{{{demospace}}} for documentation of this template using a different namespace optional

See also[edit]

For a more specific alternative see {{thingamabob}}



main talk other is based on: Wikipedia:Main talk other (edit|talk|history|links|watch|logs)