Jump to content

Template:Header2: Difference between revisions

From IdeaWazaWiki
wikademia>Pathoschild
m typo
wikademia>Pathoschild
simplified back/next link code, + tracking category for dirty link detection hack
Line 8: Line 8:
{| class="headertemplate"
{| class="headertemplate"
|-
|-
|class="header_backlink" | {{#if:{{{previous|}}}{{{next|}}}|<span id="headerprevious" style="line-height:normal">{{#if:{{{previous|}}}|←{{{previous}}}}}</span>}}
|class="header_backlink" | {{#if:{{{previous|}}}|<span id="headerprevious">←{{{previous}}}</span>}}
|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|}}}
|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|}}}
| ? =&nbsp;([[:Category:Deletion requests/Unknown translators|unknown translator]])
| ? =&nbsp;([[:Category:Deletion requests/Unknown translators|unknown translator]])
| wikisource =<i>, translated by [[Wikisource:Translations|Wikisource]]</i>{{#ifeq:{{BASEPAGENAME}}|{{PAGENAME}}|[[Category:Wikisource translations]]}}
| wikisource =<i>, translated by [[Wikisource:Translations|Wikisource]]</i>{{#ifeq:{{BASEPAGENAME}}|{{PAGENAME}}|[[Category:Wikisource translations]]}}
|<i>, translated by {{#ifeq:{{#expr:{{{translator}}}}}|<strong class="error">Expression error: Unrecognised punctuation character "["</strong>|{{{translator}}}</i>|[[Author:{{{translator}}}|{{{translator}}}]]</i>}}
|<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]]}}{{#if:{{{section|}}}|<br />{{{section|}}}}}
}}}}{{#if:{{{override_author|}}}|[[Category:Pages with override author]]}}{{#if:{{{section|}}}|<br />{{{section|}}}}}
|class="header_forelink" | {{#if:{{{previous|}}}{{{next|}}}|<span id="headernext" style="line-height:normal">{{#if:{{{next|}}}|{{{next}}}→}}</span>}}
|class="header_forelink" | {{#if:{{{previous|}}}|<span id="headernext">{{{next}}}→</span>}}
|}
|}
{| class="header_notes"
{| class="header_notes"
Line 28: Line 28:
  |{{#ifexist:{{#rel2abs:../../}}|1}}
  |{{#ifexist:{{#rel2abs:../../}}|1}}
  |{{#ifexist:{{#rel2abs:../../../}}|1}} = [[Category:Subpages]]
  |{{#ifexist:{{#rel2abs:../../../}}|1}} = [[Category:Subpages]]
}}}}</includeonly><noinclude>
}}}}<!--
track pages using the dirty link-detection hacks -->{{#switch:<strong class="error">Expression error: Unrecognised punctuation character "["</strong>
|{{#expr:{{{author}}}}}
|{{#expr:{{{translator}}}}} = [[Category:Author pages using the author field hack]]
}}</includeonly><noinclude>
{{documentation|Template:Header/doc}}
{{documentation|Template:Header/doc}}
</noinclude>
</noinclude>

Revision as of 22:48, 4 April 2008

Untitled
by [[Author:{{{author}}}|{{{author}}}]]
{{{notes}}}
[create] Template documentation