Jump to content

ထႅမ်းပလဵတ်ႉ:Magic word templates/subject page examples/doc

လုၵ်ႉတီႈ ဝီႇၶီႇပပ်ႉ မႃး

Transclude this on the documentation page of a magic word template relating a page to its associated subject, 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 ထႅမ်းပလဵတ်ႉ:SUBJECTNAME/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/subject page examples|SUBJECTNAME}}

would produce

page where called result note
Subject:Biology ပၢႆး:Biology
Biology ပၢႆး:Biology likely the Subject: prefix was simply omitted
Wikijunior:ပၢႆး:Biology ပၢႆး:Biology the Subject: 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:ပၢႆး:Biology/all books ပၢႆး:Biology the Subject: 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/subject page examples/core}}; this template only chooses the target for demonstration and delegates there.