Jump to content

Template:Header: Difference between revisions

From The Austrian Economics Wiki, the global repository of classical-liberal thought
copy from fr.ws
convert from MediaWiki:Proofreadpage header template
Line 1: Line 1:
<includeonly><!-- Merci de laisser le saut de ligne qui suit cette ligne : il sert à l’extension bilingue -->
<includeonly><div id="headertemplate">
<div class="{{#switch:{{{type}}}
| journal = headertemplate-journal
| headertemplate
}}">
<div class="headertemplate-author">{{{author}}}</div>
<div class="headertemplate-title">{{{title}}}</div><div class="headertemplate-reference">{{#if:{{{translator|}}}|Translated by  {{{translator}}}.<br/>
{{#if:{{{publisher|}}}|{{#if:{{{address|}}}|{{{address}}}:&nbsp;|}}{{{publisher}}}&nbsp;{{#if:{{{year|}}}|({{{year}}})|}}}}.
{{#if:{{{navigation|}}}|<div class="headertemplate-notes">'''Navigation''': {{{navigation}}}.</div>|}}
</div>
</div>
</div>
<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:{{{previous|}}}|<span id="headerprevious"><span style="color:#808080">&#x25C4;&nbsp;&nbsp;</span>{{{previous}}}</span> }}</td>
<td width="34%" style="text-align:center;">{{#if:{{{section|}}}|{{{section}}}|}}</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>
}}}}
|}}
</includeonly><noinclude>


<!-- merci. -->{{édition}}<!--
*This template generates headers for the <nowiki><pages/></nowiki> command, when it is called with "header=1".
--><div id="headertemplate" style="width:32em;margin:auto"><!--
*It takes its parameters from the index page.  
  --><div class="headertemplate" style="border:1px solid #CCCC99;background:#F0F0E0;padding:0.5em;line-height:1.2;text-align:center"><!--
*Parameters from the index page can be overridden in the "pages" command.
    --><div class="headertemplate-title" style="padding:0.5em 0;font-size:125%;font-weight:bold">{{#if:{{{2|}}}|{{{2|}}}|Anonyme}}</div><!--
*Example:
    --><div class="headertemplate-author" style="padding:0.5em 0;font-size:125%;font-weight:bold">{{#if:{{{1|}}}|{{{1|}}}|{{PAGENAME}}}}</div><!--
<nowiki><pages index="foo" header=1 author="bar" /></nowiki>
    -->{{#if:{{{3|}}}|<div class="headertemplate-reference" style="padding:0.5em 0;font-size:110%">{{{3|}}}</div>}}<!--
  --></div><!--
--></div><!--
-->{{#if:{{{nocat|}}}||<!--
  -->{{DEFAULTSORT:{{#if:{{{4|}}}|{{{4}}}|{{PAGENAME}}}}}}<!--
  -->[[Catégorie:Livres]]<!--
-->}}<!--
--></includeonly><noinclude>
; Utilisation &#58;
: Modèle pour les titres d’œuvres.
: Pour savoir dans quel cas utiliser ce modèle, voir : [[Aide:Titre]].
 
; Syntaxe&#58;
:* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}|''titre''|''auteur''|''infos''|''clé''<nowiki>}}</nowiki></tt>
 
; Paramètres &#58;
:* <tt>'''1'''=''titre''</tt> (''optionnel'') : le titre de l’œuvre (si vide, le titre de la page est utilisé).
:* <tt>'''2'''=''auteur''</tt> (''optionnel'') : auteur (si vide, « Anonyme » est utilisé).
:* <tt>'''3'''=''infos''</tt> (''optionnel'') : ligne supplémentaire (par ex pour l’année, le nom du traducteur, etc.).
:* <tt>'''4'''=''clé''</tt> (''optionnel'') : clé de classement dans la [[:Catégorie:Livres]] (par défaut le titre de la page est utilisé).
:* <tt>'''nocat'''=1</tt> (''optionnel'') : si non vide, l’autocatégorisation n’aura pas lieu et le paramètre 4 est inutilisé.
 
; Exemple &#58;
:* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}|nocat=1<nowiki>}}</nowiki></tt>
:: {{{{BASEPAGENAME}}|nocat=1}}</tt>
 
{{documentation}}
</noinclude>
</noinclude>

Revision as of 20:41, 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" />