Difference between revisions of "Template:Header"
Line 10: | Line 10: | ||
|{{{title|undef!}}} | |{{{title|undef!}}} | ||
|{{{author|undef!}}} | |{{{author|undef!}}} | ||
+ | |{{{section|undef!}}} | ||
|{{{previous|undef!}}} | |{{{previous|undef!}}} | ||
|{{{next|undef!}}} | |{{{next|undef!}}} | ||
+ | |{{{notes|undef!}}} = <div style="margin-right:auto; margin-left:auto; border-top:1px solid #CCC; border-right:1px solid #CCC; border-bottom:1px hidden transparent; border-left:1px solid #CCC; text-align:center;"><span class="error" style="font-size:90%; font-weight:bold;">template error: please do not remove empty parameters (see the [[WS:STYLE#Templates|style guide]] and [[Template:Header#documentation|template documentation]]).</span></div><!-- | ||
+ | |||
+ | Also add a tracking category: | ||
+ | -->{{#ifeq:{{NAMESPACE}}||[[Category:Headers missing parameters]]|}}<!-- | ||
-->}}<!--end switch--></includeonly><!-- | -->}}<!--end switch--></includeonly><!-- | ||
Line 66: | Line 71: | ||
Normal author | Normal author | ||
-->{{#if:{{{author}}}|<!-- | -->{{#if:{{{author}}}|<!-- | ||
+ | |||
+ | Insert a line break if page is *not* a section page | ||
+ | -->{{#if:{{{section|}}}| |<br/>}}<!-- | ||
+ | --><i>by <!-- | ||
Catch unknown authors | Catch unknown authors | ||
Line 89: | Line 98: | ||
-->|#default=<i>{{#if:{{{author|}}}{{{override_author|}}}|, }}<!-- | -->|#default=<i>{{#if:{{{author|}}}{{{override_author|}}}|, }}<!-- | ||
+ | -->{{#if:{{{author|}}}{{{override_author|}}}||{{#if:{{{section|}}}||<br>}}}} edited by <!-- | ||
+ | |||
--><span id="header_editor_text" class="vcard"><!-- | --><span id="header_editor_text" class="vcard"><!-- | ||
--><span class="fn">{{#if:{{{override_editor|}}}|{{{override_editor}}}|{{#ifexist: Author:{{{editor}}} || <!-- only required main and translation ns:--> | --><span class="fn">{{#if:{{{override_editor|}}}|{{{override_editor}}}|{{#ifexist: Author:{{{editor}}} || <!-- only required main and translation ns:--> | ||
Line 127: | Line 138: | ||
-->}}<!-- | -->}}<!-- | ||
+ | Section field | ||
+ | -->{{#if:{{{section|}}}|<br /><span id="header_section_text">{{{section|}}}</span><!-- | ||
+ | |||
+ | Section author | ||
+ | -->{{#if:{{{override_contributor|}}}{{{contributor|}}}|<!-- | ||
+ | --><i> by <span id="header_contributor_text" class="vcard"><!-- | ||
+ | --><span class="fn">{{#if:{{{override_contributor|}}}|{{{override_contributor}}}|{{#ifexist: Author:{{{contributor}}} || <!-- only required main and translation ns:--> | ||
+ | {{#switch: {{NAMESPACENUMBER}} | ||
+ | | 0 | ||
+ | | 114=[[Category:Works with non-existent author pages]] | ||
+ | | #default = }}<!-- end of switch -->}}[[Author:{{{contributor}}}|{{{contributor}}}]]}}</span></span><!-- | ||
+ | --></i>}}<!-- | ||
+ | |||
+ | end of section field | ||
-->}}<!-- | -->}}<!-- | ||
Line 168: | Line 193: | ||
-->|{{#if:<!-- | -->|{{#if:<!-- | ||
-->{{{disambiguation|}}}<!-- | -->{{{disambiguation|}}}<!-- | ||
+ | -->{{{edition|}}}<!-- | ||
+ | -->{{{portal|}}}<!-- | ||
-->{{{related_author|}}}<!-- | -->{{{related_author|}}}<!-- | ||
-->{{{wikipedia|}}}<!-- | -->{{{wikipedia|}}}<!-- | ||
Line 188: | Line 215: | ||
-->| disambiguation = {{{disambiguation|}}}<!-- | -->| disambiguation = {{{disambiguation|}}}<!-- | ||
-->| edition = {{{edition|}}}<!-- | -->| edition = {{{edition|}}}<!-- | ||
+ | -->| portal = {{{portal|}}}<!-- | ||
-->| related_author = {{{related_author|}}}<!-- | -->| related_author = {{{related_author|}}}<!-- | ||
-->| wikipedia = {{{wikipedia|}}}<!-- | -->| wikipedia = {{{wikipedia|}}}<!-- | ||
Line 210: | Line 238: | ||
-->| disambiguation = {{{disambiguation|}}}<!-- | -->| disambiguation = {{{disambiguation|}}}<!-- | ||
-->| edition = {{{edition|}}}<!-- | -->| edition = {{{edition|}}}<!-- | ||
+ | -->| portal = {{{portal|}}}<!-- | ||
-->| related_author = {{{related_author|}}}<!-- | -->| related_author = {{{related_author|}}}<!-- | ||
-->| wikipedia = {{{wikipedia|}}}<!-- | -->| wikipedia = {{{wikipedia|}}}<!-- | ||
Line 232: | Line 261: | ||
-->{{#if:{{{shortcut|}}}|{{Shortcut|{{{shortcut}}}}}}}<!-- | -->{{#if:{{{shortcut|}}}|{{Shortcut|{{{shortcut}}}}}}}<!-- | ||
+ | Notes from parameter | ||
+ | -->{{{notes}}}<!-- | ||
close faux TD--> | close faux TD--> | ||
Line 251: | Line 282: | ||
--><span id="ws-article-id">{{{{{|safesubst:}}}PAGEID}}</span><!-- | --><span id="ws-article-id">{{{{{|safesubst:}}}PAGEID}}</span><!-- | ||
+ | |||
+ | --><span id="ws-title">{{{title|}}}{{#if:{{{section|}}}| — ''{{{section}}}''}}</span><!-- | ||
-->{{#if:{{{author|}}}{{{override_author|}}}<!-- | -->{{#if:{{{author|}}}{{{override_author|}}}<!-- |
Latest revision as of 22:06, 8 June 2019
Template documentation[create]
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |