الگو:Transclude: تفاوت بین نسخهها
از پژوهشکده امر به معروف
(صفحهای تازه حاوی «{{#switch: {{NAMESPACE: {{{1}}} }} |#default = {{FULLPAGENAME: {{{1}}} }} <!-- eg "User:Foo" --> |{{ns:0}} = {{#ifeq: {{NAMESPACE: {...» ایجاد کرد) |
جز (۱ نسخه واردشده) |
||
| (یک نسخهٔ میانیِ همین کاربر نمایش داده نشده است) | |||
| سطر ۱: | سطر ۱: | ||
{{#switch: {{NAMESPACE: {{{1}}} }} | {{#switch: {{NAMESPACE: {{{1}}} }} | ||
| − | |#default = {{FULLPAGENAME: {{{1}}} }} <!-- eg "User:Foo" --> | + | |#default = {{FULLPAGENAME: {{{1}}} }} <!-- the namespace was specified eg "User:Foo" "Template:Foo", "Category:Foo" --> |
| − | |{{ns:0}} = | + | |{{ns:0}} = <!-- we have either ":Foo" (mainspace) or "Foo" (a template) --> |
| − | {{#ifeq: {{ | + | {{#ifeq: {{First character|{{{1|}}}}}|: |
| − | | | + | |{{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> | ||
| − | {{ | + | {{documentation}} |
</noinclude> | </noinclude> | ||
نسخهٔ کنونی تا ۱۳ اسفند ۱۳۹۴، ساعت ۱۷:۳۸
| Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |







