Jump to content

Template:Header: Difference between revisions

From IdeaWazaWiki
wikademia>Pathoschild
m + span wrappers for JavaScript extraction
wikademia>Academia
m 53 revisions
 
(6 intermediate revisions by 4 users not shown)
Line 5: Line 5:
  |{{{previous|undef!}}}
  |{{{previous|undef!}}}
  |{{{next|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>
  |{{{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:Header#documentation|template documentation]]).'''</div> [[Category:Headers missing parameters]]}}</includeonly>
{| class="headertemplate" id="headertemplate"
{| class="headertemplate" id="headertemplate"
|-
|-
|class="header_backlink" | {{#if:{{{previous|}}}|<span id="headerprevious">←{{{previous}}}</span>}}
|class="header_backlink" | {{#if:{{{previous|}}}|<span id="headerprevious">←{{{previous}}}</span>}}
|class="header_title"    | '''<span id="header_title_text">{{{title|Untitled}}}</span>''' {{#if:{{{override_author|}}}|<br /><i><span id="header_author_text">{{{override_author}}}</span></i>|{{#if:{{{author}}}|{{#if:{{{section|}}}| |<br/>}}<i>by {{#ifeq:{{#expr:{{{author}}}}}|<strong class="error">Expression error: Unrecognised punctuation character "["</strong>|{{{author}}}</i>|[[Author:{{{author}}}|<span id="header_author_text">{{{author}}}</span>]]}}</i>}}}}{{#if:{{{translator|}}}|{{#switch:{{lc:{{{translator|}}}}}
|class="header_title"    | '''<span id="header_title_text">{{{title|Untitled}}}</span>''' {{#if:{{{override_author|}}}|<br /><i><span id="header_author_text">{{{override_author}}}</span></i>|{{#if:{{{author}}}|{{#if:{{{section|}}}| |<br/>}}<i>by {{#ifeq:{{#expr:{{{author}}}}}|<strong class="error">Expression error: Unrecognised punctuation character "["</strong>|{{{author}}}</i>|{{#ifeq:{{lc:{{{override_author|{{{author|}}}}}}}}|unknown|<span id="header_author_text">Unknown</span>|[[Author:{{{author}}}|<span id="header_author_text">{{{author}}}</span>]]}}}}</i>}}}}{{#if:{{{translator|}}}|{{#switch:{{lc:{{{translator|}}}}}
| ? =&nbsp;([[:Category:Deletion requests/Unknown translators|unknown translator]])
| ? =&nbsp;([[:Category:Deletion requests/Unknown translators|unknown translator]])
| unknown =, ''unknown translator''
| unknown =, ''unknown translator''
Line 29: Line 29:
  |{{#ifexist:{{#rel2abs:../}}|1}}
  |{{#ifexist:{{#rel2abs:../}}|1}}
  |{{#ifexist:{{#rel2abs:../../}}|1}}
  |{{#ifexist:{{#rel2abs:../../}}|1}}
  |{{#ifexist:{{#rel2abs:../../../}}|1}} = [[Category:Subpages]]
  |{{#ifexist:{{#rel2abs:../../../}}|1}} = [[Category:{{#if:{{NAMESPACE}}|{{NAMESPACE}} subpages|Subpages}}]]
}}}}<!--
}}}}<!--


Line 37: Line 37:
  |{{#expr:{{{author}}}}}
  |{{#expr:{{{author}}}}}
  |{{#expr:{{{translator}}}}} = [[Category:pages using the author field hack]]
  |{{#expr:{{{translator}}}}} = [[Category:pages using the author field hack]]
}}</includeonly><noinclude>
}}{{#ifeq:{{lc:{{{override_author|{{{author|}}}}}}}}|unknown|[[Category:Anonymous texts]]}}</includeonly><noinclude>
[[Category:Exclude in print]]
{{documentation|Template:Header/doc}}
{{documentation|Template:Header/doc}}
</noinclude>
</noinclude>

Latest revision as of 06:13, 7 March 2009

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