Jump to content

MediaWiki:Proofreadpage header template: Difference between revisions

From The Austrian Economics Wiki, the global repository of classical-liberal thought
copy this piece from en.ws
m change to if
 
(17 intermediate revisions by the same user not shown)
Line 8: Line 8:
  | collection = {{{current|{{PAGENAME}}}}}{{#if:{{{collection}}}| — ''{{{collection}}}''}}
  | collection = {{{current|{{PAGENAME}}}}}{{#if:{{{collection}}}| — ''{{{collection}}}''}}
  | journal    = {{{current|{{PAGENAME}}}}}
  | journal    = {{{current|{{PAGENAME}}}}}
  |              {{{title|{{PAGENAME}}}}}}}</div><div class="headertemplate-reference">{{#if:{{{translator|}}}|Translator {{{translator}}}.<br/>
  |              ''[[{{{title|{{PAGENAME}}}}} (text)|{{{title}}}]]''&#32;{{#if:{{{article|}}} | ([[{{{article}}}|article]]) | ([[{{{title|{{PAGENAME}}}}}|article]]) }}
}}</div><div class="headertemplate-reference">{{#if:{{{translator|}}}|Translator {{{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}}})|}}.
  | journal    =  ''{{{title}}}'', {{{volume}}},&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}}} }} }}{{{notes|}}}
  |              {{#if:{{{publisher|}}}|{{#if:{{{address|}}}|{{{address}}}:&nbsp;|}}{{{publisher}}}&nbsp;{{#if:{{{year|}}}|({{{year}}}),&nbsp;|}}}}{{#if:{{{from|}}}|{{#ifeq:{{{from}}}|{{{to}}}|page {{{from}}}|pages {{{from}}}-{{{to}}} }} }}.
}}
}}
{{#if:{{{navigation|}}}|<div class="headertemplate-notes">'''Navigation''': {{{navigation}}}.</div>|}}
</div>
</div>
</div>
</div>

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" />