Jump to content

Template:Header2: Difference between revisions

From IdeaWazaWiki
wikademia>Pathoschild
m tweaks ("translator" to "translated by", allow browsers to wrap if necessary for accessibility reasons)
wikademia>Quadell
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:Headers missing parameters]]}}</includeonly>
<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:Headers missing parameters]]}}
{| class="headertemplate"
{| class="headertemplate"
|-
|-
|class="header_backlink" | {{#if:{{{previous|}}}{{{next|}}}|<span id="headerprevious">{{#if:{{{previous|}}}|←{{{previous}}}}}</span>}}
|class="header_backlink" | {{#if:{{{previous|}}}{{{next|}}}|<span id="headerprevious" style="line-height:normal">{{#if:{{{previous|}}}|←{{{previous}}}}}</span>}}
|class="header_title"    | '''{{{title|Untitled}}}''' {{#if:{{{section|}}}|({{{section|}}})}}{{#if:{{{override_author|}}}|<br />''{{{override_author}}}''|{{#if:{{{author}}}|<br />''by {{#ifeq:{{#expr:{{{author}}}}}|<strong class="error">Expression error: Unrecognised punctuation character "["</strong>|{{{author}}}|[[Author:{{{author}}}|{{{author}}}]]}}''}}}}{{#if:{{{translator|}}}|&#32;({{#switch:{{{translator|}}}
|class="header_title"    | '''{{{title|Untitled}}}''' {{#if:{{{override_author|}}}|<br /><i>{{{override_author}}}</i>|{{#if:{{{author}}}|{{#if:{{{section|}}}| |<br/>}}<i>by {{#ifeq:{{#expr:{{{author}}}}}|<strong class="error">Expression error: Unrecognised punctuation character "["</strong>|{{{author}}}</i>|[[Author:{{{author}}}|{{{author}}}]]}}</i>}}}}{{#if:{{{translator|}}}|{{#switch:{{{translator|}}}
| ? =[[:Category:Deletion requests/Unknown translators|unknown translator]]
| ? =[[:Category:Deletion requests/Unknown translators|unknown translator]]
| wikisource =translated by [[Wikisource:Translations|Wikisource]]{{#ifeq:{{BASEPAGENAME}}|{{PAGENAME}}|[[Category:Wikisource translations]]}}
| wikisource =translated by [[Wikisource:Translations|Wikisource]]{{#ifeq:{{BASEPAGENAME}}|{{PAGENAME}}|[[Category:Wikisource translations]]}}
|translated by {{#ifeq:{{#expr:{{{translator}}}}}|<strong class="error">Expression error: Unrecognised punctuation character "["</strong>|{{{translator}}}|''[[Author:{{{translator}}}|{{{translator}}}]]''}}
|<i>, translated by {{#ifeq:{{#expr:{{{translator}}}}}|<strong class="error">Expression error: Unrecognised punctuation character "["</strong>|{{{translator}}}</i>|[[Author:{{{translator}}}|{{{translator}}}]]</i>}}
}})}}{{#ifeq:{{{override_author|}}}|||[[Category:Pages with override author]]}}
}}}}{{#ifeq:{{{override_author|}}}|||[[Category:Pages with override author]]}}{{#if:{{{section|}}}|<br />{{{section|}}}}}
|class="header_forelink" | {{#if:{{{previous|}}}{{{next|}}}|<span id="headernext">{{#if:{{{next|}}}|{{{next}}}→}}</span>}}
|class="header_forelink" | {{#if:{{{previous|}}}{{{next|}}}|<span id="headernext" style="line-height:normal">{{#if:{{{next|}}}|{{{next}}}→}}</span>}}
|}
|}
{| class="header_notes"
{| class="header_notes"
Line 14: Line 14:
| {{{notes|}}}
| {{{notes|}}}
|}{{#ifeq:{{#expr:{{{previous|}}}}}|<span class="error">Expression error: Unrecognised punctuation character "�"</span>|[[Category:Header2 pages with arrow in previous param]]}}{{#ifeq:{{{translator|}}}|?|
|}{{#ifeq:{{#expr:{{{previous|}}}}}|<span class="error">Expression error: Unrecognised punctuation character "�"</span>|[[Category:Header2 pages with arrow in previous param]]}}{{#ifeq:{{{translator|}}}|?|
{{No translator info}}}}{{#if:{{{override_author|}}}|[[Category:Pathosbot]]}}{{#ifeq:{{BASEPAGENAME}}|{{PAGENAME}}||{{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}}|[[Category:Subpages]]}}}}<noinclude>
{{No translator info}}}}{{#if:{{{override_author|}}}|[[Category:Pathosbot]]}}{{#ifeq:{{BASEPAGENAME}}|{{PAGENAME}}||{{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}}|[[Category:Subpages]]}}}}</includeonly><noinclude>
{{Pp-template}}
{{Pp-template}}
{{Template:Header2/doc}}
[[Category:Article templates|{{PAGENAME}}]]
[[Category:Article templates|{{PAGENAME}}]]



Revision as of 13:57, 30 January 2008