"ഫലകം:Transclude" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം

വിക്കിപീഡിയ, ഒരു സ്വതന്ത്ര വിജ്ഞാനകോശം.
Content deleted Content added
No edit summary
Simpler approach
വരി 2: വരി 2:
|#default = {{FULLPAGENAME: {{{1}}} }} <!-- the namespace was specified eg "User:Foo" "Template:Foo", "Category:Foo" -->
|#default = {{FULLPAGENAME: {{{1}}} }} <!-- the namespace was specified eg "User:Foo" "Template:Foo", "Category:Foo" -->
|{{ns:0}} = <!-- we have either ":Foo" (mainspace) or "Foo" (a template) -->
|{{ns:0}} = <!-- we have either ":Foo" (mainspace) or "Foo" (a template) -->
{{#ifeq: {{NAMESPACE: {{{1}}} }} | {{NAMESPACE: Template{{{1}}} }}
{{#ifeq: {{First character|{{{1|}}}}}|:
| Template:{{{1}}} <!-- no leading colon, eg "Foo" so namespace TemplateFoo matches namespace Foo -->
|{{PAGENAME: {{{1}}} }} <!-- leading colon, eg ":Foo", so we want the article -->
| {{PAGENAME: {{{1}}} }} <!-- leading colon, eg ":Foo", so we want the article -->
|Template:{{{1}}} <!-- no leading colon, eg "Foo", so we want the template -->
}}
}}
}}<noinclude>
}}<noinclude>

15:58, 23 ഫെബ്രുവരി 2016-നു നിലവിലുണ്ടായിരുന്ന രൂപം

Template:{{{1}}}

[തിരുത്തുക] [പുതുക്കുക] ഫലകത്തിന്റെ വിവരണം

This template resolves page names as they would be handled by MediaWiki's template-transclusion process. It thereby removes ambiguity when doing other things with template pagenames, e.g. linking.

The most prominent use of this template is in the menu used at the top of each {{navbox}}, though it is used in other templates as well, such as {{usbk}}.

Usage

  • {{transclude| Template:Foo }}ഫലകം:Foo
  • {{transclude| Category:Foo }}വർഗ്ഗം:Foo
  • {{transclude| Foo }}Template:Foo
  • {{transclude| :Foo }}Foo
  • {{transclude| :File:Foo }}പ്രമാണം:Foo

See also

"https://ml.wikipedia.org/w/index.php?title=ഫലകം:Transclude&oldid=2431625" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്