Jump to content

Template:Page link: Difference between revisions

From The Austrian Economics Wiki, the global repository of classical-liberal thought
create
 
m switch parameters
 
Line 1: Line 1:
<includeonly><span align="right"><!--
<includeonly><span align="right"><!--


If in the main namespace, show only parameter 1.  Otherwise, show a link, where parameter 2 is the page namespace target of the link.
If in the main namespace, show only parameter 2.  Otherwise, show a link, where parameter 1 is the page namespace target of the link.
-->{{#ifeq:{{NAMESPACE}}||{{{1}}}|[[Page:{{{2}}}|{{{1}}}]]}}</span></includeonly><noinclude>
-->{{#ifeq:{{NAMESPACE}}||{{{2}}}|[[Page:{{{1}}}|{{{2}}}]]}}</span></includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 23:04, 10 March 2011

Documentation icon Template documentation[view] [edit] [history] [purge]

Usage

This template is used to create links to pages in the Page namespace, while preventing those links from appearing in the Main namespace. Its primary use is in the tables of contents of books.

{{page link|link target|text to display}}

The link target must be in the Page namespace.

Example

For example, {{page link|Marxism Unmasked.pdf/9|page 9}} gives:

  • In the main namespace: page 9
  • In the page namespace: page 9

Note that "Page:" should not be included in the link target.