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

Content deleted Content added
Created page with '{{Documentation subpage}} == Usage == This template allows you to insert the top header of a signpost article, and it also starts the actual article's canvas. It limits the width of all this to 80 ems and uses viewport relative margins on the left and right. You always need to balance the usage of this template with a call to Wikipedia:Wikipedia Signpost/Templates/Signpost-article-end-v2. The type of article will be displayed on the line above the tit...'
 
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1:
{{Documentation subpage}}
{{Uses TemplateStyles|Wikipedia:Wikipedia Signpost/Templates/Signpost-article-header-v2/styles.css}}
== Usage ==
This template allows you to insert the top header of a signpost article, and it also starts the actual article's canvas. It limits the width of all this to 80 ems and uses viewport relative margins on the left and right.
Line 7 ⟶ 8:
The type of article will be displayed on the line above the title according to the [[Wikipedia:Page_name#sub|subpage name]], so create e.g. as Wikipedia:Wikipedia_Signpost/YYYY-MM-DD/Op-ed if the title should be "Op-ed".
 
=== Styles and classes ===
[[Category:Wikipedia Signpost templates|{{SUBPAGENAME}}]]
(incomplete)
There are five non-displaying metadata fields:
<syntaxhighlight lang="wikitext">
<div style="display:none;">
<div class="signpost-piccyfilename">{{Plain text|1={{{piccyfilename|}}}}}</div>
<div class="signpost-piccy-credits">{{Plain text|1={{{piccy-credits|}}}}}</div>
<div class="signpost-piccy-license">{{Plain text|1={{{piccy-license|}}}}}</div>
<div class="signpost-piccy-xoffset">{{Plain text|1={{{piccy-xoffset|}}}}}</div>
<div class="signpost-piccy-yoffset">{{Plain text|1={{{piccy-yoffset|}}}}}</div>
<div class="signpost-piccy-scaling">{{Plain text|1={{{piccy-scaling|}}}}}</div>
</div>
</syntaxhighlight>
These pass through the params for piccy metadata; even though they aren't displayed on the article page, they make the text appear so that it can be searched or extracted by external applications.
 
If the <code>piccyfilename</code> param is embedded, there's also a hidden 1px embed of it, which causes it to register as in-use (and avoid Commons deletions).
 
<includeonly>{{Sandbox other||
<!-- Categories below this line -->
[[Category:Wikipedia Signpost templates|{{SUBPAGENAME}}]]
 
}}</includeonly>