Wikipedia:Wikipedia Signpost/Technical
(talk · chat) |
---|
|
|
|
Recent changes: main · talk |
|
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!
Types of Signpost pages
[edit]Main page
[edit]Looks like: Wikipedia: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: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,
{{Wikipedia:Wikipedia Signpost/Templates/Issue|1}}
returned2022-09-30
,{{Wikipedia:Wikipedia Signpost/Templates/Issue|2}}
returnedVolume 18, Issue 9
, and{{Wikipedia:Wikipedia Signpost/Templates/Issue|3}}
returned2022-08-31
. - Template:Signpost-main-page-body-begin: Opens
<div>
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
<div>
s for the main article page, and opens<div>
s for the footer. - Wikipedia:Signpost/Template:Signpost-footer: Navigational bar for the bottom of the main issue page, closes
<div>
s.
Archive page
[edit]Looks like: Wikipedia: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:
{{Signpost archive|2022-02-27|2022-03-27|2022-04-24}}
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
<div>
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
<div>
s for the content and transcludes the footer.
Issue page
[edit]Looks like: Wikipedia:Wikipedia Signpost/2022-03-27
There is one of these for each issue. These are transcluded on yearly archive pages (like Wikipedia:Wikipedia Signpost/Archives/2022). They're also transcluded by the monthly archive pages (i.e. Wikipedia:Wikipedia Signpost/Archives/2022-03-27 transcludes all of Wikipedia:Wikipedia Signpost/2022-03-27 via {{Signpost archive}}). They consist of a bunch of lines like this (one for every article that month):
{{Template:Signpost/item|{{{1}}}|11|2022-03-27|Arbitration report|Skeptics given heavenly judgement, whirlwind of Discord drama begins to spin for tropical cyclone editors|0.2 MB}}
This invokes Template:Signpost/item, which is its whole own can of worms. The {{{1}}} here allows a pass-through from another template, which is sort of complicated, so I will explain it like this:
- In Wikipedia:Wikipedia Signpost/Archives/2022-03-27's invocation of {{Signpost archive}}:
{{Wikipedia:Wikipedia Signpost/2022-03-27|2}}
{{Wikipedia:Wikipedia Signpost/2022-03-27}}
Note the difference: the issue page is getting called with 2
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.
- Note: Why is it like this? I have no idea.
Single-page editions
[edit]Wikipedia: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: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:Wikipedia Signpost) but has less detail, e.g. it leaves out the blurb (subtitle) for each story.
Templates
[edit]- A full list of every template we've ever used is available at Wikipedia: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:Wikipedia Signpost/Newsroom) to inform writers and editors, but it does not automatically affect the actual publication time (i.e. the time when Wikipedia:Wikipedia Signpost/Templates/Issue is updated with a new issue, or the publication dates registered there).
See also
[edit]- Useful links and directories
- Wikipedia:Wikipedia Signpost/Newsroom/Resources#Publication (notes on the publication process)
- Wikipedia:Wikipedia Signpost/Omni-index (link to all Signpost pages, templates, modules etc)
- Wikipedia:Wikipedia_Signpost/Templates (annotated library of templates)
- Skulls of previous adventurers
- User:Pretzels/Signpost_cleanup, from when Pretzels tried to do this same thing in 2009
- Wikipedia:Wikipedia Signpost/Technical/Page from when Pete Forsyth tried to do this same thing in 2016 (2016)
- Wikipedia_talk:Wikipedia_Signpost/Archive_12#Process_makeover (2018)
- User:Headbomb/New at the Signpost (2019)
- Wikipedia:Wikipedia Signpost/Technical (2022–)