Show last authors
1 | {{box cssClass="floatinginfobox" title="**Contents**"}} |
2 | {{toc/}} |
3 | {{/box}} |
4 | |
5 | = Description = |
6 | |
7 | {{velocity}} |
8 | #set($macro = $doc.getObject('XWiki.WikiMacroClass')) |
9 | $doc.display("description", $macro) |
10 | #if($macro.getProperty("supportsInlineMode").value == 0) |
11 | |
12 | {{box}}This macro does not supports inline mode.{{/box}} |
13 | #end |
14 | {{/velocity}} |
15 | |
16 | = Usage = |
17 | |
18 | == Content == |
19 | |
20 | {{velocity}} |
21 | #if("$!macro.getProperty('contentType').value" == "Mandatory") |
22 | {{info}}Content is mandatory{{/info}} |
23 | |
24 | $doc.display("contentDescription") |
25 | #elseif("$!macro.getProperty('contentType').value" == "Optional") |
26 | {{info}}Content is optional{{/info}} |
27 | |
28 | $doc.display("contentDescription") |
29 | #else |
30 | No content. |
31 | #end |
32 | #set($params = $doc.getObjects("XWiki.WikiMacroParameterClass")) |
33 | #if($params.size() > 0) |
34 | |
35 | == Parameters == |
36 | |=Name|=Mandatory|=Description |
37 | #foreach($param in $params) |
38 | |**$doc.display("name", $param)**|$doc.display("mandatory", $param)|$doc.display("description", $param) |
39 | #end |
40 | #end |
41 | |
42 | = Exemples = |
43 | |
44 | == Simple map == |
45 | {{code}} |
46 | {{map location="10, rue Pernety, France"/}} |
47 | {{/code}} |
48 | |
49 | {{map location="10, rue Pernety, France"/}} |
50 | |
51 | == Map with parameters == |
52 | {{code}} |
53 | {{map location="Rue des Thermopyles, 75014 Paris" width="400" height="300"}}A beautiful street in Paris{{/map}} |
54 | {{/code}} |
55 | |
56 | {{map location="Rue des Thermopyles, 75014 Paris" width="400" height="300"}}A beautiful street in Paris{{/map}} |
57 | |
58 | == Map using geographic coordinate == |
59 | {{code}} |
60 | {{map location="47.156427, 27.576387" width="400" height="300" locationType="latlng"}}Our office is here{{/map}} |
61 | {{/code}} |
62 | |
63 | {{map location="47.156427, 27.576387" width="400" height="300" locationType="latlng"}}Our office is here{{/map}} |