MediaWiki:Proofreadpage header template: Difference between revisions
Appearance
Forgottenman (talk | contribs) copy from WS |
Forgottenman (talk | contribs) m switch to fr.ws version |
||
| Line 1: | Line 1: | ||
<includeonly>{{ | <includeonly><div id="headertemplate"> | ||
| | <div class="{{#switch:{{{type}}} | ||
| | | journal = headertemplate-journal | ||
| headertemplate | |||
| | }}"> | ||
| | <div class="headertemplate-author">{{{auteur}}}</div> | ||
<div class="headertemplate-title">{{#switch:{{{type}}} | |||
| | | collection = {{{current|{{PAGENAME}}}}}{{#if:{{{recueil}}}| — ''{{{recueil}}}''}} | ||
| journal = {{{current|{{PAGENAME}}}}} | |||
| {{{titre|{{PAGENAME}}}}}}}</div><div class="headertemplate-reference">{{#if:{{{traducteur|}}}|Traduction {{{traducteur}}}.<br/> | |||
}}{{#switch:{{{type}}} | |||
| collection = ''{{{titre}}}'', {{#if:{{{Éditeur scientifique|}}}|texte établi par {{{Éditeur scientifique}}}, |}}{{#if:{{{Éditeur}}}|{{{Éditeur}}}, |}}{{{année}}}{{#if:{{{from|}}}| (pp. {{{from}}}-{{{to}}})|}}. | |||
| journal = ''{{{titre}}}'', {{{volume}}}, {{{année}}}{{#if:{{{from|}}}| (pp. {{{from}}}-{{{to}}})|}}. | |||
| {{#if:{{{Éditeur}}}|{{{Éditeur}}}, |}}{{{année}}}{{#ifeq:{{{value}}}|Sommaire||{{#if:{{{from|}}}| ({{#if:{{{volume}}}|{{{volume}}}, }}{{#ifeq:{{{from}}}|{{{to}}}|p. {{{from}}})|pp. {{{from}}}-{{{to}}})}}|}}}}. | |||
}} | }} | ||
{{#ifeq:{{{value}}}|toc|{{{ | </div> | ||
</div> | |||
</div> | |||
{{#ifeq:{{{type}}}|journal||{{#ifexpr:{{#if:{{{prev|}}}|1|0}} or {{#if:{{{next|}}}|1|0}}| | |||
<div class="footertemplate" > | |||
<table width="100%" cellpadding="0" cellspacing="0" style="padding-left:0px; padding-right:0px; background-color:transparent"> | |||
<tr> | |||
<td width="33%" style="text-align:left;">{{#if:{{{prev|}}}|<span id="headerprevious"><span style="color:#808080">◄ </span>{{{prev}}}</span> }}</td> | |||
<td width="34%" style="text-align:center;">{{#switch:{{{type}}}|collection=|{{{current|}}}}}</td> | |||
<td width="33%" style="text-align:right;">{{#if:{{{next|}}}|<span id="headernext">{{{next}}}<span style="color:#808080"> ►</span></span> }}</td> | |||
</tr> | |||
</table> | |||
</div> | |||
}}}} | |||
<br/> | |||
{{#ifeq:{{{value}}}|toc|{{{sommaire}}} | |||
|}} | |||
</includeonly><noinclude> | </includeonly><noinclude> | ||
* | *Modèle utilisé pour générer les boîtes titres avec la commande <nowiki><pages/></nowiki>. | ||
* | *Les paramètres acceptés par ce modèle viennent de la page d'index. | ||
* | *Les paramètres peuvent aussi être passés à la commande "pages". | ||
* | *Exemple: | ||
<nowiki><pages index=foo header=1 auteur="[[Balzac]]" /></nowiki> | |||
</noinclude> | </noinclude> | ||
Revision as of 15:11, 15 March 2011
- Modèle utilisé pour générer les boîtes titres avec la commande <pages/>.
- Les paramètres acceptés par ce modèle viennent de la page d'index.
- Les paramètres peuvent aussi être passés à la commande "pages".
- Exemple:
<pages index=foo header=1 auteur="[[Balzac]]" />