Jump to content

MediaWiki:Proofreadpage header template: Difference between revisions

From The Austrian Economics Wiki, the global repository of classical-liberal thought
m fix example
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}}},&nbsp;|}}{{#if:{{{editor}}}|{{{editor}}},&nbsp;|}}{{{year}}}{{#if:{{{from|}}}|&nbsp;(pp.&nbsp;{{{from}}}-{{{to}}})|}}.
  | collection = ''{{{title}}}'', {{#if:{{{Éditeur scientifique|}}}|texte établi par {{{Éditeur scientifique}}},&nbsp;|}}{{#if:{{{publisher}}}|{{{publisher}}},&nbsp;|}}{{{year}}}{{#if:{{{from|}}}|&nbsp;(pp.&nbsp;{{{from}}}-{{{to}}})|}}.
  | journal    =  ''{{{title}}}'', {{{volume}}},&nbsp;{{{year}}}{{#if:{{{from|}}}|&nbsp;(pp.&nbsp;{{{from}}}-{{{to}}})|}}.
  | journal    =  ''{{{title}}}'', {{{volume}}},&nbsp;{{{year}}}{{#if:{{{from|}}}|&nbsp;(pp.&nbsp;{{{from}}}-{{{to}}})|}}.
  |              {{#if:{{{editor}}}|{{{editor}}},&nbsp;|}}{{{year}}}{{#ifeq:{{{value}}}|Contents||{{#if:{{{from|}}}|&nbsp;({{#if:{{{volume}}}|{{{volume}}},&nbsp;}}{{#ifeq:{{{from}}}|{{{to}}}|p.&nbsp;{{{from}}})|pp.&nbsp;{{{from}}}-{{{to}}})}}|}}}}.
  |              {{#if:{{{editor}}}|{{{editor}}},&nbsp;|}}{{{year}}}{{#ifeq:{{{value}}}|Contents||{{#if:{{{from|}}}|&nbsp;({{#if:{{{volumes}}}|{{{volumes}}},&nbsp;}}{{#ifeq:{{{from}}}|{{{to}}}|p.&nbsp;{{{from}}})|pp.&nbsp;{{{from}}}-{{{to}}})}}|}}}}.
}}
}}
</div>
</div>
Line 33: Line 33:
</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 author="[[Balzac]]" /></nowiki>
<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" />