ਸਮੱਗਰੀ 'ਤੇ ਜਾਓ

ਫਰਮਾ:SUBJECTNAME/doc

Wikibooks ਤੋਂ

This template generates the name of the subject page associated with the current page. Compare {{BOOKNAME}}.

Simply place {{SUBJECTNAME}} 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.

{{SUBJECTNAME|<full pagename>}}

Deduction assumes the page is associated with a subject; this maximizes convenience of valid use, while disregarding behavior on invalid use.

Examples

[ਸੋਧੋ]

ਫਰਮਾ:Magic word templates/subject page examples

Internals

[ਸੋਧੋ]

This template itself only contains the logic to sort out the namespace and base-name; deducing from those data the associated subject-category name is then delegated to {{SUBJECTNAME/core}}.

See also

[ਸੋਧੋ]

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

  • {{BOOKNAME}} — deduces full root name of book associated with the current page.
  • {{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.