Template:Header2: Difference between revisions
Appearance
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 | |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|}}} | ||
| ? = ([[:Category:Deletion requests/Unknown translators|unknown translator]]) | | ? = ([[: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>}} | ||
}}}}{{# | }}}}{{#if:{{{override_author|}}}|[[Category:Pages with override author]]}}{{#if:{{{section|}}}|<br />{{{section|}}}}} | ||
|class="header_forelink" | {{#if:{{{previous | |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> | ||