Template:Book/Link

From open-support.info

(Difference between revisions)
Jump to: navigation, search
m
m
Line 3: Line 3:
  |{{#switch:{{#show:{{FULLPAGENAME}}|?docinfo main#}}
  |{{#switch:{{#show:{{FULLPAGENAME}}|?docinfo main#}}
   |{{ns:0}}
   |{{ns:0}}
-
   |{{FULLPAGENAME}}={{#rel2abs:{{{1}}}|{{FULLPAGENAME}}}}
+
   |{{FULLPAGENAME}}=1-{{#rel2abs:{{{1}}}|{{FULLPAGENAME}}}}
-
   |{{#rel2abs:{{{1}}}|{{NAMESPACE}}:{{BASEPAGENAME}}}}/{{SUBPAGENAME}}
+
   |2-{{#rel2abs:{{{1}}}|{{NAMESPACE}}:{{BASEPAGENAME}}}}/{{SUBPAGENAME}}
   }}
   }}
  |{{{2|}}}
  |{{{2|}}}

Revision as of 09:02, 15 April 2011

The results of this template are not shown here.

[edit] [purge] Template documentation

Template:Book/Link – produce a link with a respectable page title from relative path.

Syntax

 {{Book/Link [|['path'][|['text']]]}}
  • path - Relative or absolute path list to destination page from the current page. The page language sufix will be supplied automatically if it is required.
  • text - Alternative text which will be shown instead of page title.

Please see below how to describe path in this page:

 If you are in               Type          Destination page name is      Note
 --------------------------  ------------  ----------------------------  ----------------
 Sample Book/Chapter 1/3/de  ..            Sample Book/Chapter 1/de      Parent page
                             ../4          Sample Book/Chapter 1/4/de    Sibling page
                             /1            Sample Book/Chapter 1/3/1/de  Child page
                             :Foo/Bar/Buz  Foo/Bar/Buz/de                Absolute path

Related pages

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox