Wiki source code of ReferenceClassSheet
Version 9.1 by Benjamin Lanciaux on 2012/12/20
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | #set($class = $doc.getObject("XWiki.ReferenceClass").xWikiClass) | ||
2 | |||
3 | <style> | ||
4 | .code { | ||
5 | width: auto; | ||
6 | } | ||
7 | </style> | ||
8 | |||
9 | #if ($context.action == "inline") | ||
10 | #info("In order to insert your own image, add it as an attachment at the bottom of the page when viewing the page.") | ||
11 | #end | ||
12 | #if ($doc.title == "" || $context.action == "inline") | ||
13 | 1 $doc.display("Project") | ||
14 | #end | ||
15 | |||
16 | <div style="width: 750px; vertical-align: top;"> | ||
17 | |||
18 | <div style="float: right;"> | ||
19 | |||
20 | <div style=" | ||
21 | border: 1px; | ||
22 | border-color: #000000; | ||
23 | border-style: dashed; | ||
24 | width: 300px; | ||
25 | padding: 10px; | ||
26 | margin-bottom: 10px; | ||
27 | "> | ||
28 | 1.1.1 General Information | ||
29 | |||
30 | * Organization: *$doc.display("Organization")* | ||
31 | * Developed by: *$doc.display("DevelopedBy")* | ||
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> |