ထႅမ်းပလဵတ်ႉ:Shelf:Check parent page
This template checks the status of an expected parent of a shelf, which may be a department or another shelf.
လွင်ႈၸႂ်ႉတိုဝ်း
မႄးထတ်းPlace this template on a page that expects the parent to exist. This template expects one parameter, as of this writing:
1
— required — the name of the parent, without theShelf:
orDepartment:
prefix.
ၽၢႆႇၼႂ်း
မႄးထတ်းIf any error is detected, this template generates a text message and adds the current page to ပိူင်ထၢၼ်ႈ:ပပ်ႉ:Shelf:Check parent page/တိုၵ်ႉလူဝ်ႇဝႆႉ လွင်ႈသူၼ်ၸႂ်.
If the parent exists as a department but is not centrally listed, that's a problem that may require an admin and may be quite complicated, so this template does not provide any remedial button. A department page is also tested via {{Department:Page?}} for proper set-up, and a button may be provided to repair it via ordinary editing of the wikipage. Otherwise, this template provides a button to create the parent as a shelf via ordinary editing of a wikipage. A contemplated upgrade would detect availability of dialog and replace the editing button(s) with buttons for dialog-based assistance.
It may be appropriate for this template to either mimic, or incorporate logic from, {{Shelf:Get parent prefix}}.