MediaWiki:Proofreadpage header template: Difference between revisions
Appearance
Forgottenman (talk | contribs) m fix example |
Forgottenman (talk | contribs) more english 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}}}, |}}{{#if:{{{ | | collection = ''{{{title}}}'', {{#if:{{{Éditeur scientifique|}}}|texte établi par {{{Éditeur scientifique}}}, |}}{{#if:{{{publisher}}}|{{{publisher}}}, |}}{{{year}}}{{#if:{{{from|}}}| (pp. {{{from}}}-{{{to}}})|}}. | ||
| journal = ''{{{title}}}'', {{{volume}}}, {{{year}}}{{#if:{{{from|}}}| (pp. {{{from}}}-{{{to}}})|}}. | | journal = ''{{{title}}}'', {{{volume}}}, {{{year}}}{{#if:{{{from|}}}| (pp. {{{from}}}-{{{to}}})|}}. | ||
| {{#if:{{{editor}}}|{{{editor}}}, |}}{{{year}}}{{#ifeq:{{{value}}}|Contents||{{#if:{{{from|}}}| ({{#if:{{{ | | {{#if:{{{editor}}}|{{{editor}}}, |}}{{{year}}}{{#ifeq:{{{value}}}|Contents||{{#if:{{{from|}}}| ({{#if:{{{volumes}}}|{{{volumes}}}, }}{{#ifeq:{{{from}}}|{{{to}}}|p. {{{from}}})|pp. {{{from}}}-{{{to}}})}}|}}}}. | ||
}} | }} | ||
</div> | </div> | ||
| Line 33: | Line 33: | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
* | *This template generates headers for the <nowiki><pages/></nowiki> 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: | ||
<nowiki><pages index="foo" header=1 author="bar" /></nowiki> | |||
</noinclude> | </noinclude> | ||
Revision as of 15:26, 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" />