namesFromUsers macro

namesFromUsers macro

  • inline
    • yes
  • content
    • optional
      • list of APICe users
  • parameters
    • linkedAPICe users are displayed with a link to their profile
      • admissible values: true (true | yes | y | vero | v | 1)  / false (false | no | n | falso | 0)
      • default: true 
    • output — the way in which names are going to be displayed
      • admissible values:  comma / list / lines / dash / bar / dot 
        • comma displays a comma-separated list of names
        • list displays an actual list of names
        • lines displays names in different lines
        • dash displays a dashed list of name
        • bar displays a bar-separated list of names
        • dot displays a dot-separated list of names
      • default: comma 

Examples

{{namesFromUsers}}{{/namesFromUsers}}
{{namesFromUsers linked='TRUE'}}XWiki.AndreaOmicini, MirkoViroli, Criceto di Mare{{/namesFromUsers}}

Andrea Omicini, Mirko Viroli, Criceto di Mare

{{namesFromUsers linked='false' output="dot"}}XWiki.AndreaOmicini, MirkoViroli, Criceto di Mare{{/namesFromUsers}}

Andrea Omicini    Mirko Viroli    Criceto di Mare

{{namesFromUsers output='list'}}XWiki.AndreaOmicini, MirkoViroli, Criceto di Mare{{/namesFromUsers}}
{{namesFromUsers output='list' linked='FALSE'}}XWiki.AndreaOmicini, MirkoViroli, Criceto di Mare{{/namesFromUsers}}
  • Andrea Omicini
  • Mirko Viroli
  • Criceto di Mare
{{namesFromUsers output='lines'}}XWiki.AndreaOmicini, MirkoViroli, Criceto di Mare{{/namesFromUsers}}
{{namesFromUsers output='lines' linked='false'}}XWiki.AndreaOmicini, MirkoViroli, Criceto di Mare{{/namesFromUsers}}

Andrea Omicini
Mirko Viroli
Criceto di Mare

{{namesFromUsers output='dash'}}XWiki.AndreaOmicini, MirkoViroli, Criceto di Mare{{/namesFromUsers}}

Andrea Omicini
Mirko Viroli
— Criceto di Mare

{{namesFromUsers output='dash' linked='false'}}XWiki.AndreaOmicini, MirkoViroli, Criceto di Mare{{/namesFromUsers}}

— Andrea Omicini
— Mirko Viroli
— Criceto di Mare

{{namesFromUsers output='bar'}}XWiki.AndreaOmicini, MirkoViroli, Criceto di Mare{{/namesFromUsers}}

Andrea Omicini  |  Mirko Viroli  |  Criceto di Mare

{{namesFromUsers output='bar' linked='false'}}XWiki.AndreaOmicini, MirkoViroli, Criceto di Mare{{/namesFromUsers}}

Andrea Omicini  |  Mirko Viroli  |  Criceto di Mare

{{namesFromUsers output='lessfish'}}XWiki.AndreaOmicini, MirkoViroli, Criceto di Mare{{/namesFromUsers}}

Andrea Omicini, Mirko Viroli, Criceto di Mare

{{velocity}}
#set( $talkDoc = $xwiki.getDocument('Talk.Lptech4masAamas2021') )
{{namesFromUsers output='list'}}$talkDoc.getValue('authors'){{/namesFromUsers}}
{{/velocity}}
{{velocity}}
#set( $talkDoc = $xwiki.getDocument('Talk.Lptech4masAamas2021') )
{{namesFromUsers output=" BAR "}}$talkDoc.getValue('authors'){{/namesFromUsers}}
{{/velocity}}

Roberta Calegari  |  Giovanni Ciatto  |  Viviana Mascardi  |  Andrea Omicini

{{velocity}}
#set( $talkDoc = $xwiki.getDocument('Talk.Lptech4masAamas2021') )
{{namesFromUsers}}$talkDoc.getValue('authors'){{/namesFromUsers}}
{{/velocity}}
{{velocity}}
#set( $talkDoc = $xwiki.getDocument('Talk.Lptech4masAamas2021') )
{{namesFromUsers output='list' linked='no'}}$talkDoc.getValue('authors'){{/namesFromUsers}}
{{/velocity}}
  • Roberta Calegari
  • Giovanni Ciatto
  • Viviana Mascardi
  • Andrea Omicini