Jump to content

Template:Header2: Difference between revisions

From IdeaWazaWiki
wikademia>Pathoschild
rewrote subpage detection (handle cases where the direct parent doesn't exist), removed tracking category (no longer needed)
wikademia>Academia
m 74 revisions
 
(8 intermediate revisions by one other user not shown)
Line 1: Line 1:
<!-- make sure no parameters are removed --><includeonly>{{#switch:undef!
#redirect [[Template:Header]]
|{{{title|undef!}}}
|{{{author|undef!}}}
|{{{section|undef!}}}
|{{{previous|undef!}}}
|{{{next|undef!}}}
|{{{notes|undef!}}} = <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>
{| class="headertemplate"
|-
|class="header_backlink" | {{#if:{{{previous|}}}{{{next|}}}|<span id="headerprevious" style="line-height:normal">{{#if:{{{previous|}}}|←{{{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|}}}
| ? =&nbsp;([[:Category:Deletion requests/Unknown translators|unknown translator]])
| 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>}}
}}}}{{#ifeq:{{{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_notes"
|-
| {{{notes}}}
|}<includeonly>{{#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}}}}{{#ifeq:{{BASEPAGENAME}}|{{PAGENAME}}||{{#switch:1
|{{#ifexist:{{#rel2abs:../}}|1}}
|{{#ifexist:{{#rel2abs:../../}}|1}}
|{{#ifexist:{{#rel2abs:../../../}}|1}} = [[Category:Subpages]]
}}}}</includeonly><noinclude>
{{documentation|Template:Header/doc}}
</noinclude>

Latest revision as of 06:13, 7 March 2009

Redirect to: