Template:Signpost/snippet/doc

asdfasdfasdf

asdfasdfasdf

This template is used on Wikipedia Signpost, Wikipedia Signpost/Templates/Issue, and Wikipedia Signpost/Next issue. It is also on many userpages, which transclude the Signpost with. It is used to generate individual snippets that link to articles. It takes the following parameters:


 * : Issue date, like . This is part of the name of the pages it links to.
 * : Department, like "Opinion". This is also part of the page names.  and   are combined, for example, to link to Wikipedia Signpost/2022-05-29/Opinion.
 * : Title. This is defined by input, and not taken from the article page itself: the article could be titled "A serious look at the crisis facing us" in its own code, and you could type "hoomba baroomba" into this parameter when invoking the snippet template, and the snippet would say "hoomba baroomba".
 * : Blurb, or subheading. This is a short descriptive sentence which serves as a hook for the article.
 * : Page size. This is something like "0.5 MB". In the template output, it links to a PDF download.

and  are required;   is optional (it will show "No title/Not yet started" if not supplied). is optional (it will show "No blurb" if not supplied). is entirely optional (it will simply not show a PDF link if not supplied).

If  is "Wikipedia Signpost", it adds   and   to suppress the auto-generation of a table of contents and section edit links (this is to allow the template to be embedded on userpages and the like).

TemplateStyles are drawn from Template:Signpost/snippet/styles.css.

With respect to HTML, it does this:


 * It creates a  with the class  . This encloses everything (i.e. the whole snippet).
 * It creates another,  , which contains the department name (from the second unnamed parameter).
 * The third  is   and the title (from the third unnamed parameter). This title is a link to the Signpost page itself.
 * It creates a  with the class  . This contains the blurb (from the fourth unnamed parameter). It is not linked to anything.
 * It creates a  with the class  . This contains a link to the article itself.
 * Optionally, if  (article size) is supplied, it will link to a PDF. There is no div class for this link.

Nopic
Template:Signpost/snippet-nopic is the same template as this, but doesn't have pics for the articles. This can be used on old pages, like archives etc, where the articles don't have pics.

Potpourri

 * As of 03:35, 4 December 2023 (UTC) it has a (somewhat halfassed) interpretation of a  param which it displays above the entry.
 * This may seem like a very high-use template, and it does have a lot of transclusions, but almost all of these are from people transcluding the WP:SIGNPOST main page. Actual insource searches reveal that this template is basically only ever used on the main Signpost page.