Wiki source code of ReferenceClassSheet

Version 7.6 by Marius Dumitru Florea on 2012/07/05

Show last authors
1 #set($class = $doc.getObject("XWiki.ReferenceClass").xWikiClass)
2 $doc.getObject("XWiki.ReferenceClass") $context.context.get('display')
3
4 <style>
5 .code {
6 width: auto;
7 }
8 </style>
9
10 #if ($context.action == "inline")
11 #info("In order to insert your own image, add it as an attachment at the bottom of the page when viewing the page.")
12 #end
13 #if ($doc.title == "" || $context.action == "inline")
14 1 $doc.display("Project")
15 #end
16
17 <div style="width: 750px; vertical-align: top;">
18
19 <div style="float: right;">
20
21 <div style="
22 border: 1px;
23 border-color: #000000;
24 border-style: dashed;
25 width: 300px;
26 padding: 10px;
27 margin-bottom: 10px;
28 ">
29 1.1.1 General Information
30
31 * Organization: *$doc.display("Organization")*
32 * Contact: $doc.display("Contact")
33 * Website: $doc.display("URL")
34 </div>
35
36 <div style="
37 border: 1px;
38 border-color: #000000;
39 border-style: solid;
40 width: 300px;
41 padding: 10px;
42 margin-top: 10px;
43 ">
44 1.1.1 Usage
45 $doc.display("Usage")
46
47 1.1.1 Description
48 $doc.display("Description")
49 </div>
50
51 </div>
52
53 #if ($doc.attachmentList.size() > 0)
54 #set ($attach = $doc.attachmentList.get(0))
55 #set ($url = $doc.display("URL").trim())
56 #if ($url != "")
57 <a href="$url">
58 #end
59 <img style="width: 400px; border: 1px solid #000000; margin-top: 14px;" src="$doc.getAttachmentURL($attach.filename,"download")"/>
60 #if ($url != "")
61 </a>
62 #end
63 #else
64 <img style="width: 400px; border: 1px solid #000000; margin-top: 14px;" src="/xwiki/bin/download/XWiki/ReferenceClassSheet/XWikiReference-3.jpg"/>
65 #end
66
67 </div>
68
69 <div style="clear:both; margin-bottom: 40px;"><!-- --></div>

Get Connected