Jump to content

Template:Header2: Difference between revisions

From IdeaWazaWiki
wikademia>Pathoschild
+ error if parameters are removed
wikademia>Academia
m 74 revisions
 
(54 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<includeonly><!-- make sure no parameters are removed -->{{#ifexpr:(0{{#ifeq:{{{title|blank!}}}|blank!|1}}{{#ifeq:{{{author|blank!}}}|blank!|1}}{{#ifeq:{{{section|blank!}}}|blank!|1}}{{#ifeq:{{{previous|blank!}}}|blank!|1}}{{#ifeq:{{{next|blank!}}}|blank!|1}}{{#ifeq:{{{notes|blank!}}}|blank!|1}})>0|<div style="text-align:center; border:1px solid #CCC; font-size:0.9em;">'''template error: please do not remove empty parameters (see the [[WS:STYLE#Templates|style guide]] and [[template talk:header#documentation|template documentation]]).'''</div> [[Category:Author pages missing parameters]]}}</includeonly>
#redirect [[Template:Header]]
{| class="headertemplate"
|-
|class="header_backlink" | {{#if:{{{previous|}}}|←{{{previous}}}}}
|class="header_title"    | '''{{{title|Untitled}}}''' {{#if:{{{section|}}}|({{{section|}}})}}{{#if:{{{override_author|}}}|<br />''{{{override_author}}}''|{{#if:{{{author}}}|<br />''by [[Author:{{{author}}}|{{{author}}}]]''}}}}
|class="header_forelink" | {{#if:{{{next|}}}|{{{next}}}→}}
|}
{| class="header_notes"
|-
| {{{notes|}}}
|} <noinclude>
[[Category:Article templates|{{PAGENAME}}]]
 
[[da:Skabelon:Header]]
[[fr:Modèle:Titre]]
[[zh:Template:Header2]]
</noinclude>
<br clear="both" />

Latest revision as of 06:13, 7 March 2009

Redirect to: