Jump to content

MediaWiki:Proofreadpage header template: Difference between revisions

From The Austrian Economics Wiki, the global repository of classical-liberal thought
copy from WS
 
m change to if
 
(26 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{header
<includeonly><div id="headertemplate">
  | title      = {{{title|}}}
<div class="{{#switch:{{{type}}}
  | author    = {{{author|}}}
| journal = headertemplate-journal
  | translator = {{{translator|}}}
  | headertemplate
  | section    = {{{current|}}}
}}">
  | previous  = {{{prev|}}}
<div class="headertemplate-author">{{{author}}}</div>
  | next      = {{{next|}}}
<div class="headertemplate-title">{{#switch:{{{type}}}
  | notes      = {{#if:{{{publisher|}}}|{{#if:{{{address|}}}|{{{address}}}:&nbsp;|}}{{{publisher}}}&nbsp;{{#if:{{{year|}}}|({{{year}}}).&nbsp;|}}}}{{#if:{{{from|}}}|{{#ifeq:{{{from}}}|{{{to}}}|page {{{from}}}|pages {{{from}}}-{{{to}}} }} }}{{{notes|}}}
  | collection = {{{current|{{PAGENAME}}}}}{{#if:{{{collection}}}|&#32;— ''{{{collection}}}''}}
  | journal    = {{{current|{{PAGENAME}}}}}
  |             ''[[{{{title|{{PAGENAME}}}}} (text)|{{{title}}}]]''&#32;{{#if:{{{article|}}} | ([[{{{article}}}|article]]) | ([[{{{title|{{PAGENAME}}}}}|article]]) }}
}}</div><div class="headertemplate-reference">{{#if:{{{translator|}}}|Translator {{{translator}}}.<br/>
}}{{#switch:{{{type}}}
  | collection = ''{{{title}}}'', {{#if:{{{editor|}}}|Edited by {{{editor}}},&nbsp;|}}{{#if:{{{publisher}}}|{{{publisher}}},&nbsp;|}}{{{year}}}{{#if:{{{from|}}}|&nbsp;(pp.&nbsp;{{{from}}}-{{{to}}})|}}.
  | journal    = ''{{{title}}}'', {{{volume}}},&nbsp;{{{year}}}{{#if:{{{from|}}}|&nbsp;(pp.&nbsp;{{{from}}}-{{{to}}})|}}.
  |               {{#if:{{{publisher|}}}|{{#if:{{{address|}}}|{{{address}}}:&nbsp;|}}{{{publisher}}}&nbsp;{{#if:{{{year|}}}|({{{year}}}),&nbsp;|}}}}{{#if:{{{from|}}}|{{#ifeq:{{{from}}}|{{{to}}}|page {{{from}}}|pages {{{from}}}-{{{to}}} }} }}.
}}
}}
{{#ifeq:{{{value}}}|toc|{{{remarks}}}|}}
{{#if:{{{navigation|}}}|<div class="headertemplate-notes">'''Navigation''': {{{navigation}}}.</div>|}}
</div>
</div>
</div>
{{#ifeq:{{{type}}}|journal||{{#ifexpr:{{#if:{{{prev|}}}|1|0}} or {{#if:{{{next|}}}|1|0}}|
<div class="footertemplate" >
<table width="100%" cellpadding="0" cellspacing="0" style="padding-left:0px; padding-right:0px; background-color:transparent">
<tr>
<td width="33%" style="text-align:left;">{{#if:{{{prev|}}}|<span id="headerprevious"><span style="color:#808080">&#x25C4;&nbsp;&nbsp;</span>{{{prev}}}</span> }}</td>
<td width="34%" style="text-align:center;">{{#switch:{{{type}}}|collection=|{{{current|}}}}}</td>
<td width="33%" style="text-align:right;">{{#if:{{{next|}}}|<span id="headernext">{{{next}}}<span style="color:#808080">&nbsp;&nbsp;&#x25BA;</span></span> }}</td>
</tr>
</table>
</div>
}}}}
<br/>
{{#ifeq:{{{value}}}|toc|{{{remarks}}}  
|}}
</includeonly><noinclude>
</includeonly><noinclude>



Latest revision as of 20:32, 15 March 2011


  • This template generates headers for the <pages/> command, when it is called with "header=1".
  • It takes its parameters from the index page.
  • Parameters from the index page can be overridden in the "pages" command.
  • Example:
<pages index="foo" header=1 author="bar" />