Template:Namespace link 2/doc

From Wikisource
Jump to navigation Jump to search

Usage[edit]

Should be applied in the Page: namespace to produce an output for the main namespace. No effect when applied in the Page: or Index: namespaces, while in other namespaces provides a link to the work (no subpages). To link to a subpage or subpage#anchor, use {{namespace link}}.

There are two alternate forms of usage that can be used:-

  • 1 or text is the text displayed in the page or as the display text of the link when transcluded.
  • 2 or work is the title or link to be used when transcluded. (The title provided must follow Wikitext syntax for titles, subpages are delimited with / and anchors with # )

Examples[edit]

Link to a specifically titled independent work as viewed in the main namespace.

 ...taken from a John Acton {{namespace link 2|lecture|The New World}} published in 1899.  

...taken from a John Acton lecture published in 1899.

Link to a specific anchor or section found within the same page as viewed in the main namespace.

 {{namespace link 2|text=Usage Notes|work=#Usage}}  

Usage Notes


Note: This template documentation not being generated from the actual Page: namespace, the text-content produced above will have active, clickable links rather than the expected plain-text.