Jump to content

Template:Header2: Difference between revisions

From IdeaWazaWiki
wikademia>Jayvdb
m catch any arrows in header2 "previous" param
wikademia>Jayvdb
add "translator = wikisource" support
Line 4: Line 4:
|-
|-
|class="header_backlink" | {{#if:{{{previous|}}}{{{next|}}}|<span id="headerprevious">{{#if:{{{previous|}}}|←{{{previous}}}}}</span>}}
|class="header_backlink" | {{#if:{{{previous|}}}{{{next|}}}|<span id="headerprevious">{{#if:{{{previous|}}}|←{{{previous}}}}}</span>}}
|class="header_title"    | '''{{{title|Untitled}}}''' {{#if:{{{section|}}}|({{{section|}}})}}{{#if:{{{override_author|}}}|<br />''{{{override_author}}}''|{{#if:{{{author}}}|<br />''by [[Author:{{{author}}}|{{{author}}}]]''}}}}{{#if:{{{translator|}}}|&nbsp;(translator: {{#ifeq:{{{translator|}}}|?| [[:Category:Deletion requests/Unknown translators|unknown]]|{{#ifeq:{{#expr:{{{translator}}}}}|Expression error: Unrecognised punctuation character "["|{{{translator}}}|''[[Author:{{{translator}}}|{{{translator}}}]]''}}}})}}{{#ifeq:{{{override_author|}}}|||[[Category:Pages with override author]]}}
|class="header_title"    | '''{{{title|Untitled}}}''' {{#if:{{{section|}}}|({{{section|}}})}}{{#if:{{{override_author|}}}|<br />''{{{override_author}}}''|{{#if:{{{author}}}|<br />''by [[Author:{{{author}}}|{{{author}}}]]''}}}}{{#if:{{{translator|}}}|&nbsp;({{#switch:{{{translator|}}}
| ? =[[:Category:Deletion requests/Unknown translators|unknown translator]]
| wikisource =translated by [[Category:Wikisource translations]][[Wikisource:Translations|Wikisource]]
|translator:&nbsp;{{#ifeq:{{#expr:{{{translator}}}}}|Expression error: Unrecognised punctuation character "["|{{{translator}}}|''[[Author:{{{translator}}}|{{{translator}}}]]''}}
}})}}{{#ifeq:{{{override_author|}}}|||[[Category:Pages with override author]]}}
|class="header_forelink" | {{#if:{{{previous|}}}{{{next|}}}|<span id="headernext">{{#if:{{{next|}}}|{{{next}}}→}}</span>}}
|class="header_forelink" | {{#if:{{{previous|}}}{{{next|}}}|<span id="headernext">{{#if:{{{next|}}}|{{{next}}}→}}</span>}}
|}
|}

Revision as of 03:49, 16 November 2007

Untitled
by [[Author:{{{author}}}|{{{author}}}]]

da:Skabelon:Header fr:Modèle:Titre zh:Template:Header2