ထႅမ်းပလဵတ်ႉ:Navlist/Subpagename
Appearance
လွင်ႈၸႂ်ႉတိုဝ်း
[မႄးထတ်း]Usage: {{ထႅမ်းပလဵတ်ႉ:Navlist/Subpagename|name}} generates just the part of name after the last slash. It works by stripping off slash-separated prefixes of name.
Optional named parameter {{{mode}}} varies this behavior. If mode=long, only the first part of name is removed (up to and including the first slash), except that if there is no slash, nothing is removed. If mode=split, the generated text is as for long mode, but a linebreak is inserted just before the last slash.
Some examples (see note on editing):
Code | Result | Remark |
---|---|---|
{{ထႅမ်းပလဵတ်ႉ:Navlist/Subpagename|Book}} | Book | |
{{ထႅမ်းပလဵတ်ႉ:Navlist/Subpagename|Book/Chapter}} | Chapter | |
{{ထႅမ်းပလဵတ်ႉ:Navlist/Subpagename|Book/Chapter/X}} | X | |
{{ထႅမ်းပလဵတ်ႉ:Navlist/Subpagename|Book/Chapter/X/Y}} | Y | |
{{ထႅမ်းပလဵတ်ႉ:Navlist/Subpagename|Book/Chapter/X/Y/Z}} | Z | |
{{ထႅမ်းပလဵတ်ႉ:Navlist/Subpagename|Book/Chapter/X/Y/Z/W}} | W | |
{{ထႅမ်းပလဵတ်ႉ:Navlist/Subpagename|Template:Navlist/Subpagename}} | Subpagename | |
{{ထႅမ်းပလဵတ်ႉ:Navlist/Subpagename|Template:Navlist}} | Template:Navlist | doesn't remove namespace prefix |
{{ထႅမ်းပလဵတ်ႉ:Navlist/Subpagename|Book/A/B/C/Module|mode=long}} | A/B/C/Module | |
{{ထႅမ်းပလဵတ်ႉ:Navlist/Subpagename|Book/A/B/C/Module|mode=split}} | A/B/C Module |