Wiki source code of namesFromBibtex macro
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | = {{code language="xwiki"}}namesFromBibtex{{/code}} macro = | ||
2 | |||
3 | * {{stringEngIta eng="inline" ita="in linea"/}} | ||
4 | ** {{stringEngIta eng="yes" ita="sì"/}} | ||
5 | * {{stringEngIta eng="content" ita="contenuto"/}} | ||
6 | ** {{stringEngIta eng="optional" ita="opzionale"/}} | ||
7 | *** {{stringEngIta eng="a (list of) person name(s) in BibTeX form" ita="una lista di nomi di persona in forma BibTeX"/}} | ||
8 | * {{stringEngIta eng="parameters" ita="parametri"/}} | ||
9 | ** ##output## — {{english}}the way in which the person names are going to be listed in display{{/english}}{{italiano}}il modo in cui i nomi delle persone devono essere elencati{{/italiano}} | ||
10 | *** {{stringEngIta eng="admissible values" ita="valori ammissibili"/}}: ##comma## / ##list## / ##lines## / ##dash## / ##bar## | ||
11 | *** default: ## comma## | ||
12 | *** {{stringEngIta eng="value" ita="il valore"/}} ##comma## {{stringEngIta eng="displays a comma-separated list of names" ita="produce una lista di nomi separati da una virgola"/}} | ||
13 | *** {{stringEngIta eng="value" ita="il valore"/}} ##list## {{stringEngIta eng="displays a proper list of names" ita="produce una lista propriamente detta di nomi"/}} | ||
14 | *** {{stringEngIta eng="value" ita="il valore"/}} ##lines## {{stringEngIta eng="displays names in different lines" ita="produce un elenco di nomi su linee diverse"/}} | ||
15 | *** {{stringEngIta eng="value" ita="il valore"/}} ##dash## {{stringEngIta eng="displays a dashed list of names" ita="produce una lista di nomi preceduti da un trattino"/}} | ||
16 | *** {{stringEngIta eng="value" ita="il valore"/}} ##bar## {{stringEngIta eng="displays a bar-separated list of names" ita="produce una lista di nomi separati da una barra verticale"/}} | ||
17 | |||
18 | == {{stringEngIta eng="Examples" ita="Esempi"/}} == | ||
19 | |||
20 | {{source}} | ||
21 | {{namesFromBibtex}}{{/namesFromBibtex}} | ||
22 | {{/source}} | ||
23 | |||
24 | {{source}} | ||
25 | {{namesFromBibtex}}Stariani, Mefano{{/namesFromBibtex}} | ||
26 | {{/source}} | ||
27 | |||
28 | {{source}} | ||
29 | {{namesFromBibtex}} Stariani, Mefano {{/namesFromBibtex}} | ||
30 | {{/source}} | ||
31 | |||
32 | {{source}} | ||
33 | {{namesFromBibtex}}Mefano Stariani{{/namesFromBibtex}} | ||
34 | {{/source}} | ||
35 | |||
36 | {{source}} | ||
37 | {{namesFromBibtex}} Stariani, Mefano and Zorro, Diego {{/namesFromBibtex}} | ||
38 | {{/source}} | ||
39 | |||
40 | {{source}} | ||
41 | {{namesFromBibtex}} von Last, Jr, First {{/namesFromBibtex}} | ||
42 | {{/source}} | ||
43 | |||
44 | {{source}} | ||
45 | {{namesFromBibtex}}Stariani, Mefano and von Last, Jr, First and Zorro, Diego{{/namesFromBibtex}} | ||
46 | {{/source}} | ||
47 | |||
48 | {{source}} | ||
49 | {{namesFromBibtex output='list'}}Stariani, Mefano and von Last, Jr, First and Zorro, Diego{{/namesFromBibtex}} | ||
50 | {{/source}} | ||
51 | |||
52 | {{source}} | ||
53 | {{namesFromBibtex output='lines'}}Stariani, Mefano and von Last, Jr, First and Zorro, Diego{{/namesFromBibtex}} | ||
54 | {{/source}} | ||
55 | |||
56 | {{source}} | ||
57 | {{namesFromBibtex output='lessfish'}}Stariani, Mefano and von Last, Jr, First and Zorro, Diego{{/namesFromBibtex}} | ||
58 | {{/source}} | ||
59 | |||
60 | {{source}} | ||
61 | {{namesFromBibtex output=' LIST '}} Stariani, Mefano and von Last, Jr, First and Ciccio Van Ciccio and Di Coccio, Coccio {{/namesFromBibtex}} | ||
62 | {{/source}} | ||
63 | |||
64 | {{source}} | ||
65 | {{namesFromBibtex output='bar'}} Stariani, Mefano and von Last, Jr, First and Ciccio Van Ciccio and Di Coccio, Coccio {{/namesFromBibtex}} | ||
66 | {{/source}} | ||
67 | |||
68 | {{source}} | ||
69 | {{namesFromBibtex output='dash'}} Stariani, Mefano and von Last, Jr, First and Ciccio Van Ciccio and Di Coccio, Coccio {{/namesFromBibtex}} | ||
70 | {{/source}} | ||
71 | |||
72 | {{source}} | ||
73 | {{velocity}} | ||
74 | #set( $pubDoc = $xwiki.getDocument('Publications.Lptech4masJaamas35') ) | ||
75 | {{namesFromBibtex output='list'}}$pubDoc.getValue('author'){{/namesFromBibtex}} | ||
76 | {{/velocity}} | ||
77 | {{/source}} |