ထႅမ်းပလဵတ်ႉ:SUBJECTNAME
Jump to navigation
Jump to search
Subject:ထႅမ်းပလဵတ်ႉ:SUBJECTNAME
This template generates the name of the subject page associated with the current page. Compare {{BOOKNAME}}.
လၢႆးၸႂ်ႉတိုဝ်း[မႄးထတ်း]
Simply place {{SUBJECTNAME}}
on a page to get the output.
Optionally specify a page as a parameter to see the output for a different page than the current one.
{{SUBJECTNAME|<full pagename>}}
Deduction assumes the page is associated with a subject; this maximizes convenience of valid use, while disregarding behavior on invalid use.
တူဝ်ယၢင်ႇ[မႄးထတ်း]
page where called | result | note |
---|---|---|
Subject:Biology | Subject:ပၢႆး:Biology
| |
Biology | Subject:Biology
|
likely the Subject: prefix was simply omitted
|
Wikijunior:Subject:Biology | Subject:ဝီႇၶီႇလုၵ်ႈဢွၼ်ႇ:Subject:Biology
|
the Subject: prefix in the pagename overrides all other considerations
|
Wikijunior:Biology | Subject:ဝီႇၶီႇလုၵ်ႈဢွၼ်ႇ:Biology
|
parallel to content-space behavior of {{BOOKNAME}} |
Template:Biology | Subject:ထႅမ်းပလဵတ်ႉ:Biology
|
ignore namespace prefix of non-content namespace |
Category:Subject:Biology/all books | Subject:ပိူင်ထၢၼ်ႈ:Subject:Biology
|
the Subject: prefix in the pagename overrides all other considerations
|
Category:Biology/all books | Subject:ပိူင်ထၢၼ်ႈ:Biology
|
ignore namespace prefix of non-content namespace |
Internals[မႄးထတ်း]
This template itself only contains the logic to sort out the namespace and base-name; deducing from those data the associated subject-category name is then delegated to {{SUBJECTNAME/core}}.
တူၺ်းပႃး[မႄးထတ်း]
- {{SUBJECTCATEGORY}} — deduces full root name of subject-category associated with the current page.
- {{BOOKNAME}} — deduces full root name of book associated with the current page.
- {{BOOKPAGENAME}} — deduces the part of page name after name of associated book.
- {{BOOKSORTKEY}} — deduces usual sort key for use in book categories.
- {{BOOKTEMPLATE}} — deduces full root name for templates of book associated with the current page.
- {{BOOKCATEGORY}} — deduces full root name for categories of book associated with the current page.
- {{BOOKTALKNAME}} — deduces main talk page name of book associated with the current page.
- {{CHAPTERNAME}} — deduces first field of page name after the book name.
- {{NAIVEBOOKNAME}} — page name without subpages and retaining the namespace.
The above documentation is transcluded from ထႅမ်းပလဵတ်ႉ:SUBJECTNAME/doc. (ထတ်း | ပိုၼ်း) 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. |