සැකිල්ල:BOOKPAGENAME
This template is used on 12,000+ pages. To avoid large-scale disruption and unnecessary server load, any changes should first be tested in the template sandbox or a user subpage. The tested changes can then be added in one single edit to this template. Please consider discussing any changes on the talk page before implementing them. |
This template returns the part of the page name after the logical book name. Compare {{BOOKNAME}}.
භාවිතය
[සංස්කරණය]Simply place {{BOOKPAGENAME}}
on a page to get the output.
Optionally specify a page as a parameter to see the output for a different page than the current one.
{{BOOKPAGENAME|<full pagename>}}
උදාහරණ
[සංස්කරණය]page where called | result |
---|---|
Taxi Tongue/Dialogue 4 |
|
Chess/Puzzles/Directmates |
|
Wikijunior:Biology |
|
Wikijunior:Dinosaurs/Apatosaurus |
|
Wikijunior talk:Bugs/Shield Bug |
|
Category:Horticulture/Templates/Boxes |
|
Category:Book:Wikijunior:Solar System/Templates |
|
Template:Wikijunior:Solar System/coolfacts |
|
User:Pi zero/Conlang/Beginner/Sounds |
|
User:Pi zero/sandbox/Conlang/Beginner/Sounds |
|
Category:User:Pi zero/sandbox/Conlang/Beginner/Sounds |
|
Template:User:Pi zero/sandbox/Conlang/Beginner/Sounds |
|
Shelf:Physical sciences |
|
Template:Shelf:Page |
|
Template:Shelf:Page/display |
|
අභ්යන්තර ක්රියාකාරීත්වය
[සංස්කරණය]This template itself only contains the logic to sort out the namespace and pagename; deducing from those data the associated book name is then delegated to {{BOOKPAGENAME/core}}.
If the current page is part of a book (other than the book main page), {{BOOKNAME}}/{{BOOKPAGENAME}}
is the full title of the page (similarly to {{NAMESPACE}}:{{PAGENAME}}
).
ආශ්රිත
[සංස්කරණය]- {{BOOKNAME}} — deduces full root name of book associated with the current page.
- {{BOOKSORTKEY}} — deduces usual sort key for use in book categories.
- {{BOOKTEMPLATE}} — deduces full root name for templates of book associated with the current page.
- {{BOOKCATEGORY}} — deduces full root name for categories of book associated with the current page.
- {{BOOKTALKNAME}} — deduces main talk page name of book associated with the current page.
- {{CHAPTERNAME}} — deduces first field of page name after the book name.
- {{NAIVEBOOKNAME}} — page name without subpages and retaining the namespace.
- {{SUBJECTNAME}} — deduces full root name of subject associated with the current page.
- {{SUBJECTCATEGORY}} — deduces full root name of subject-category associated with the current page.