WikiCode
Macros
en
0
WikiCode.WebHome
XWiki.Admin
XWiki.superadmin
xwiki:XWiki.Admin
1191500546000
1529283495000
1529283495000
1.1

#

Imported from XAR
false
xwiki/1.0
false
XWiki.TagClass
0
0
input
1
tags
1
Tags
1
|
|,
30
0
com.xpn.xwiki.objects.classes.StaticListClass
WikiCode.Macros
0
XWiki.TagClass
9eeffb8b-cbcd-4b29-9079-225af23aa954
#macro(sortDocumentByCreationDate $documentlist $sorteddocumentlist $asc) #set($sorteddocumentlist = []) ## #foreach($docEntry in $documentlist) ## #set($index = -1) #foreach($sortedDoc in $sorteddocumentlist) #if($index == -1 && (($asc && ($sortedDoc.creationDate.after($docEntry.creationDate))) || (!$asc && ($sortedDoc.creationDate.before($docEntry.creationDate))))) #set($index = $velocityCount - 1) #end #end #if($index == -1) #set($added = $sorteddocumentlist.add($docEntry)) #else #set($added = $sorteddocumentlist.add($index, $docEntry)) #end #end #end

#macro(displaymodification $pagename $pagelink $date $formatDate $user $star) #if(!$formatDate) #set($formatDate = $msg.get("wikimanager.defaultdatetimeformat")) #end #if($formatDate == "wikimanager.defaultdatetimeformat") #set($formatDate = "yyyy MMMM dd 'at' HH:mm") #end

#set($username = $xwiki.getUserName($user)) #if ($username == "XWikiGuest") #set($username = "Guest") #end

#if($star)*#end [$pagename>$pagelink] $xwiki.formatDate($date, $formatDate) $username #end