Module:Women in Red event/doc
| This is a documentation subpage for Module:Women in Red event. It may contain usage information, categories and other content that is not part of the original module page. |
| This module is rated as beta. It is considered ready for widespread use, but as it is still relatively new, it should be applied with some caution to ensure results are as expected. |
Usage
This module has various functons that use the list of WikiProject Women in Red events stored at Wikipedia:WikiProject Women in Red/events. These are used in Template:WikiProject Women in Red, Template:WIR meetup header and elsewhere.
main function
{{#invoke:Women in Red event|main|event|field}}
- Given an event number, reads one of the fields (event, year, month, type, image, series)
For example:
{{#invoke:Women in Red event|main|294|name}}gives "Education"{{#invoke:Women in Red event|main|7|year}}gives "2016"{{#invoke:Women in Red event|main|236|series}}gives "Alphabet run"
text function
Produces a piped link to the event page followed by the date, for use in the project banner. For example:
{{#invoke:Women in Red event|text|291}}gives "Women who died: 2023 edit-a-thon from December 2023 to January 2024"
date function
Produces a formatted date (including month and year) of the event. For example:
{{#invoke:Women in Red event|date|210}}gives "October–December 2021"
findLatest function
Shows the latest event number to be defined (currently 354), ignoring the quasi event numbers "2017" and "2018". For example
{{#invoke:Women in Red event|findLatest}}gives "354"
An optional parameter |add= can be used to add or subtract numbers to the latest. For example
{{#invoke:Women in Red event|findLatest|add=1}}gives "355"
List functions
Produce a list of events, for various purposes.
{{#invoke:Women in Red event|list}}is a full list of all events, currently shown on Wikipedia talk:WikiProject Women in Red/events.{{#invoke:Women in Red event|articleBySeries}}is a list of all events in a certain series. The first unnamed parameter is the name of the series (e.g. "Alphabet run"). Used on pages such as Category:WikiProject Women in Red Alphabet run articles.{{#invoke:Women in Red event|articleByYear}}is a list of all events in a particular year. The unnamed parameter specifies the year, e.g. 2023. Used on pages such as Category:WikiProject Women in Red 2023 articles.{{#invoke:Women in Red event|event_list_by_year}}is a collapsed list of all events by year, for use in Template:Women in Red navigation.
count_banners function
Used by Template:WikiProject Women in Red to count the number of WIR banners on the page, and output a category if this number is more than 1, i.e. there are multiple banners on the same page. It looks for templates of the form {{WIR...}} or {{WikiProject Women in Red...}}. The categories are shown in Category:Pages with multiple WikiProject Women in Red banners.
current_events function
Produces a list of current and upcoming events, for navigational purposes at the top of meetup pages.
For example:
{{#invoke:Women in Red event|current_events}}produces
| Recently completed: | |
| November 2025: | |
| Ongoing initiatives: | |
| Upcoming events: |
events function
{{#invoke:Women in Red event|events}}
Produces a list of current, upcoming and recently completed events, for use on Wikipedia:WikiProject Women in Red/Events. It has a number of optional parameters:
monthly- include a section for edit-a-thons in the current month. This parameter defines the heading, e.g.|monthly=Happening nowongoing- include a section for ongoing initiatives or contests. This parameter defines the heading, e.g.|ongoing=Ongoing initiativesupcoming- include a section for upcoming events. This parameter defines the heading, e.g.|upcoming=Coming uprecent- include a section for recently completed events (i.e. events in the previous month). This parameter defines the heading, e.g.|recent=Recently completedpast- include a section for all past events (except recently completed). This parameter defines the heading, e.g.|past=Past events
category_header function
Used by Template:WIR category to produce a header for various categories.