Jump to content

MediaWiki:Proofreadpage header template: Difference between revisions

From The Austrian Economics Wiki, the global repository of classical-liberal thought
m switch to fr.ws version
m change to if
 
(25 intermediate revisions by the same user not shown)
Line 4: Line 4:
  | headertemplate
  | headertemplate
}}">
}}">
<div class="headertemplate-author">{{{auteur}}}</div>
<div class="headertemplate-author">{{{author}}}</div>
<div class="headertemplate-title">{{#switch:{{{type}}}
<div class="headertemplate-title">{{#switch:{{{type}}}
  | collection = {{{current|{{PAGENAME}}}}}{{#if:{{{recueil}}}|&#32;— ''{{{recueil}}}''}}
  | collection = {{{current|{{PAGENAME}}}}}{{#if:{{{collection}}}|&#32;— ''{{{collection}}}''}}
  | journal    = {{{current|{{PAGENAME}}}}}
  | journal    = {{{current|{{PAGENAME}}}}}
  |              {{{titre|{{PAGENAME}}}}}}}</div><div class="headertemplate-reference">{{#if:{{{traducteur|}}}|Traduction {{{traducteur}}}.<br/>
  |              ''[[{{{title|{{PAGENAME}}}}} (text)|{{{title}}}]]''&#32;{{#if:{{{article|}}} | ([[{{{article}}}|article]]) | ([[{{{title|{{PAGENAME}}}}}|article]]) }}
}}</div><div class="headertemplate-reference">{{#if:{{{translator|}}}|Translator {{{translator}}}.<br/>
}}{{#switch:{{{type}}}
}}{{#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}}})|}}.
  | collection = ''{{{title}}}'', {{#if:{{{editor|}}}|Edited by {{{editor}}},&nbsp;|}}{{#if:{{{publisher}}}|{{{publisher}}},&nbsp;|}}{{{year}}}{{#if:{{{from|}}}|&nbsp;(pp.&nbsp;{{{from}}}-{{{to}}})|}}.
  | journal    =  ''{{{titre}}}'', {{{volume}}},&nbsp;{{{année}}}{{#if:{{{from|}}}|&nbsp;(pp.&nbsp;{{{from}}}-{{{to}}})|}}.
  | journal    =  ''{{{title}}}'', {{{volume}}},&nbsp;{{{year}}}{{#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}}})}}|}}}}.
  |              {{#if:{{{publisher|}}}|{{#if:{{{address|}}}|{{{address}}}:&nbsp;|}}{{{publisher}}}&nbsp;{{#if:{{{year|}}}|({{{year}}}),&nbsp;|}}}}{{#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|{{{sommaire}}}  
{{#ifeq:{{{value}}}|toc|{{{remarks}}}  
|}}
|}}
</includeonly><noinclude>
</includeonly><noinclude>


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