Extensions Wiki » Extensions » Id Macro

Changes for document Id Macro

Last modified by Vincent Massol on 2013/03/11 09:38
From version 21.6
edited by hein kunibert
on 2012/05/10 12:36
To version 22.1
edited by Sergiu Dumitriu
on 2012/06/07 02:04
Change comment: There is no comment for this version

Metadata changes

Document author
xwiki:XWiki.HSerginKunibert

Object changes

Object number 0 of type ExtensionCode.ExtensionClass modified

Description
... ... @@ -14,17 +14,25 @@
14 14 == Example ==
15 15
16 16 {{code}}
17 -[[Click here to jump to anchor "someid">>#someid]]
17 +[[Click here to jump to anchor "someid">>||anchor="someid"]]
18 18
19 -
20 20 {{id name="someid" /}}
21 21 The "someid" anchor where to jump
22 22 {{/code}}
23 23
23 +{{warning}}Note that the link syntax must correspond to the [[syntax of the document where the link is present>>xwiki:XWiki.XWikiSyntax||anchor="HLinks"]]. This means that you have to use:
24 +
25 +|=Syntax|=Link format
26 +|xwiki/1.0 to another document|[jump to anchor>Some.Document#someid]
27 +|xwiki/2.0|[~[jump to anchor>>#someid]]
28 +|xwiki/2.0 to another document|[~[jump to anchor>>Some.Document#someid]]
29 +|xwiki/2.1|[~[jump to anchor>>~|~|anchor="someid"]]
30 +|xwiki/2.1 to another document|[~[jump to anchor>>Some.Document~|~|anchor="someid"]]
31 +{{/warning}}
32 +
24 24 === Result ===
25 25
26 26 [[Click here to jump to anchor "someid">>||anchor="someid"]]
27 27
28 -
29 29 {{id name="someid" /}}
30 30 The "someid" anchor where to jump

Download XWiki