Thingamabob: Difference between revisions
From Joomla! Documentation
mNo edit summary |
Fixed template that was broken because of MediaWiki revision r46662 |
||
Line 1: | Line 1: | ||
{{#ifeq: {{lc:{{ | {{#ifeq: {{lc:{{NAMESPACE}}}} | {{lc:{{TALKSPACE}} }} | ||
| talk page | | talk page | ||
|{{#switch: {{ | |{{#switch: {{NAMESPACE}} | ||
|{{ns:0}} = {{{1|article}}} | |{{ns:0}} = {{{1|article}}} | ||
|JDOC = project {{{1|page}}} | |JDOC = project {{{1|page}}} | ||
|{{ns:8}}|{{ns:mediawiki}} = {{{1|system message}}} | |{{ns:8}}|{{ns:mediawiki}} = {{{1|system message}}} | ||
|#default = {{lc:{{ | |#default = {{lc:{{NAMESPACE}}}} {{{1|page}}}<!-- | ||
-->}} }}<noinclude> | -->}} }}<noinclude> | ||
{{documentation}}</noinclude> | {{documentation}}</noinclude> |
Latest revision as of 16:31, 13 July 2011
template page
This documentation is transcluded from Template:Thingamabob/doc.
To discuss this template as a whole, please see JDOC:WTP. If you wish to discuss general wordings, rather than the wording or formatting of this specific template, don't post here, or else what you say will probably go unnoticed.
Returns a generalized term for a page's thingamabob … err … Wotsitcalled? Right … Namespace!
The "return value" is used in several templates to create different phrases and categories or as a condition where {{main talk file other}} is too generic.
Usage
- {{thingamabob}} for the thingamabob's namespace
- {{thingamabob|section}} for a section in this thingamabob
Parameters
Parameter | Parameter description | req./opt. |
---|---|---|
{{{1}}} | a supplemental noun such as section or paragraph added to thingamabob | optional |
Known issues
An attempt to create a plural of the resulting string via {{thingamabob}}s may look odd or become grammatically wrong. Localisation can be tough and should probably defer the strings to system messages.
The default behaviour is to return {{lc:{{NAMESPACE}}}}, hence if new namespaces are added to the wiki, {{thingamabob}} may require an update to reflect or "rename" the content type of those namespaces.
See also
- {{main talk file other}} for a more generic version but an option to return individual labels per namespace group.