Changes for page IncidentGallery
Summary
Details
- XWiki.WikiMacroClass[0]
-
- Macro code
-
... ... @@ -1,8 +1,12 @@ 1 -{{groovy bindings="tags,max"}} 2 -def includeTags = (context.macro.params.tags ?: "").split(',')*.trim()*.toLowerCase().findAll { it } // removes blanks 3 -def maxCount = context.macro.params.max?.toInteger() ?: 999 1 +{{groovy}} 2 +/** 3 + * incidentGallery script macro 4 + * @param tags - comma-separated tags to filter (case-insensitive) 5 + * @param max - max incidents to display (optional) 6 + */ 7 +def includeTags = parameters.tags?.split(',')*.trim()*.toLowerCase() ?: [] 8 +def maxCount = parameters.max?.toInteger() ?: 999 4 4 5 - 6 6 def hql = """ 7 7 select doc.fullName 8 8 from XWikiDocument doc, BaseObject obj - Macro content availability
-
... ... @@ -1,1 +1,0 @@ 1 -No content - Macro description
-
... ... @@ -1,1 +1,1 @@ 1 -Displays a gallery of anti-White incidents, with optional tag filter 1 + Displays a gallery of anti-White incidents, with optional tag filter - Supports inline mode
-
... ... @@ -1,1 +1,0 @@ 1 -Yes
- XWiki.WikiMacroParameterClass[0]
-
- Parameter mandatory
-
... ... @@ -1,1 +1,0 @@ 1 -No - Parameter type
-
... ... @@ -1,1 +1,0 @@ 1 -Wiki
- XWiki.WikiMacroParameterClass[1]
-
- Parameter type
-
... ... @@ -1,1 +1,0 @@ 1 -Wiki