Template:Book/Link

From open-support.info

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

Revision as of 07:21, 15 April 2011


Syntax

 {{Book/Link [|['path'][|['text']]]}}

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