Jump to content

MediaWiki:Proofreadpage header template: Difference between revisions

From The Austrian Economics Wiki, the global repository of classical-liberal thought
copy from WS
 
m switch to fr.ws version
Line 1: Line 1:
<includeonly>{{header
<includeonly><div id="headertemplate">
  | title      = {{{title|}}}
<div class="{{#switch:{{{type}}}
  | author    = {{{author|}}}
  | journal = headertemplate-journal
| translator = {{{translator|}}}
| headertemplate
  | section   = {{{current|}}}
}}">
  | previous  = {{{prev|}}}
<div class="headertemplate-author">{{{auteur}}}</div>
| next      = {{{next|}}}
<div class="headertemplate-title">{{#switch:{{{type}}}
  | notes      = {{#if:{{{publisher|}}}|{{#if:{{{address|}}}|{{{address}}}:&nbsp;|}}{{{publisher}}}&nbsp;{{#if:{{{year|}}}|({{{year}}}).&nbsp;|}}}}{{#if:{{{from|}}}|{{#ifeq:{{{from}}}|{{{to}}}|page {{{from}}}|pages {{{from}}}-{{{to}}} }} }}{{{notes|}}}
  | collection = {{{current|{{PAGENAME}}}}}{{#if:{{{recueil}}}|&#32;— ''{{{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}}},&nbsp;|}}{{#if:{{{Éditeur}}}|{{{Éditeur}}},&nbsp;|}}{{{année}}}{{#if:{{{from|}}}|&nbsp;(pp.&nbsp;{{{from}}}-{{{to}}})|}}.
| journal    =  ''{{{titre}}}'', {{{volume}}},&nbsp;{{{année}}}{{#if:{{{from|}}}|&nbsp;(pp.&nbsp;{{{from}}}-{{{to}}})|}}.
|              {{#if:{{{Éditeur}}}|{{{Éditeur}}},&nbsp;|}}{{{année}}}{{#ifeq:{{{value}}}|Sommaire||{{#if:{{{from|}}}|&nbsp;({{#if:{{{volume}}}|{{{volume}}},&nbsp;}}{{#ifeq:{{{from}}}|{{{to}}}|p.&nbsp;{{{from}}})|pp.&nbsp;{{{from}}}-{{{to}}})}}|}}}}.
}}
}}
{{#ifeq:{{{value}}}|toc|{{{remarks}}}|}}
</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">&#x25C4;&nbsp;&nbsp;</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">&nbsp;&nbsp;&#x25BA;</span></span> }}</td>
</tr>
</table>
</div>
}}}}
<br/>
{{#ifeq:{{{value}}}|toc|{{{sommaire}}}  
|}}
</includeonly><noinclude>
</includeonly><noinclude>


*This template generates headers for the <nowiki><pages/></nowiki> command, when it is called with "header=1".
*Modèle utilisé pour générer les boîtes titres avec la commande <nowiki><pages/></nowiki>.
*It takes its parameters from the index page.  
*Les paramètres acceptés par ce modèle viennent de la page d'index.  
*Parameters from the index page can be overridden in the "pages" command.
*Les paramètres peuvent aussi être passés à la commande "pages".
*Example:
*Exemple:  
<nowiki><pages index="foo" header=1 author="bar" /></nowiki>
  <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]]" />