Jump to content

Template:Header: Difference between revisions

From The Austrian Economics Wiki, the global repository of classical-liberal thought
convert from MediaWiki:Proofreadpage header template
+documentation
Line 6: Line 6:
<div class="headertemplate-author">{{{author}}}</div>
<div class="headertemplate-author">{{{author}}}</div>
<div class="headertemplate-title">{{{title}}}</div><div class="headertemplate-reference">{{#if:{{{translator|}}}|Translated by  {{{translator}}}.<br/>
<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:{{{publisher|}}}|{{#if:{{{location|}}}|{{{location}}}:&nbsp;|}}{{{publisher}}}&nbsp;{{#if:{{{year|}}}|({{{year}}})|}}}}.
{{#if:{{{navigation|}}}|<div class="headertemplate-notes">'''Navigation''': {{{navigation}}}.</div>|}}
{{#if:{{{navigation|}}}|<div class="headertemplate-notes">'''Navigation''': {{{navigation}}}.</div>|}}
</div>
</div>
Line 23: Line 23:
|}}
|}}
</includeonly><noinclude>
</includeonly><noinclude>
This template uses named parameters:


*This template generates headers for the <nowiki><pages/></nowiki> command, when it is called with "header=1".
<pre>
*It takes its parameters from the index page.
{{header
*Parameters from the index page can be overridden in the "pages" command.
| title      =
*Example:
| author    =
  <nowiki><pages index="foo" header=1 author="bar" /></nowiki>
| section    =
| previous  =
| next      =
| publisher =
| location  =
| year      =
| navigation =
}}
</pre>
</noinclude>
</noinclude>

Revision as of 20:43, 15 March 2011

This template uses named parameters:

{{header
| title      =
| author     =
| section    =
| previous   =
| next       =
| publisher  =
| location   =
| year       =
| navigation =
}}