Revision 56293 of "Plantilla:Header" on cawikisource

<includeonly>{{#ifeq:{{{header_type|{{{value}}}}}}|empty||<div id="headertemplate" class="ws-noexport">
<div class="{{#switch:{{{type}}}
 | journal = headertemplate-journal
 | headertemplate
}}">{{#if:{{{autor|}}}|
<div class="headertemplate-author">{{{autor}}}</div>
}}<div class="headertemplate-title">{{#switch:{{{type}}}
 | collection = {{{current|{{BASEPAGENAME}}}}}{{#if:{{{recueil}}}|&#32;— ''{{{recueil}}}''}}
 | journal    = {{#if:{{Est sommaire|{{{value}}}}}|{{{titre}}}|{{{current|{{BASEPAGENAME}}}}}}}
 |              {{{titre|{{BASEPAGENAME}}}}}}}<br />{{#if:{{{publication|}}}|<small>({{{publication}}})</small><br/>
}}</div><div class="headertemplate-reference">{{#if:{{{traducteur|}}}|Traduction par {{{traducteur}}}.<br/>
}}{{#if:{{{illustrateur|}}}|Illustrations par {{{illustrateur}}}.<br/>
}}{{#if:{{Est sommaire|{{{value}}}}}|{{#if:{{{volume}}}|{{{volume}}}<br/>|}}|}}{{#switch:{{{type}}}
 | collection = ''{{{titre}}}'', {{#if:{{{editeur_scientifique|}}}|Texte établi par {{{editeur_scientifique}}},&nbsp;|}}{{#if:{{{editeur|}}}|{{{editeur}}},&nbsp;|}}{{{annee}}}{{#if:{{Est sommaire|{{{value}}}}}||{{#if:{{{volume}}}|, {{{volume}}}}}{{#if:{{{from|}}}|{{#ifeq:{{{from}}}|{{{to}}}|&nbsp;(p.&nbsp;{{{from}}})|&nbsp;(pp.&nbsp;{{{from}}}-{{{to}}})}}|}}}}.
 | journal    =  {{#if:{{Est sommaire|{{{value}}}}}|{{{annee}}}|''{{{titre}}}'', {{#if:{{{volume}}}|{{{volume}}},&nbsp;}}{{{annee}}}{{#if:{{{from|}}}|&nbsp;(pp.&nbsp;{{{from}}}-{{{to}}})|}}}}.
 |               {{#if:{{{editeur_scientifique|}}}|Texte établi par {{{editeur_scientifique}}},&nbsp;|}} {{#if:{{{editeur|}}}|{{{editeur}}},&nbsp;|}}{{{annee}}}{{#if:{{Est sommaire|{{{value}}}}}||{{#if:{{{from|}}}|&nbsp;({{#if:{{{volume}}}|{{{volume}}},&nbsp;}}{{#ifeq:{{{from}}}|{{{to}}}|p.&nbsp;{{{from}}})|pp.&nbsp;{{{from}}}-{{{to}}})}}|}}}}.
}}
</div>
</div>
</div>
<div id="subheader" class="ws-noexport" style="margin-bottom:1.5em">
{{#if:{{Est sommaire|{{{value}}}}}|
   {{#ifexist:{{PAGENAME}}/Texte entier|
      <div style="text-align:center;">[[{{PAGENAME}}/Texte entier{{!}}Texte sur une seule page]]</div>
   }}}}
{{#ifexpr:{{#if:{{{prev|}}}|1|0}} or {{#if:{{{next|}}}|1|0}}|
<div class="footertemplate ws-noexport">
<div style="width: 100%; padding-left:0px; padding-right:0px; background-color:transparent;" class="ws-noexport">
{{#if:{{{prev|}}}|<div style="text-align:left; float:left; {{#if:{{{current|}}}|max-width:33%;|max-width:50%;}}"><span id="headerprevious"><span style="color:#808080">&#x25C4;&nbsp;&nbsp;</span>{{{prev|}}}</span></div>}}
{{#if:{{{next|}}}|<div style="text-align:right; float:right; {{#if:{{{current|}}}|max-width:33%;|max-width:50%;}}"><span id="headernext">{{{next|}}}<span style="color:#808080">&nbsp;&nbsp;&#x25BA;</span></span></div>}}
<div style="text-align:center; margin-left: 25%; margin-right: 25%;">{{#switch:{{{type}}}|collection=|{{{current|}}}}}</div>
</div><div style="clear:both;"></div>
</div>}}</div>}}<!-- LF Ici nécessaire pour l’épigraphe -->
{{#ifeq:{{{value}}}|toc|
   {{#if:{{{epigraphe|}}}|
      {{{epigraphe}}}
   }} <div id="ws-summary" style="margin-top:1em">
{{{sommaire}}}</div>
}}
<div id="ws-data" class="ws-noexport" style="display:none; speak:none;">
{{#if:{{{type|}}}|<span id="ws-type">{{{type}}}</span>|}}
<span id="ws-title">{{#switch:{{{type}}}
 | collection = {{{current|{{BASEPAGENAME}}}}}{{#if:{{{recueil}}}|&#32;— ''{{{recueil}}}''}}
 | journal    = {{#if:{{Est sommaire|{{{value}}}}}|{{{titre}}}|{{{current|{{BASEPAGENAME}}}}}}}
 |              {{{titre|{{BASEPAGENAME}} }}}
}}</span>
{{#if:{{{autor|}}}|<span id="ws-author">{{{autor}}}</span>|}}
{{#if:{{{traducteur|}}}|<span id="ws-translator">{{{traducteur}}}</span>|}}
{{#if:{{{illustrateur|}}}|<span id="ws-illustrator">{{{illustrateur}}}</span>|}}
{{#if:{{{school|}}}|<span id="ws-school">{{{school}}}</span>|}}
{{#if:{{{editeur|}}}|<span id="ws-publisher">{{{editeur}}}</span>|}}
{{#if:{{{lieu|}}}|<span id="ws-place">{{{lieu}}}</span>|}}
{{#if:{{{annee|}}}|<span id="ws-year">{{{annee}}}</span>|}}
{{#if:{{{clef|}}}|<span id="ws-key">{{{clef}}}</span>|}}
{{#if:{{{avancement|}}}|<span id="ws-progress">{{{avancement}}}</span>|}}
{{#if:{{{volume|}}}|<span id="ws-volume">{{{volume}}}</span>|}}
{{#if:{{{current|}}}|<span id="ws-chapter">{{{current}}}</span>|}}
{{#if:{{{index|}}}|<span id="ws-scan">{{{index}}}</span>|}}
{{#if:{{{image|}}}|<span id="ws-cover">{{{index}}}/{{{image}}}</span>|}}
{{#if:{{{from|}}}|<span id="ws-pages">{{#ifeq:{{{from}}}|{{{to}}}|{{{from}}}|{{{from}}}-{{{to}}}}}</span>|}}
</div>{{#ifeq: {{{value}}} | Sommaire | <div id="ws-summary"> |}}{{#switch:{{{type}}}
 | journal    = {{Classement|{{PAGENAME}}}}
 | dictionary = {{Classement}}
 | {{#if:{{#titleparts: {{PAGENAME}} | -1 }}||{{Classement|{{PAGENAME}}}}}}
}}</includeonly><noinclude>
{{Esborrany|En fase de proves. No fer servir encara.}}{{Ús de la plantilla}}
</noinclude>