Wikipedia:Wikipedia Signpost/Templates/Signpost-header/doc: Difference between revisions
Content deleted Content added
(One intermediate revision by the same user not shown) | |||
Line 3:
This is invoked as such:
* <code><nowiki>{{Wikipedia:Signpost/Template:Signpost-header|[[Wikipedia:Wikipedia Signpost/Archives|← Back to Archives]]|{{date|{{{2}}}|dmy}}|[[Wikipedia:Wikipedia Signpost|View Latest Issue]]}}</nowiki></code>
From article pages, like [[Wikipedia:Wikipedia Signpost/2023-08-01/Humour]]:
* <code><nowiki>{{Wikipedia:Signpost/Template:Signpost-header|||}}</nowiki></code>
* <code><nowiki>{{Wikipedia:Signpost/Template:Signpost-header|{{Str left|{{Wikipedia:Wikipedia Signpost/Templates/Issue|2}}|9}}|{{date|{{Wikipedia:Wikipedia Signpost/Templates/Issue|1}}|dmy}}|{{Str right|{{Wikipedia:Wikipedia Signpost/Templates/Issue|2}}|10}}}}</nowiki></code>
In general, as you can see above, it takes three unnamed parameters:
Uses these divs and these classes, contained in this order:▼
* <code><nowiki>{{{1}}}</nowiki></code>, for text on the left
* <code><nowiki>{{{2}}}</nowiki></code>, for text in the center
* <code><nowiki>{{{3}}}</nowiki></code>, for text on the right
It summons a TemplateStyles from [[Wikipedia:Wikipedia Signpost/Templates/Signpost-header/styles.css]] and uses it to style and create the Signpost header.
* <code>signpost-header nomobile noprint</code> (container div, no content in the div itself)
** <code>signpost-header-heading</code> ([[:File:Signpost2.svg|File:Signpost2.svg]])
Line 18 ⟶ 28:
** <code>signpost-header-subsubheadings</code> (empty div -- this can be used for whatever nonsense by the frontend)
Note that <code>signpost-header-volume</code>, <code>signpost-header-issue</code> and <code>signpost-header-date</code> can actually just be whatever random stuff -- and, in fact, some templates (like {{tl|Signpost archive}}) ''do'' call the header template with stuff other than volumes and issues in those locations.<!-- JPxG, 2023 08 28-->
Note again -- very importantly -- the following.
== THIS IS NOT [[Wikipedia:Wikipedia Signpost/Templates/Signpost-article-header-v2]]!!!!! ==
That's a totally different template that exists for some reason (?)
<includeonly>{{Sandbox other||
|