Jump to content

Module:Signpost/doc

From Wikipedia, the free encyclopedia

This module makes indexes of articles for the Signpost. It has two main functions:


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 format
  • subpage: 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]
All subpages of this module

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

What the VLOP – findings of an outside auditor for "responsibilization" of Wikipedia. Plus, new EU Commissioners for tech policy, WLE 2024 winners, and a few other bits of news from the Wikipedia world.

2024-01-10, News and notes: In other news ... see ya in court!, by Andreas Kolbe

Let the games begin! The 2024 WikiCup is off to a strong start. With copyright enforcement, AI training and freedom of expression, it's another typical week in the wiki-sphere!

2023-12-04, News and notes: Beeblebrox ejected from Arbitration Committee following posts on Wikipediocracy, by Sdkb

Just as his term was ending!

2023-11-20, News and notes: Update on Wikimedia's financial health, by Andreas Kolbe

Plus: Sockpuppet investigators asking for help.

2023-11-06, News and notes: Board candidacy process posted, editors protest WMF privacy measure, sweet meetups, by Andreas Kolbe

And three new admins!