Template:Book/Link
From open-support.info
(Difference between revisions)
m (ページの作成:「<onlyinclude>{{#if:{{{1|}}}|{{Book/Link/Main|{{#rel2abs:{{{1}}}|{{#var:book_base}}}}{{#var:book_lang}}|{{{2|}}}}}}}</onlyinclude> == Syntax == <pre> {{Book/Link [|['path...」) |
m |
||
| Line 1: | Line 1: | ||
| - | <onlyinclude>{{#if:{{{1|}}}|{{Book/Link/ | + | <onlyinclude>{{ |
| + | #if:{{{1|}}} | ||
| + | |{{Book/Link/core | ||
| + | |{{#rel2abs:{{{1}}} | ||
| + | |{{#var:book_base}} | ||
| + | }}{{#var:book_lang}} | ||
| + | |{{{2|}}} | ||
| + | }} | ||
| + | }}</onlyinclude> | ||
== Syntax == | == Syntax == | ||
Revision as of 06:12, 15 April 2011
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