ਫਰਮਾ:BOOKNAME/doc

Wikibooks ਤੋਂ

ਫਰਮਾ:Possible-risk

This template returns the name of the book associated with the page on which it's used, assuming certain naming conventions. Compare {{SUBJECTNAME}}.

Usage[ਸੋਧੋ]

Simply place {{BOOKNAME}} on a page to get the output. When used on category, template, user, or talk pages, returns the associated book name deduced from naming conventions. Otherwise returns the {{NAIVEBOOKNAME}}.

Optionally specify a page as a parameter to see the output for a different page than the current one.

{{BOOKNAME|<full pagename>}}

This template can also be substituted (via subst:) rather than transcluded.

Examples[ਸੋਧੋ]

page where called result
Taxi Tongue/Dialogue 4

Taxi Tongue

Chess/Puzzles/Directmates

Chess

Wikijunior:Biology

Wikijunior:Biology

Wikijunior:Dinosaurs/Apatosaurus

Wikijunior:Dinosaurs

Wikijunior talk:Bugs/Shield Bug

Wikijunior talk:Bugs

Category:Horticulture/Templates/Boxes

ਸ਼੍ਰੇਣੀ:Horticulture

Category:Book:Wikijunior:Solar System/Templates

ਸ਼੍ਰੇਣੀ:Book:Wikijunior:Solar System

Template:Wikijunior:Solar System/coolfacts

ਫਰਮਾ:Wikijunior:Solar System

User:Pi zero/Conlang/Beginner/Sounds

ਵਰਤੋਂਕਾਰ:Pi zero

User:Pi zero/sandbox/Conlang/Beginner/Sounds

ਵਰਤੋਂਕਾਰ:Pi zero

Category:User:Pi zero/sandbox/Conlang/Beginner/Sounds

ਸ਼੍ਰੇਣੀ:ਵਰਤੋਂਕਾਰ:Pi zero

Template:User:Pi zero/sandbox/Conlang/Beginner/Sounds

ਫਰਮਾ:ਵਰਤੋਂਕਾਰ:Pi zero

Shelf:Physical sciences

Wikibooks Stacks

Template:Shelf:Page

ਫਰਮਾ:Shelf:Page

Template:Shelf:Page/display

ਫਰਮਾ:Shelf:Page

Internals[ਸੋਧੋ]

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 {{BOOKNAME/core}}.

See also[ਸੋਧੋ]

  • {{BOOKPAGENAME}} — deduces the part of page name after name of associated book.
  • {{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.

ਫਰਮਾ:Magic word templates/subject page see also