Jump to content

MediaWiki:Proofreadpage header template: Difference between revisions

From The Austrian Economics Wiki, the global repository of classical-liberal thought
m another fix
m more fixes
Line 10: Line 10:
  |              {{{header|{{PAGENAME}}}}}}}</div><div class="headertemplate-reference">{{#if:{{{translator|}}}|Translator {{{translator}}}.<br/>
  |              {{{header|{{PAGENAME}}}}}}}</div><div class="headertemplate-reference">{{#if:{{{translator|}}}|Translator {{{translator}}}.<br/>
}}{{#switch:{{{type}}}
}}{{#switch:{{{type}}}
  | collection = ''{{{title}}}'', {{#if:{{{Éditeur scientifique|}}}|texte établi par {{{Éditeur scientifique}}},&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}}})|}}.
  | journal    =  ''{{{title}}}'', {{{volumes}}},&nbsp;{{{year}}}{{#if:{{{from|}}}|&nbsp;(pp.&nbsp;{{{from}}}-{{{to}}})|}}.
  | journal    =  ''{{{title}}}'', {{{volume}}},&nbsp;{{{year}}}{{#if:{{{from|}}}|&nbsp;(pp.&nbsp;{{{from}}}-{{{to}}})|}}.
  |              {{#if:{{{publisher}}}|{{{publisher}}},&nbsp;|}}{{{year}}}{{#ifeq:{{{value}}}|Contents||{{#if:{{{from|}}}|&nbsp;({{#if:{{{volumes}}}|{{{volumes}}},&nbsp;}}{{#ifeq:{{{from}}}|{{{to}}}|p.&nbsp;{{{from}}})|pp.&nbsp;{{{from}}}-{{{to}}})}}|}}}}.
  |              {{#if:{{{publisher}}}|{{{publisher}}},&nbsp;|}}{{{year}}}{{#ifeq:{{{value}}}|Contents||{{#if:{{{from|}}}|&nbsp;({{#if:{{{volume}}}|{{{volume}}},&nbsp;}}{{#ifeq:{{{from}}}|{{{to}}}|p.&nbsp;{{{from}}})|pp.&nbsp;{{{from}}}-{{{to}}})}}|}}}}.
}}
}}
</div>
</div>

Revision as of 15:39, 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" />