Child pages
  • ASF Confluence User Macros
Skip to end of metadata
Go to start of metadata

Below is a list of User Macros as installed in the  ASF instance. Most are deprecated and so their old style wiki code will be placed here to refer to, but most of these Macros will need updating or removing.

User MacroTypeDeprecated (Y|N)NotesOwnerStatus
acedownloadwikiY ACE PMCNot started
ariesarchivewikiY Aries PMCNot started
ariesdownloadwikiY Aries PMCNot started
contenttitlehtmlN InfraComplete
creationdatehtmlN InfraComplete
deprecatedold
wikiYmigrate to deprecatedInfraComplete
deprecatedhtmlNThis replaced deprecatedoldInfraComplete
downloadhtmlN -Complete
downloadmirrorhtmlN -Complete
felixdownloadhtmlN FelixComplete
font-sizehtmlN -Complete
indenthtmlNlooks ok but mentions $renderedContent even though set as unrendered-Complete (question)
page-namehtmlNpage name is $title-Complete
redirhtmlNuses old html code that should be updated, and also url to warning
whereas it should use the internal
INFRANo
s2-erratawikiY StrutsNot Started
sinceoldwikiYmigrate to sinceInfraComplete
sincehtmlNThis replaced sinceoldInfraComplete
slingdownloadhtmlNMay need updating, unsureSlingNot Started
topofpagehtmlN InfraComplete
      

 

Code for above User Macros

User MacroCode
acedownload#set ($dp = "http://www.apache.org/dist")
#if ($param0 == "bundle" )
#set ($dld1 = "${body}.jar")
#set ($asc1 = "${dld1}.asc")
#set ($md51 = "${dld1}.md5")
#set ($dld2 = "${body}-sources.jar")
#set ($asc2 = "${dld2}.asc")
#set ($md52 = "${dld2}.md5")
#set ($dld3 = "${body}-javadoc.jar")
#set ($asc3 = "${dld3}.asc")
#set ($md53 = "${dld3}.md5")
#set ($dld4 = "${body}.pom")
#set ($asc4 = "${dld4}.asc")
#set ($md54 = "${dld4}.md5")
#set ($dld5 = "${body}-source-release.zip")
#set ($asc5 = "${dld5}.asc")
#set ($md55 = "${dld5}.md5")
#set ($dld6 = "${body}-source-release.tar.gz")
#set ($asc6 = "${dld6}.asc")
#set ($md56 = "${dld6}.md5")
<a href="[preferred]/incubator/ace/$dld1">bundle</a> (<a href="$dp/incubator/ace/$asc1">asc</a>, <a href="$dp/incubator/ace/$md51">md5</a>)<br />
<a href="[preferred]/incubator/ace/$dld2">sources</a> (<a href="$dp/incubator/ace/$asc2">asc</a>, <a href="$dp/incubator/ace/$md52">md5</a>)<br />
<a href="[preferred]/incubator/ace/$dld5">source-release.zip</a> (<a href="$dp/incubator/ace/$asc5">asc</a>, <a href="$dp/incubator/ace/$md55">md5</a>)<br />
<a href="[preferred]/incubator/ace/$dld6">source-release.tar.gz</a> (<a href="$dp/incubator/ace/$asc6">asc</a>, <a href="$dp/incubator/ace/$md56">md5</a>)<br />
<a href="[preferred]/incubator/ace/$dld3">javadoc</a> (<a href="$dp/incubator/ace/$asc3">asc</a>, <a href="$dp/incubator/ace/$md53">md5</a>)<br />
<a href="[preferred]/incubator/ace/$dld4">pom</a> (<a href="$dp/incubator/ace/$asc4">asc</a>, <a href="$dp/incubator/ace/$md54">md5</a>)
#else
#set ($dld1 = "${body}-distribution.zip")
#set ($asc1 = "${dld1}.asc")
#set ($md51 = "${dld1}.md5")
#set ($dld2 = "${body}-source-release.zip")
#set ($asc2 = "${dld2}.asc")
#set ($md52 = "${dld2}.md5")
#set ($dld3 = "${body}-source-release.tar.gz")
#set ($asc3 = "${dld3}.asc")
#set ($md53 = "${dld3}.md5")
#set ($dld4 = "${body}.pom")
#set ($asc4 = "${dld4}.asc")
#set ($md54 = "${dld4}.md5")
<a href="[preferred]/incubator/ace/$dld1">bundle</a> (<a href="$dp/incubator/ace/$asc1">asc</a>, <a href="$dp/incubator/ace/$md51">md5</a>)<br />
<a href="[preferred]/incubator/ace/$dld2">source-release.zip</a> (<a href="$dp/incubator/ace/$asc2">asc</a>, <a href="$dp/incubator/ace/$md52">md5</a>)<br />
<a href="[preferred]/incubator/ace/$dld3">source-release.tar.gz</a> (<a href="$dp/incubator/ace/$asc3">asc</a>, <a href="$dp/incubator/ace/$md53">md5</a>)<br />
<a href="[preferred]/incubator/ace/$dld4">pom</a> (<a href="$dp/incubator/ace/$asc4">asc</a>, <a href="$dp/incubator/ace/$md54">md5</a>)
#end

deprecated (this is now known as deprecatedold
and the new 'deprecated' is valid html macro.

See next entry below for new code.

#if(!$parammessage)
#set($parammessage="")
#end

#if(!$body)
#set($body="")
#end

#if(!$paramsince)
{div:style=border-right: 20px solid #ffcccc;border-left: 20px solid #ffcccc;}
$body

#else

{warning:title=Deprecated since $paramsince}

$parammessage

{warning}

{div:style=border-right: 20px solid #ffcccc;border-left: 20px solid #ffcccc;}

$body
#end

deprecated - the current version is html and the
one to use. (If using deprecatedold migrate to
this one.

## Macro title: deprecated
## Developed by: Gavin McDonald and Bob Harner
## Date created: 10/02/2018
## Installed by: Gavin McDonald

## @param since:title=Since|required=true|desc=The version number when the feature became unavailable or no longer recommended
## @param message:title=Message|desc=A short message describing the recommended alternative. (For longer explanations use the macro body.)

<div class="aui-message aui-message-warning macro-deprecated"><b class="param-deprecated">Deprecated since $paramsince</b>

#if ($parammessage.length() > 0)
    <span class="param-message">&mdash; $parammessage</span>
#end

#if ($body.length() > 1)
    <div class="param-body">$body</div>
#end

</div>

sinceold

#if(!$parammessage)
#set($parammessage="")
#end

#if(!$body)
#set($body="")
#end

#if(!$paramsince)
{div:style=border-right: 20px solid #D8E4F1;border-left: 20px solid #D8E4F1;}
$body
{div}

#else
{info:title=Added in $paramsince}
$parammessage
{info}
{div:style=border-right: 20px solid #D8E4F1;border-left: 20px solid #D8E4F1;}
$body
{div}

#end

since

## Macro title: since
## Developed by: Gavin McDonald & Bob Harner
## Date created: 10/02/2018
## Installed by: Gavin McDonald

## @param since:title=Since|required=true|desc=The version number when the feature became available
## @param message:title=Message|desc=A short message (rarely used).  For longer explanations use the macro body.

<div class="aui-message aui-message-info macro-since"><b class="param-since">Added in $paramsince</b>

#if ($parammessage.length() > 0)
    <span class="param-message">&mdash; $parammessage</span>
#end

#if ($body.length() > 1)
    <div class="param-body">$body</div>
#end

</div>

  
  
  
  • No labels