MediaWiki:Proofreadpage header template: Difference between revisions
Appearance
Forgottenman (talk | contribs) m switch to fr.ws version |
Forgottenman (talk | contribs) m change to if |
||
| (25 intermediate revisions by the same user not shown) | |||
| Line 4: | Line 4: | ||
| headertemplate | | headertemplate | ||
}}"> | }}"> | ||
<div class="headertemplate-author">{{{ | <div class="headertemplate-author">{{{author}}}</div> | ||
<div class="headertemplate-title">{{#switch:{{{type}}} | <div class="headertemplate-title">{{#switch:{{{type}}} | ||
| collection = {{{current|{{PAGENAME}}}}}{{#if:{{{ | | collection = {{{current|{{PAGENAME}}}}}{{#if:{{{collection}}}| — ''{{{collection}}}''}} | ||
| journal = {{{current|{{PAGENAME}}}}} | | journal = {{{current|{{PAGENAME}}}}} | ||
| {{{ | | ''[[{{{title|{{PAGENAME}}}}} (text)|{{{title}}}]]'' {{#if:{{{article|}}} | ([[{{{article}}}|article]]) | ([[{{{title|{{PAGENAME}}}}}|article]]) }} | ||
}}</div><div class="headertemplate-reference">{{#if:{{{translator|}}}|Translator {{{translator}}}.<br/> | |||
}}{{#switch:{{{type}}} | }}{{#switch:{{{type}}} | ||
| collection = ''{{{ | | collection = ''{{{title}}}'', {{#if:{{{editor|}}}|Edited by {{{editor}}}, |}}{{#if:{{{publisher}}}|{{{publisher}}}, |}}{{{year}}}{{#if:{{{from|}}}| (pp. {{{from}}}-{{{to}}})|}}. | ||
| journal = ''{{{ | | journal = ''{{{title}}}'', {{{volume}}}, {{{year}}}{{#if:{{{from|}}}| (pp. {{{from}}}-{{{to}}})|}}. | ||
| {{#if:{{{ | | {{#if:{{{publisher|}}}|{{#if:{{{address|}}}|{{{address}}}: |}}{{{publisher}}} {{#if:{{{year|}}}|({{{year}}}), |}}}}{{#if:{{{from|}}}|{{#ifeq:{{{from}}}|{{{to}}}|page {{{from}}}|pages {{{from}}}-{{{to}}} }} }}. | ||
}} | }} | ||
{{#if:{{{navigation|}}}|<div class="headertemplate-notes">'''Navigation''': {{{navigation}}}.</div>|}} | |||
</div> | </div> | ||
</div> | </div> | ||
| Line 29: | Line 31: | ||
}}}} | }}}} | ||
<br/> | <br/> | ||
{{#ifeq:{{{value}}}|toc|{{{ | {{#ifeq:{{{value}}}|toc|{{{remarks}}} | ||
|}} | |}} | ||
</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> | ||
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" />