MediaWiki:Proofreadpage header template: Difference between revisions
Appearance
Forgottenman (talk | contribs) m another fix |
Forgottenman (talk | contribs) 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:{{{ | | collection = ''{{{title}}}'', {{#if:{{{editor|}}}|Edited by {{{editor}}}, |}}{{#if:{{{publisher}}}|{{{publisher}}}, |}}{{{year}}}{{#if:{{{from|}}}| (pp. {{{from}}}-{{{to}}})|}}. | ||
| journal = ''{{{title}}}'', {{{ | | journal = ''{{{title}}}'', {{{volume}}}, {{{year}}}{{#if:{{{from|}}}| (pp. {{{from}}}-{{{to}}})|}}. | ||
| {{#if:{{{publisher}}}|{{{publisher}}}, |}}{{{year}}}{{#ifeq:{{{value}}}|Contents||{{#if:{{{from|}}}| ({{#if:{{{ | | {{#if:{{{publisher}}}|{{{publisher}}}, |}}{{{year}}}{{#ifeq:{{{value}}}|Contents||{{#if:{{{from|}}}| ({{#if:{{{volume}}}|{{{volume}}}, }}{{#ifeq:{{{from}}}|{{{to}}}|p. {{{from}}})|pp. {{{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" />