Code source wiki de Contributors
Modifié par Admin le 16/10/2025 - 23:33
Afficher les derniers auteurs
| author | version | line-number | content |
|---|---|---|---|
| 1 | Contributors confluence bridge macro that shows the contributors of a given page. | ||
| 2 | |||
| 3 | |=Parameter|=Name|=Default|=Description | ||
| 4 | |include|Include|authors|((( | ||
| 5 | * authors - includes users who edited the page(s). | ||
| 6 | * comments - includes people who commented to the page(s) | ||
| 7 | |||
| 8 | Several values can be given, separated by commas. Values "labels" and "watches" are not supported in this bridge macro. | ||
| 9 | ))) | ||
| 10 | |order|Order|count|((( | ||
| 11 | Possibles values: | ||
| 12 | |||
| 13 | * count - order by number of contributions | ||
| 14 | * name - order contributors by name alphabetically | ||
| 15 | * update - order by last contribution date | ||
| 16 | ))) | ||
| 17 | |reverse|Reverse|false|reverse the order specified in the order parameter. | ||
| 18 | |limit|Limit|no limit|Show at most the given number of contributors. | ||
| 19 | |mode|Mode|inline|((( | ||
| 20 | Possible values are: | ||
| 21 | |||
| 22 | * inline - a comma-separated list | ||
| 23 | * list - a bullet list. | ||
| 24 | ))) | ||
| 25 | |showCount|Show count|false|Show the contribution count for each user. | ||
| 26 | |showLastTime|Show last time|false|Show the last contribution time for each user. | ||
| 27 | |page|Page|current|The page for which to list the contributions. If both page and space are empty, the current page is used. | ||
| 28 | |spaces|Spaces|current|((( | ||
| 29 | Space(s) containing the page specified in the page parameter, or the space(s) to search. Several spaces can be specified using commas. | ||
| 30 | |||
| 31 | @global and @ALL will search in the whole wiki. | ||
| 32 | ))) | ||
| 33 | |scope|Scope|specified page only|((( | ||
| 34 | Possible values: | ||
| 35 | |||
| 36 | * children - include direct children of the specified pages | ||
| 37 | * descendants - include all children of the specified pages | ||
| 38 | * (blank) - include only the specified pages | ||
| 39 | ))) | ||
| 40 | |showPages|Show Pages|false|Show the list of pages used to build the list of contributors | ||
| 41 | |noneFoundMessage|None Found Message|default message|((( | ||
| 42 | The message to show when no contributors are found. | ||
| 43 | ))) | ||
| 44 | |||
| 45 | == Examples == | ||
| 46 | |||
| 47 | Code (this page, inline): | ||
| 48 | |||
| 49 | {{code}} | ||
| 50 | {{contributors mode="inline"/}} | ||
| 51 | {{/code}} | ||
| 52 | |||
| 53 | Result: | ||
| 54 | |||
| 55 | {{contributors mode="inline"/}} | ||
| 56 | |||
| 57 | Code (this page, list mode, show information): | ||
| 58 | |||
| 59 | {{code}} | ||
| 60 | {{contributors mode="list" showCount="true" showLastTime="true" showPages="true"/}} | ||
| 61 | {{/code}} | ||
| 62 | |||
| 63 | Result: | ||
| 64 | |||
| 65 | {{contributors mode="list" showCount="true" showLastTime="true" showPages="true"/}} | ||
| 66 | |||
| 67 | Code ([[Sandbox.WebHome]] space, inline): | ||
| 68 | |||
| 69 | {{code}} | ||
| 70 | {{contributors spaces="Sandbox" scope="descendents" mode="inline"/}} | ||
| 71 | {{/code}} | ||
| 72 | |||
| 73 | Result: | ||
| 74 | |||
| 75 | {{contributors spaces="Sandbox" scope="descendents" mode="inline"/}} | ||
| 76 | |||
| 77 | Code ([[Sandbox.WebHome]] space, list mode, show information): | ||
| 78 | |||
| 79 | {{code}} | ||
| 80 | {{contributors spaces="Sandbox" scope="descendents" mode="list" showCount="true" showLastTime="true" showPages="true"/}} | ||
| 81 | {{/code}} | ||
| 82 | |||
| 83 | Result: | ||
| 84 | |||
| 85 | {{contributors spaces="Sandbox" scope="descendents" mode="list" showCount="true" showLastTime="true" showPages="true"/}} |