Jump to content

Module:List of contributors/doc

From SiIvaGunner Wiki

This is the documentation page for Module:List of contributors

For more information on how to use this code, see SiIvaGunner Wiki:List of contributors.

Usage

This module is intended to be used by transcluding data from other pages into it. mw:Extension:Labeled Section Transclusion#Transclude a specific section can be used to transclude a specific section. For clarity, the examples here show the individual list items.

render_list

This function extracts wikilinks from bulleted list items in the input text; each link must be the first text in the respective bullet point. The function also sorts the list items alphabetically and case-insensitively.

The option |mode=no category links can be used to exclude any lines that contain category links in the format [[:Category:...]].

Code Output
{{#invoke:List of contributors|render_list|wikitext=
* [[AMUNO]]
* {{contrib2|Chaze the Chat}}
* {{contrib|BotanicSage}}
}}

compare_list

This function extracts wikilinks from bulleted list items in the input text and compares them to another list. The text "Category:" is automatically detected and removed from the comparison_list parameter for the purposes of the comparison; this allows outputs from Wiki Category Grabber to be directly pasted into the module invocation.

Code Output
{{#invoke:List of contributors|compare_list|wikitext=
* [[AMUNO]]
* {{contrib|BotanicSage}}
|comparison_list=
Category:AMUNO
Category:Chaze the Chat
}}

Duplicates in list

These entries appear in List of contributors more than once.

  1. (none found)

Missing from list

These entries are missing from List of contributors.

Wikitext Links
*{{contrib2|Chaze the Chat}}
  1. Chaze the Chat (category)

Missing from category

These entries are missing from Category:Rips by author. Note that known contributors with 0 known contributions do not need to have a category.

  1. BotanicSage (category)

category_counts

This function evaluates the statistics of up to 100 categories, specifically the number of pages in each category. The categories are sorted into four buckets based on the number of pages. The first parameter is used to indicate which 100 entries in the list should be evaluated; the default is "1" or the first hundred entries.

From the wikitext parameter, wikilinks from bulleted list items in the input text are extracted, as with the aforementioned functions. Note that the links should be to articles, not categories.

Code Output
{{#invoke:List of contributors|category_counts|1|wikitext=
* [[AMUNO]]
* {{contrib|BotanicSage}}
* {{contrib2|Chaze the Chat}}
}}

Showing results in the range #1 to #3.

Purge

10+ 4–9 1–3 Other
  1. Chaze the Chat (category)
  1. AMUNO (category)
  2. BotanicSage (category)

Debug data: