ထႅမ်းပလဵတ်ႉ:Shelf:Get parent prefix/doc
ဢၼ်ၼႆႉပဵၼ် ၼႃႈလိၵ်ႈၽႄ ၽိုၼ်ၵႅမ်မိုဝ်း တွၼ်ႈတႃႇ ထႅမ်းပလဵတ်ႉ:Shelf:Get parent prefix. မၼ်းၶဝ်ႈပႃး လွၼ်ႉၶၢဝ်ႇ လွင်ႈၸႂ်ႉတိုဝ်း၊ ပိူင်ထၢၼ်ႈ လႄႈ လမ်းၼႂ်းတၢင်ႇၸိူဝ်း ဢၼ်ဢမ်ႇၸႂ်ႈပွတ်းတွၼ်ႈ ၶွင်ငဝ်ႈတိုၼ်း ထႅမ်းပလဵတ်ႉ ၼႃႈလိၵ်ႈ။ |
လွင်ႈၸႂ်ႉတိုဝ်း
[မႄးထတ်း]This template determines the appropriate prefix for a parent of a shelf in the Shelf:Get parent prefix. The prefix may be Department:
or Shelf:
. Provide the unprefixed name of the parent as an unnamed parameter.
ၽၢႆႇၼႂ်း
[မႄးထတ်း]This template first attempts to ping the parent department, or, failing that, ping the parent shelf. Failing both of these, it uses #ifexist
to determine whether the department page exists.
If the department ping indicates the department is properly set up, further checks are performed to determine whether the parent should be the department or a same-named shelf. If the current shelf has the same name as the department, the department is the parent (rather than the shelf being its own parent). If the parent gives a non-blank response to a reserved
query, the department is the parent. Otherwise, the same-named shelf is the parent.
The deeper question of whether the deparment should exist is not addressed here; see {{Department:Listed?}}.