ထႅမ်းပလဵတ်ႉ:Magic word templates/shelf page examples
Appearance
လွင်ႈၸႂ်ႉတိုဝ်း
[မႄးထတ်း]Transclude this on the documentation page of a magic word template relating a page to its intrinsically associated shelf, to produce a table of examples of the template's behavior on various page names. The template is expected to accept an unnamed parameter overriding the current page name. See for example Template:SHELFNAME/doc.
This template itself accepts an unnamed parameter specifying the name of the template to be demonstrated; otherwise it uses {{OBJECTPAGENAME}}. For example,
{{ထႅမ်းပလဵတ်ႉ:Magic word templates/shelf page examples|SHELFNAME}}
would produce
page where called | result | note |
---|---|---|
Shelf:Biology | Shelf:Biology
| |
Biology | ၶဵင်ႇႁၢၼ်ႉ:Biology
|
likely the Shelf: prefix was simply omitted
|
Wikijunior:Shelf:Biology | Shelf:Biology
|
the Shelf: prefix in the pagename overrides all other considerations
|
Wikijunior:Biology | ၶဵင်ႇႁၢၼ်ႉ:ဝီႇၶီႇလုၵ်ႈဢွၼ်ႇ:Biology
|
parallel to content-space behavior of {{BOOKNAME}} |
Template:Biology | ၶဵင်ႇႁၢၼ်ႉ:ထႅမ်းပလဵတ်ႉ:Biology
|
ignore namespace prefix of non-content namespace |
Category:Shelf:Biology/all books | Shelf:Biology
|
the Shelf: prefix in the pagename overrides all other considerations
|
Category:Biology/all books | ၶဵင်ႇႁၢၼ်ႉ:ပိူင်ထၢၼ်ႈ:Biology
|
ignore namespace prefix of non-content namespace |
ၽၢႆႇၼႂ်း
[မႄးထတ်း]The examples are in subtemplate {{Magic word templates/shelf page examples/core}}; this template only chooses the target for demonstration and delegates there.c