Wikipedia:Wikipedia Signpost/Templates/Signpost-header/doc: Difference between revisions

Content deleted Content added
document this freaking thing
 
 
(2 intermediate revisions by the same user not shown)
Line 1:
{{Documentation subpage}}
== Usage ==
This is invoked as such:
This summons a TemplateStyles from [[Wikipedia:Wikipedia Signpost/Templates/Signpost-header/styles.css]] and uses it to style and create the Signpost header.
 
From [[Template:Signpost archive]]:
Uses these divs and these classes, contained in this order:
* <code><nowiki>{{Wikipedia:Signpost/Template:Signpost-header|[[Wikipedia:Wikipedia Signpost/Archives|&larr; 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>
 
From [[Wikipedia:Wikipedia Signpost]]:
* <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:
* <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
 
ThisIt summons a TemplateStyles from [[Wikipedia:Wikipedia Signpost/Templates/Signpost-header/styles.css]] and uses it to style and create the Signpost header.
 
UsesIt uses these divs and these classes, contained in this order:
* <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 11 ⟶ 27:
*** <code>signpost-header-date</code> (date of issue, in center, e.g. "15 August 2023")
** <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||