Jump to content

Template:Header: Difference between revisions

From IdeaWazaWiki
wikademia>Jayvdb
categorise subpages by NAMESPACE
wikademia>Jayvdb
accept "unknown" as an acceptable author value
Line 9: Line 9:
|-
|-
|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 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>
{{documentation|Template:Header/doc}}
{{documentation|Template:Header/doc}}
</noinclude>
</noinclude>

Revision as of 00:24, 21 November 2008

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