مدیاویکی:Proofreadpage header template: تفاوت میان نسخه‌ها

محتوای حذف‌شده محتوای افزوده‌شده
Reza1615 (بحث | مشارکت‌ها)
صفحه‌ای جدید حاوی '<includeonly>{{header | title = {{{title|}}} | author = {{{author|}}} | translator = {{{translator|}}} | section = {{{current|}}...' ایجاد کرد
 
Reza1615 (بحث | مشارکت‌ها)
بدون خلاصۀ ویرایش
 
خط ۱:
<includeonly>{{#ifeq:{{{header_type|{{{value}}}}}}|empty||<div id="headertemplate" class="ws-noexport">
<includeonly>{{header
<div class="{{#switch:{{{type}}}
| title = {{{title|}}}
| journal = headertemplate-journal
| author = {{{author|}}}
| headertemplate
| translator = {{{translator|}}}
}}">
| section = {{{current|}}}
<div class="headertemplate-author">{{{author}}}</div>
| previous = {{{prev|}}}
<div class="headertemplate-title">{{#switch:{{{type}}}
| next = {{{next|}}}
| collection = {{{current|{{BASEPAGENAME}}}}}{{#if:{{{recueil}}}|&#32;— ''{{{recueil}}}''}}
| year = {{{year|}}}
| journal = {{#if:{{Est sommaire|{{{value}}}}}|{{{titre}}}|{{{current|{{BASEPAGENAME}}}}}}}
| notes = {{#if:{{{publisher|}}}|{{#if:{{{address|}}}|{{{address}}}:&nbsp;|}}{{{publisher}}}&nbsp;{{#if:{{{yeardate|}}}|({{{yeardate}}}).&nbsp;|}}}}{{#if:{{{from|}}}|{{#ifeq:{{{from}}}|{{{to}}}|page {{{from}}}|pages {{{from}}}-{{{to}}} }} }}{{{notes|}}}
| {{{titre|{{BASEPAGENAME}}}}}}}</div><div class="headertemplate-reference">{{#if:{{{translator|}}}|Traduction par {{{translator}}}.<br/>
}}{{#if:{{Est sommaire|{{{value}}}}}|{{#if:{{{volume}}}|{{{volume}}}<br/>|}}|}}{{#switch:{{{type}}}
| collection = ''{{{titre}}}'', {{#if:{{{publisher_scientifique|}}}|Texte établi par {{{publisher_scientifique}}},&nbsp;|}}{{#if:{{{publisher|}}}|{{{publisher}}},&nbsp;|}}{{{year}}}{{#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}}}}}|{{{year}}}|''{{{titre}}}'', {{{volume}}},&nbsp;{{{year}}}{{#if:{{{from|}}}|&nbsp;(pp.&nbsp;{{{from}}}-{{{to}}})|}}}}.
| notes = {{#if:{{{publisherpublisher_scientifique|}}}|Texte établi par {{{publisher_scientifique}}},&nbsp;|}} {{#if:{{{addresspublisher|}}}|{{{addresspublisher}}}:,&nbsp;|}}{{{publisheryear}}}&nbsp;{{#if:{{{yeardateEst sommaire|{{{value}}}}}|(|{{#if:{yeardate{{from|}}}).|&nbsp;|}}}}({{#if:{{{from|volume}}}|{{{volume}}},&nbsp;}}{{#ifeq:{{{from}}}|{{{to}}}|page p.&nbsp;{{{from}}})|pages pp.&nbsp;{{{from}}}-{{{to}}} )}} |}}{{{notes|}}}.
}}
</div>
{{#ifeq:{{{value}}}|toc|{{{remarks}}}|}}
</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">
<table width="100%" cellpadding="0" cellspacing="0" style="padding-left:0px; padding-right:0px; background-color:transparent" class="ws-noexport">
<tr>
<td width="33%" style="text-align:left;">{{#if:{{{prev|}}}|<span id="headerprevious"><span style="color:#808080">&#x25C4;&nbsp;&nbsp;</span>{{{prev}}}</span> }}</td>
<td width="34%" style="text-align:center;">{{#switch:{{{type}}}|collection=|{{{current|}}}}}</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>}}}}</div>}}
{{#ifeq:{{{value}}}|toc|{{{remarks}}}|}}
{{#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}}}}}|{{{title}}}|{{{current|{{BASEPAGENAME}}}}}}}
| title = {{{title|{{BASEPAGENAME}} }}}
}}</span>
{{#if:{{{author|}}}|<span id="ws-author">{{{author}}}</span>|}}
{{#if:{{{translator|}}}|<span id="ws-translator">{{{translator}}}</span>|}}
{{#if:{{{illustrator|}}}|<span id="ws-illustrator">{{{illustrator}}}</span>|}}
{{#if:{{{school|}}}|<span id="ws-school">{{{school}}}</span>|}}
{{#if:{{{publisher|}}}|<span id="ws-publisher">{{{publisher}}}</span>|}}
{{#if:{{{place|}}}|<span id="ws-place">{{{place}}}</span>|}}
{{#if:{{{year|}}}|<span id="ws-year">{{{year}}}</span>|}}
{{#if:{{{key|}}}|<span id="ws-key">{{{key}}}</span>|}}
{{#if:{{{progress|}}}|<span id="ws-progress">{{{progress}}}</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>
</includeonly><noinclude>
{{Documentation}}
 
*This template generates headers for the <nowiki><pages/></nowiki> 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:
<nowiki><pages index="foo" header=1 author="bar" /></nowiki>
 
[[fr:MediaWiki:Proofreadpage header template]]
</noinclude>