Исходный код вики Марафон «ТОП-5 советов, как...» октябрь 2022 - март 2023
Последние авторы
author | version | line-number | content |
---|---|---|---|
1 | {{velocity}} | ||
2 | #set($sortLetter = 'A') | ||
3 | #set($isFirstPub = true) | ||
4 | #set($pubRefs = $doc.getChildrenReferences()) | ||
5 | #set($sortedMap = $collectiontool.getSortedMap()) | ||
6 | #foreach($pubRef in $pubRefs) | ||
7 | #set($pub = $xwiki.getDocument($pubRef)) | ||
8 | #set($title = $pub.getTitle()) | ||
9 | #if($title) | ||
10 | #set($foo = $sortedMap.put($title, $pubRef)) | ||
11 | #end | ||
12 | #end | ||
13 | #foreach($key in $sortedMap.keySet()) | ||
14 | #set($title = $key) | ||
15 | #set($ref = $sortedMap.get($key)) | ||
16 | #if(!$title.length().equals(0)) | ||
17 | #if($title.charAt(0).equals($sortLetter)) | ||
18 | #if($isFirstPub) | ||
19 | * $sortLetter | ||
20 | #set($isFirstPub = false) | ||
21 | #end | ||
22 | ** [[$title>>$ref]] | ||
23 | #else | ||
24 | #set($sortLetter = $title.charAt(0)) | ||
25 | #set($isFirstPub = false) | ||
26 | * $sortLetter | ||
27 | ** [[$title>>$ref]] | ||
28 | #end | ||
29 | #end | ||
30 | #end | ||
31 | {{/velocity}} | ||
32 | |||
33 | |||
34 | |||
35 | ---- | ||
36 | |||
37 | ==== ** Правила ТОП-5 СОВЕТОВ, КАК...** ==== | ||
38 | |||
39 | |||
40 | {{pdfviewer file="Правила ТОП-5 СОВЕТОВ КАК.pdf," height="450" width="80%"/}} | ||
41 | |||
42 | [[(% class="wikiattachmentlink wikiattachmentlink wikiattachmentlink" %)**Скачать в формате PNG**>>attach:Скачать в формате PNG]] |