Jump to content

MediaWiki:Proofreadpage header template: Difference between revisions

From The Austrian Economics Wiki, the global repository of classical-liberal thought
m back to just linked title?
m spaces?
Line 6: Line 6:
<div class="headertemplate-author">{{{author}}}</div>
<div class="headertemplate-author">{{{author}}}</div>
<div class="headertemplate-title">{{#switch:{{{type}}}
<div class="headertemplate-title">{{#switch:{{{type}}}
| collection = {{{current|{{PAGENAME}}}}}{{#if:{{{collection}}}|&#32;— ''{{{collection}}}''}}
| collection = {{{current|{{PAGENAME}}}}}{{#if:{{{collection}}}|&#32;— ''{{{collection}}}''}}
| journal    = {{{current|{{PAGENAME}}}}}
| journal    = {{{current|{{PAGENAME}}}}}
|              [[{{{title|{{PAGENAME}}}}}]]</div><div class="headertemplate-reference">{{#if:{{{translator|}}}|Translated by {{{translator}}}.<br/>
|              [[{{{title|{{PAGENAME}}}}}]]</div><div class="headertemplate-reference">{{#if:{{{translator|}}}|Translated by {{{translator}}}.<br/>
}}{{#switch:{{{type}}}
}}{{#switch:{{{type}}}
  | collection = ''{{{title}}}'', {{#if:{{{editor|}}}|Edited by {{{editor}}},&nbsp;|}}{{#if:{{{publisher}}}|{{{publisher}}},&nbsp;|}}{{{year}}}{{#if:{{{from|}}}|&nbsp;(pp.&nbsp;{{{from}}}-{{{to}}})|}}.
  | collection = ''{{{title}}}'', {{#if:{{{editor|}}}|Edited by {{{editor}}},&nbsp;|}}{{#if:{{{publisher}}}|{{{publisher}}},&nbsp;|}}{{{year}}}{{#if:{{{from|}}}|&nbsp;(pp.&nbsp;{{{from}}}-{{{to}}})|}}.

Revision as of 17:56, 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" />