Wikipedia:Wikipedia Signpost/Technical

Hi. I am jp×g, writing at 22:29, 24 October 2022 (UTC). The following document will be my attempt to summarize, in an understandable way, how the Signpost works on a purely technical level (i.e. the electrical system that causes Signpost content to go from writers' keyboards to your eyeballs). What is this machine and what does it do? This document is mostly, and perhaps entirely, of interest to people such as me (an editor-in-chief attempting to make sense of a very old legacy system which he has inherited from generations past). Feel free to stop reading now, because this is going to be boring!

Main page
Looks like: Wikipedia Signpost

There is only one main page: it shows the current issue. Its contents are automatically overwritten each month with the new issue's release; they're overwritten by content generated by the Signpost Publishing Script.

Templates used by this page are:
 * Wikipedia:Signpost/Template:Signpost-header: Complicated-looking code, but does the fairly simple task of generating the page header. It does not need to be updated regularly, or really ever (unless the formatting of the header itself is being changed).
 * Wikipedia Signpost/Templates/Issue: Updated each issue: all this does is track the date of the most recent issue (and the one before that). For example, on 2022 10 24,  returned ,   returned  , and   returned.
 * Template:Signpost-main-page-body-begin: Opens s for the main page.
 * Wikipedia:Signpost/Template:Signpost-snippet: Template for snippets. This is used on the main Signpost page, as well as on userpages that embed the Signpost's current issue.
 * Template:Signpost-main-page-body-end-footer-begin: Closes s for the main article page, and opens  s for the footer.
 * Wikipedia:Signpost/Template:Signpost-footer: Navigational bar for the bottom of the main issue page, closes s.

Archive page
Looks like: Wikipedia Signpost/Archives/2022-03-27

There is one of these for each Signpost issue. They (as far as I can tell) are not transcluded anywhere. Their wikitext source is extremely short, and looks like this:

A closer look at Signpost archive, whose output is essentially identical in formatting to the main page (but for dates other than the current issue):
 * It transcludes the header, as the main issue page does, and opens some s for the content (while setting fonts, sizes and line heights for it).
 * It transcludes the appropriate issue page (i.e. from the section below).
 * It closes the s for the content and transcludes the footer.

Issue page
Looks like: Wikipedia Signpost/2022-03-27

There is one of these for each issue. These are transcluded on yearly archive pages (like Wikipedia Signpost/Archives/2022). They're also transcluded by the monthly archive pages (i.e. Wikipedia Signpost/Archives/2022-03-27 transcludes all of Wikipedia Signpost/2022-03-27 via Signpost archive). They consist of a bunch of lines like this (one for every article that month):

This invokes Template:Signpost/item, which is its whole own can of worms. The here allows a pass-through from another template, which is sort of complicated, so I will explain it like this: Note the difference: the issue page is getting called with  as its first parameter from the monthly archive page, and with nothing as its first parameter from the yearly archive page. This means that different parameters are being passed from the monthly archive page to Template:Signpost/item, causing different display modes to be selected.
 * In Wikipedia Signpost/Archives/2022-03-27's invocation of Signpost archive:
 * In Wikipedia Signpost/Archives/2022:


 * Note: Why is it like this? I have no idea.

Single-page editions
Wikipedia Signpost/Single, when viewed directly, automatically transcludes all stories from the current issue for reading on a single page. When transcluded as a template with the date of any archived issue as parameter, it does the same for that issue; this is used to generate archival single-edition pages (example: Wikipedia Signpost/Single/2022-10-31).
 * NB: It includes an autogenerated table of content that is similar to the one on the main page (Wikipedia Signpost) but has less detail, e.g. it leaves out the blurb (subtitle) for each story.

Templates

 * A full list of every template we've ever used is available at Wikipedia Signpost/Templates.


 * Template:Signpost/Deadline contains the anticipated writing and publishing deadlines for the upcoming issue. It is transcluded in various other pages (such as the Wikipedia Signpost/Newsroom) to inform writers and editors, but it does not automatically affect the actual publication time (i.e. the time when Wikipedia Signpost/Templates/Issue is updated with a new issue, or the publication dates registered there).