Jump to content

MediaWiki:Proofreadpage header template: Difference between revisions

From The Austrian Economics Wiki, the global repository of classical-liberal thought
m +ifs?
m trying navigation and volumes again...
Line 14: Line 14:
  |              {{#if:{{{publisher|}}}|{{#if:{{{address|}}}|{{{address}}}: |}}{{{publisher}}} {{#if:{{{year|}}}|({{{year}}}), |}}}}{{#if:{{{from|}}}|{{#ifeq:{{{from}}}|{{{to}}}|page {{{from}}}|pages {{{from}}}-{{{to}}} }} }}.
  |              {{#if:{{{publisher|}}}|{{#if:{{{address|}}}|{{{address}}}: |}}{{{publisher}}} {{#if:{{{year|}}}|({{{year}}}), |}}}}{{#if:{{{from|}}}|{{#ifeq:{{{from}}}|{{{to}}}|page {{{from}}}|pages {{{from}}}-{{{to}}} }} }}.
}}
}}
{{#if:{{{navigation|}}}|{{{navigation}}}| }} {{#if:{{{volumes|}}}|{{{volumes}}}| }}
{{{navigation|}}} {{{volumes|}}}
</div>
</div>
</div>
</div>

Revision as of 16:41, 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" />