Difference between revisions of "Template:Main talk other flex/doc"
Jump to navigation
Jump to search
test>Davidgothberg (Oops. Fixing name in first sentence.) |
test>Davidgothberg ("The template code itself is ready and tested." And extended the docs.) |
||
| Line 8: | Line 8: | ||
:'''talk''' = Any talk space, such as page names that start with "Talk:", "User talk:", "Image talk:" and so on. | :'''talk''' = Any talk space, such as page names that start with "Talk:", "User talk:", "Image talk:" and so on. | ||
:'''other''' = All other spaces, such as page names that start with "User:", "Image:", "Wikipedia:" and so on. | :'''other''' = All other spaces, such as page names that start with "User:", "Image:", "Wikipedia:" and so on. | ||
| + | |||
| + | This template page (and its doc page) belongs in the namespace group "other". Thus: | ||
| + | |||
| + | <pre> | ||
| + | {{main talk other flex}} | ||
| + | </pre> | ||
| + | |||
| + | Renders like this: | ||
| + | |||
| + | :{{main talk other flex}} | ||
| + | |||
| + | This template can also take three parameters and then returns (uses) one of them depending on which namespace group a page belongs to. Like this: | ||
| + | |||
| + | <pre> | ||
| + | {{main talk other flex|Article text|Talk page text|Other pages text}} | ||
| + | </pre> | ||
| + | |||
| + | Which renders like this: | ||
| + | |||
| + | :{{main talk other flex|Article text|Talk page text|Other pages text}} | ||
=== More docs soon === | === More docs soon === | ||
| − | The template code itself is | + | The template code itself is ready and tested. But these docs will be extended a lot within some days. |
| − | --[[User:Davidgothberg|David Göthberg]] ([[User talk:Davidgothberg|talk]]) | + | --[[User:Davidgothberg|David Göthberg]] ([[User talk:Davidgothberg|talk]]) 20:28, 15 March 2008 (UTC) |
=== Links for this code === | === Links for this code === | ||
Revision as of 20:28, 15 March 2008
| This is a documentation subpage for Template:Main talk other flex. It contains usage information, categories and other content that is not part of the original template page. |
This is the {{main talk other flex}} template.
This template detects and returns what namespace group a page belongs to. Depending on what kind of page it is used on it returns one of these three lower case words:
- main = Main/article space, as in normal Wikipedia articles.
- talk = Any talk space, such as page names that start with "Talk:", "User talk:", "Image talk:" and so on.
- other = All other spaces, such as page names that start with "User:", "Image:", "Wikipedia:" and so on.
This template page (and its doc page) belongs in the namespace group "other". Thus:
{{main talk other flex}}
Renders like this:
This template can also take three parameters and then returns (uses) one of them depending on which namespace group a page belongs to. Like this:
{{main talk other flex|Article text|Talk page text|Other pages text}}
Which renders like this:
- Other pages text
More docs soon
The template code itself is ready and tested. But these docs will be extended a lot within some days.
--David Göthberg (talk) 20:28, 15 March 2008 (UTC)
Links for this code
See also
- {{main talk other}} - Another version of this template.