Template:Signpost/item/sandbox
- {{{4}}}: [[Wikipedia:Wikipedia Signpost/{{{3}}}/{{{4}}}|{{{5}}}]]
![]() | __EXPECTUNUSEDTEMPLATE__This is the template sandbox page for Template:Signpost/item (diff). See also the companion subpage for test cases. |
![]() | This template is used on approximately 41,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
Gets called with something like: {{Signpost/item/sandbox|{{{1}}}|1|2010-08-23|News and notes|Pending changes poll, Public policy classes, Payment schemes debate, and more}}
Usage
This is used to link or display a Signpost section (e.g. Wikipedia:Wikipedia Signpost/2010-08-23/Technology report) in various different formats.
- {{{1}}} = display format. Possible values:
- "1" = plain list, bullet + Section name + [[story link|Headline]]. Used in issue content page (example: Wikipedia:Wikipedia Signpost/2010-08-23) and via this in Template:Signpost-subscription, User:EdwardsBot/Spam, Template:User Signpost-subscription (via2 Template:Signpost-textonly), ...
- "2" = two-column format. Section name (in small caps) + [[story link|Headline]]. Used on Wikipedia:Wikipedia Signpost and by Template:Signpost archive (example: Wikipedia:Wikipedia Signpost/Archives/2010-08-23)
- "3" = two-column format of anchor links. Used for TOC in Wikipedia:Signpost/Single.
- "4" = full transclusion, with anchor. Used in Wikipedia:Signpost/Single.
- {{{2}}} = running number of the section in the issue, between 0 and 18
- {{{3}}} = date of the Signpost issue, e.g. "2010-08-23". Forms part of the URL (page name in the wiki)
- {{{4}}} = page name (short, generic), e.g. "Technology report". Forms part of the URL (page name in the wiki). Must be consistent with previous issues for linking between consecutive reports.
- {{{5}}} = section headline (longer, generic or descriptive), e.g. "Bugs, Repairs, and Internal Operational News" or (here:) "Pending changes poll, Public policy classes, Payment schemes debate, and more"
Esoterics
- {{{6}}} = This is not used anywhere in the template, but for some reason, the individual issue pages (i.e. Wikipedia:Wikipedia Signpost/2023-08-15) call this template with a useless sixth parameter, which is the pagesize of the article. Like this:
- {{Wikipedia:Signpost/Template:Cover-item|{{{1}}}|11|2023-08-15|Traffic report|'Cause today it just goes with the fashion|0.3 MB}}
- Why on Earth does it do this? We don't know.
- Note: it started in Wikipedia:Wikipedia Signpost/2019-04-30.
- {{{7}}} = Currently unused. My plan (as of 22:57, 2 December 2023 (UTC)) is to backfill all the individual issue pages with the subheadings of the articles, which currently don't exist anywhere except the revision history of Wikipedia:Wikipedia Signpost (?) so it will be quite hard to do this. But perhaps good. Who knows. jp×g🗯️
Additional formats
As mentioned elsewhere earlier, I would like to use the flexibility of this system to add the following display formats (i.e. new values for {{{1}}}}). They would save a considerable amount of time in the weekly publication process and reduce the risk of errors. Mostly they are for generating ready-for-copypaste-text.
- "5" for blog (RSS) announcements (example)
Required code:
- | 6 = {{{4}}}: <a href="http://en.wikipedia.org/wiki/Wikipedia:Wikipedia Signpost/{{{3}}}/{{{4}}}" title="Wikipedia:Wikipedia Signpost/{{{3}}}/{{{4}}}">{{{5}}}</a><nowiki><br></nowiki>
will give e.g.
- In the news: <a href="http://en.wikipedia.org/wiki/Wikipedia:Wikipedia_Signpost/2010-09-06/In_the_news" title="Wikipedia:Wikipedia Signpost/2010-09-06/In the news">WikiLeaks and Wikipedia; Google–WP collaboration to translate health information</a><br>
- "6" for Foundation-l mailing list announcements (example)
Required code:
- | 7 = {{{4}}}: {{{5}}}<br/>http://en.wikipedia.org/wiki/Wikipedia:Wikipedia_Signpost/{{{3}}}/{{{4}}}<br/>
will give e.g.
- In the news: WikiLeaks and Wikipedia; Google–WP collaboration to translate health information
- http://en.wikipedia.org/wiki/Wikipedia:Wikipedia_Signpost/2010-09-06/In_the_news
- "7" for announcements via Global message delivery (example)
Required code:
- | 8 = * {{{4}}}: [[w:en:Wikipedia:Wikipedia Signpost/{{{3}}}/{{{4}}}|{{{5}}}<nowiki>]]</nowiki><br/>
will give e.g.
- News and notes: [[w:en:Wikipedia:Wikipedia Signpost/2010-09-27/News and notes|French million, controversial content, Citizendium charter, Pending changes, and more]]
Please review and correct, I may have messed up one or two nowikis or line breaks.
If I understand the structure correctly, the four code lines above (for 4,5,7,8) will need to be inserted in the current version after " | 4 = " and before " | * {{{4}}}: ".
Examples
Listed by display format, with the following parameters:
|2=5
|3=2010-09-06
|4=In the news
|5=WikiLeaks and Wikipedia; Google–WP collaboration to translate health information
.
- <syntaxhighlight lang="text" class="" style="" inline="1">1</syntaxhighlight> (plain list)
- {{Wikipedia:Signpost/Template:Cover-item|1|5|2010-09-06|In the news|WikiLeaks and Wikipedia; Google–WP collaboration to translate health information}}
- <syntaxhighlight lang="text" class="" style="" inline="1">2</syntaxhighlight> (two-column format)
- {{Wikipedia:Signpost/Template:Cover-item|2|5|2010-09-06|In the news|WikiLeaks and Wikipedia; Google–WP collaboration to translate health information}}
- <syntaxhighlight lang="text" class="" style="" inline="1">3</syntaxhighlight> (two-column format of anchor links)
- {{Wikipedia:Signpost/Template:Cover-item|3|5|2010-09-06|In the news|WikiLeaks and Wikipedia; Google–WP collaboration to translate health information}}
- <syntaxhighlight lang="text" class="" style="" inline="1">4</syntaxhighlight> (full transclusion)
Extended content
|
---|
{{Wikipedia:Signpost/Template:Cover-item|4|5|2010-09-06|In the news|WikiLeaks and Wikipedia; Google–WP collaboration to translate health information}}
|
- <syntaxhighlight lang="text" class="" style="" inline="1">5</syntaxhighlight> (for blog announcements)
- {{Wikipedia:Signpost/Template:Cover-item|6|5|2010-09-06|In the news|WikiLeaks and Wikipedia; Google–WP collaboration to translate health information}}
- <syntaxhighlight lang="text" class="" style="" inline="1">6</syntaxhighlight> (mailing list announcements)
- {{Wikipedia:Signpost/Template:Cover-item|7|5|2010-09-06|In the news|WikiLeaks and Wikipedia; Google–WP collaboration to translate health information}}
- <syntaxhighlight lang="text" class="" style="" inline="1">7</syntaxhighlight> (global message delivery announcements)
- {{Wikipedia:Signpost/Template:Cover-item|8|5|2010-09-06|In the news|WikiLeaks and Wikipedia; Google–WP collaboration to translate health information}}