|
|
| Line 1: |
Line 1: |
| <includeonly><!-- | | <includeonly><!-- Merci de laisser le saut de ligne qui suit cette ligne : il sert à l’extension bilingue --> |
|
| |
|
| Make sure no parameters are removed-->{{#switch:undef!
| | <!-- merci. -->{{édition}}<!-- |
| |{{{title|undef!}}}
| | --><div id="headertemplate" style="width:32em;margin:auto"><!-- |
| |{{{author|undef!}}}
| | --><div class="headertemplate" style="border:1px solid #CCCC99;background:#F0F0E0;padding:0.5em;line-height:1.2;text-align:center"><!-- |
| |{{{section|undef!}}}
| | --><div class="headertemplate-title" style="padding:0.5em 0;font-size:125%;font-weight:bold">{{#if:{{{2|}}}|{{{2|}}}|Anonyme}}</div><!-- |
| |{{{previous|undef!}}}
| | --><div class="headertemplate-author" style="padding:0.5em 0;font-size:125%;font-weight:bold">{{#if:{{{1|}}}|{{{1|}}}|{{PAGENAME}}}}</div><!-- |
| |{{{next|undef!}}}
| | -->{{#if:{{{3|}}}|<div class="headertemplate-reference" style="padding:0.5em 0;font-size:110%">{{{3|}}}</div>}}<!-- |
| |{{{notes|undef!}}} = <div style="text-align:center; border:1px solid #CCC; font-size:0.9em;">'''template error: please do not remove empty parameters (see the [[WS:STYLE#Templates|style guide]] and [[Template:Header#documentation|template documentation]]).'''</div> [[Category:Headers missing parameters]]}}</includeonly><!--
| | --></div><!-- |
| | | --></div><!-- |
| | | -->{{#if:{{{nocat|}}}||<!-- |
| Begin header here --><div id="headertemplate">
| | -->{{DEFAULTSORT:{{#if:{{{4|}}}|{{{4}}}|{{PAGENAME}}}}}}<!-- |
| {| class="headertemplate"
| | -->[[Catégorie:Livres]]<!-- |
| |-<!--
| | -->}}<!-- |
| | | --></includeonly><noinclude> |
| Previous page link-->
| | ; Utilisation : |
| |class="gen_header_backlink" | {{#if:{{{previous|}}}|<span id="headerprevious">←{{{previous}}}</span>}}<!--
| | : Modèle pour les titres d’œuvres. |
| | | : Pour savoir dans quel cas utiliser ce modèle, voir : [[Aide:Titre]]. |
| Title-->
| |
| |class="gen_header_title" | '''<span id="header_title_text">{{{title|Untitled}}}</span>''' {{#if:{{{year|}}}| ({{{year}}}) }}<!--
| |
| | |
| Author field
| |
| -->{{#if:{{{override_author|}}}|<!-- | |
| | |
| Override author
| |
| --><br /><i><span id="header_author_text">{{{override_author}}}</span></i>|<!--
| |
|
| |
|
| Normal author
| | ; Syntaxe: |
| -->{{#if:{{{author}}}|<!--
| | :* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}|''titre''|''auteur''|''infos''|''clé''<nowiki>}}</nowiki></tt> |
|
| |
|
| Insert a line break if page is *not* a section page
| | ; Paramètres : |
| -->{{#if:{{{section|}}}| |<br/>}}<!--
| | :* <tt>'''1'''=''titre''</tt> (''optionnel'') : le titre de l’œuvre (si vide, le titre de la page est utilisé). |
| --><i>by <!--
| | :* <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é. |
|
| |
|
| Catch dirty links
| | ; Exemple : |
| -->{{#ifeq:{{#expr:{{{author}}}}}|<strong class="error">Expression error: Unrecognised punctuation character "["</strong>|<!--
| | :* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}|nocat=1<nowiki>}}</nowiki></tt> |
| | :: {{{{BASEPAGENAME}}|nocat=1}}</tt> |
|
| |
|
| Dirty link
| | {{documentation}} |
| -->{{{author}}}</i>|<!--
| |
|
| |
| Catch unknown authors
| |
| -->{{#ifeq:{{lc:{{{override_author|{{{author|}}}}}}}}|unknown|<span id="header_author_text">Unknown</span>|<!--
| |
| | |
| Link clean and known authors to the author namespace
| |
| -->[[{{{author}}}|<span id="header_author_text">{{{author}}}</span>]]}}}}</i>}}}}<!--
| |
| | |
| Translator field - only if needed
| |
| -->{{#if:{{{override_translator|{{{translator|}}}}}}|<!--
| |
| | |
| Catch special cases for translators
| |
| -->{{#switch:{{lc:{{{override_translator|{{{translator|}}}}}}}}<!--
| |
|
| |
| -->| ? = ([[:Category:Deletion requests/Unknown translators|unknown translator]])<!--
| |
| -->| unknown =, ''unknown translator''<!--
| |
| -->| not mentioned =, ''translator not mentioned''<!--
| |
| -->| wikisource =<i>, translated by [[Wikisource:Translations|<span id="header_translator_text">Wikisource</span>]]</i><!--
| |
| | |
| If it is the base page, add to the "Wikisource translation" category
| |
| -->{{#ifeq:{{BASEPAGENAME}}|{{PAGENAME}}|[[Category:Wikisource translations]]}}<!--
| |
| | |
| Switch default - the given translator
| |
| -->|<i>, translated by <!--
| |
| | |
| Catch dirty links
| |
| -->{{{override_translator|<!--
| |
| -->{{#ifeq:{{#expr:{{{translator}}}}}|<!--
| |
| --><strong class="error">Expression error: Unrecognised punctuation character "["</strong>|{{{translator}}}</i>|<!--
| |
| | |
| Dirty link
| |
| -->[[Author:{{{translator}}}|<!--
| |
| | |
| Clean link
| |
| --><span id="header_translator_text">{{{translator}}}</span>]]</i>}}}}}
| |
| }}}}<!--
| |
| | |
| Section field
| |
| -->{{#if:{{{section|}}}|<br /><span id="header_section_text">{{{section|}}}</span>}}<!--
| |
| | |
| Forelink -->
| |
| |class="gen_header_forelink" | {{#if:{{{next|}}}|<span id="headernext">{{{next}}}→</span>}}
| |
| |}<!--
| |
| | |
| | |
| Notes section-->
| |
| {| class="header_notes"
| |
| |-
| |
| |<!--
| |
| | |
| Shortcut link
| |
| -->{{#if:{{{shortcut|}}}|{{shortcut|{{{shortcut}}}}}}}<!--
| |
| | |
| Notes from parameter
| |
| -->{{{notes}}}
| |
| |}</div><includeonly><!--
| |
| | |
| Unknown translator
| |
| -->{{#switch:{{{translator}}}
| |
| |?
| |
| |unknown = {{No translator info}}
| |
| }}<!--
| |
| | |
| Subpages -->{{#ifeq:{{BASEPAGENAME}}|{{PAGENAME}}||{{#switch:1
| |
| |{{#ifexist:{{#rel2abs:../}}|1}}
| |
| |{{#ifexist:{{#rel2abs:../../}}|1}}
| |
| |{{#ifexist:{{#rel2abs:../../../}}|1}} = [[Category:{{#if:{{NAMESPACE}}|{{NAMESPACE}} subpages|Subpages}}]]
| |
| }}}}<!--
| |
| | |
| Track pages using the author override-->{{#if:{{{override_author|}}}|[[Category:Pages with override author]]}}<!--
| |
| | |
| Track pages using the dirty link-detection hacks
| |
| -->{{#switch:<strong class="error">Expression error: Unrecognised punctuation character "["</strong>
| |
| |{{#expr:{{{author}}}}}
| |
| |{{#expr:{{{translator}}}}} = [[Category:Pages using the author field hack]]
| |
| }}<!--
| |
| | |
| Track pages with no author given
| |
| -->{{#ifeq:{{lc:{{{override_author|{{{author|}}}}}}}}|unknown|[[Category:Anonymous texts]]}}<!--
| |
| | |
| Track pages using shortcuts
| |
| -->{{#if:{{{shortcut|}}}|[[Category:Mainspace pages with shortcuts]]}}<!--
| |
| | |
| END OF TEMPLATE
| |
| --></includeonly><noinclude>
| |
| [[Category:Formatting templates]]
| |
| </noinclude> | | </noinclude> |
- Utilisation :
- Modèle pour les titres d’œuvres.
- Pour savoir dans quel cas utiliser ce modèle, voir : Aide:Titre.
- Syntaxe:
-
- {{Header|titre|auteur|infos|clé}}
- Paramètres :
-
- 1=titre (optionnel) : le titre de l’œuvre (si vide, le titre de la page est utilisé).
- 2=auteur (optionnel) : auteur (si vide, « Anonyme » est utilisé).
- 3=infos (optionnel) : ligne supplémentaire (par ex pour l’année, le nom du traducteur, etc.).
- 4=clé (optionnel) : clé de classement dans la Catégorie:Livres (par défaut le titre de la page est utilisé).
- nocat=1 (optionnel) : si non vide, l’autocatégorisation n’aura pas lieu et le paramètre 4 est inutilisé.
- Exemple :
-
Template:Édition
Usage
This template uses named parameters:
{{header
| title =
| author =
| section =
| previous =
| next =
| publisher =
| location =
| year =
| navigation =
}}