Template:Header: Difference between revisions
Appearance
Forgottenman (talk | contribs) copy from fr.ws |
Forgottenman (talk | contribs) convert from MediaWiki:Proofreadpage header template |
||
| Line 1: | Line 1: | ||
<includeonly>< | <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}}}: |}}{{{publisher}}} {{#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">◄ </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"> ►</span></span> }}</td> | |||
</tr> | |||
</table> | |||
</div> | |||
}}}} | |||
|}} | |||
</includeonly><noinclude> | |||
*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> | |||
</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" />