Module:Signpost/doc
This is a documentation subpage for Module:Signpost. It may contain usage information, categories and other content that is not part of the original module page. |
This module makes indexes of articles for the Signpost. It has two main functions:
- Making formatted lists of articles. See Wikipedia:Wikipedia Signpost/Templates/Article list maker for documentation.
- Counting the number articles that fit certain criteria. See Wikipedia:Wikipedia Signpost/Templates/Article count for documentation.
- Note that this is part of a triumvirate of softwares: the indices are read by the module, but they're also written by SignpostTagger AND Wegweiser. Also SPS.JS is involved in some stuff.
Article data
[edit]The article data is stored in index modules organised by year, like Module:Signpost/index/2005, Module:Signpost/index/2006, etc. You can see the full list of index modules here. The data for all Signpost articles for a given year goes in that year's index module.
It is possible to edit the index modules by hand, but the recommended way is to use the SignpostTagger gadget. With SignpostTagger you can edit article data directly from Signpost article pages, and using it eliminates the possibility of making formatting errors or putting the data in the wrong place.
Data points
[edit]The index modules each contain a list of articles for that year. Each article has the following data points:
date
: The date the article was published, in YYYY-MM-DD formatsubpage
: The subpage of the article. For example, for the special report "Adminship from the German perspective" located at Wikipedia:Wikipedia Signpost/2012-10-22/Special report, the subpage is "Special report".title
: The article's title.authors
: Array listing authors of the article, as read by Wegweiser and SignpostTagger (based on displayed text from the author field, not links).tags
: A list of tags for the article. For example, the special report mentioned above has the tags "germanwikipedia", "reformingrfa", "requestsforadminship", and "specialreport" (optional).views
: Set of key-value pairs for views over seven intervals:d007
(7 days),d015
(15 days),d030
,d060
,d090
,d120
,d180
.subhead
: Article subheading (not normally displayed in the article, but can be parsed out of the "RSS description" template).piccy
: Set of key-value pairs for associating an image with an article (optional).
filename
: Image credit to display as overlay (i.e. author of image).license
: Short string for image license in overlay (i.e. "CC 4.0 BY-SA").scaling
: Scaling, width-based: default is 300, which is the width of the snippet template.xoffset
: X-offset (i.e. how many pixels to crop from the left if scaling gives an image wider than 300px).yoffset
: Y-offset (i.e. how many pixels to crop from the top if scaling gives an image taller than 300px).
Tags and aliases
[edit]Tags are used to classify articles. For example, you can find all of the humourous articles by using the article list maker template to list all articles with the tag "humour". It is also possible to specify aliases for tags. For example, "humor" is an alias for the "humour" tag, so when you are tagging an article with SignpostTagger you can use either one of them. Tag aliases are stored at Module:Signpost/aliases.
Subpages
[edit]Test cases
[edit]Wikipedia:Wikipedia Signpost/Templates/Article list maker, sort by tag (arbitrationreport), limit 5, include subhead
2024-12-24, News and notes: Responsibilities and liabilities as a "Very Large Online Platform", by Bri
2024-01-10, News and notes: In other news ... see ya in court!, by Andreas Kolbe
2023-12-04, News and notes: Beeblebrox ejected from Arbitration Committee following posts on Wikipediocracy, by Sdkb
2023-11-20, News and notes: Update on Wikimedia's financial health, by Andreas Kolbe
2023-11-06, News and notes: Board candidacy process posted, editors protest WMF privacy measure, sweet meetups, by Andreas Kolbe