Jump to content

Template:Header2: Difference between revisions

From IdeaWazaWiki
wikademia>Jayvdb
m update [ detection
wikademia>Jayvdb
detect "author" starting with "[" - allow it to pass through unaltered
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;({{#switch:{{{translator|}}}
|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|}}}|&nbsp;({{#switch:{{{translator|}}}
| ? =[[:Category:Deletion requests/Unknown translators|unknown translator]]
| ? =[[:Category:Deletion requests/Unknown translators|unknown translator]]
| wikisource =translated&nbsp;by&nbsp;[[Wikisource:Translations|Wikisource]]{{#ifeq:{{BASEPAGENAME}}|{{PAGENAME}}|[[Category:Wikisource translations]]}}
| wikisource =translated&nbsp;by&nbsp;[[Wikisource:Translations|Wikisource]]{{#ifeq:{{BASEPAGENAME}}|{{PAGENAME}}|[[Category:Wikisource translations]]}}

Revision as of 08:46, 30 November 2007

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

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