Wiki-Quellcode von DocViewer macro

Version 4.1 von Georg Klimm am 182.07.2025

Verstecke letzte Bearbeiter
Georg Klimm 1.1 1 {{toc/}}
2 == Description ==
3 {{velocity}}
4 #set($macro = $doc.getObject('XWiki.WikiMacroClass'))
5 $doc.display("description", $macro)
6 #if($macro.getProperty("supportsInlineMode").value == 0)
7
8 {{box}}This macro does not supports inline mode.{{/box}}
9 #end
10 {{/velocity}}
11 == Usage ==
12 === Content ===
13 {{velocity}}
14 #if("$!macro.contentType" == "mandatory")
15 {{info}}Content is mandatory{{/info}}
16 $doc.display("contentDescription")
17 #elseif("$!macro.contentType" == "optional")
18 {{info}}Content is optional{{/info}}
19 $doc.display("contentDescription")
20 #else
21 No content.
22 #end
23 #set($params = $doc.getObjects("XWiki.WikiMacroParameterClass"))
24 #if($params.size() > 0)
25 === Parameters ===
26 |=Name|=Mandatory|=Description
27 #foreach($param in $params)
28 |**$doc.display("name", $param)**|$doc.display("mandatory", $param)|$doc.display("description", $param)
29 #end
30 #end
31 == Exemple ==
32 === Code ===
33 {{code}}
34 {{docviewer url="http://jazoon.com/download/presentations/7400.pdf"/}}
35 {{/code}}
36 === Result ===
37
38 {{docviewer url="http://jazoon.com/download/presentations/7400.pdf"/}}