This is an archive copy of wikilivres.ca as of 18 February 2017 (from the WikiTeam dump). The original site is closed.

Template:Header: Difference between revisions

Free texts and images.
Jump to navigation Jump to search
imported>Yann
{{#if:{{{override_translator|}}}|, ''{{int:translated by}} {{{override_translator}}}''|{{#if:{{{translator|}}}|, ''{{int:translated by}} [[{{{translator|}}}]]''|}}}}
imported>Marc
No edit summary
Line 1: Line 1:
{| style="width:100%; margin-bottom:5px; border: 1px solid #ADA; background-color: #E4F2E4; text-align:center; font-size:0.9em;"
{| style="width:100%; margin-bottom:5px; border: 1px solid #ADA; background-color: #E4F2E4; text-align:center; font-size:0.9em;"
|-
|-
| style="width:20%; text-align:left; font-size:0.9em;" | {{{previous|}}}
| style="width:20%; text-align:left; font-size:0.9em;" | {{#if:{{{prev|}}}|<span style="color:#808080">&#x25C4;&nbsp;&nbsp;</span>{{{prev}}}
| style="width:60%;" | '''{{{title|NO TITLE}}}''' {{#if:{{{section|}}}| ~ '''{{{section|}}}'''}} {{{noauthor|<br />''{{int:written by}} {{{override_author|[[{{{author|unknown}}}|{{{author|unknown}}}]]}}}''}}}{{#if:{{{year|}}}|<span style="color:#999999"> {{{year}}}</span>}}{{#if:{{{override_translator|}}}|, ''{{int:translated by}} {{{override_translator}}}''|{{#if:{{{translator|}}}|, ''{{int:translated by}} [[{{{translator|}}}]]''|}}}}
| style="width:60%;" | '''{{{title|NO TITLE}}}''' {{#if:{{{section|}}}| ~ '''{{{section|}}}'''}} {{{noauthor|<br />''{{int:written by}} {{{override_author|[[{{{author|unknown}}}|{{{author|unknown}}}]]}}}''}}}{{#if:{{{year|}}}|<span style="color:#999999"> {{{year}}}</span>}}{{#if:{{{override_translator|}}}|, ''{{int:translated by}} {{{override_translator}}}''|{{#if:{{{translator|}}}|, ''{{int:translated by}} [[{{{translator|}}}]]''|}}}}
| style="width:20%; text-align:right;font-size:0.9em;" | {{{next|}}}
| style="width:20%; text-align:right;font-size:0.9em;" | {{#if:{{{next|}}}|{{{next}}}<span style="color:#808080">&nbsp;&nbsp;&#x25BA;</span>
|}{{#if:{{{notes|}}}|<table style="width:100%; border-bottom:1px solid #A88; background:#fAfAff; font-size:0.9em;"><tr><td>{{{notes}}}</td></tr></table>|}}
|}{{#if:{{{notes|}}}|<table style="width:100%; border-bottom:1px solid #A88; background:#fAfAff; font-size:0.9em;"><tr><td>{{{notes}}}</td></tr></table>|}}
{{#if:{{{year|}}}|[[Category:{{{year}}}]]}}
{{#if:{{{year|}}}|[[Category:{{{year}}}]]}}
{{#if:{{{lang|}}}|[[Category:Subpages in {{{lang}}} language]]}}
{{#if:{{{lang|}}}|[[Category:Subpages in {{{lang}}} language]]}}
<br/><noinclude>{{documentation}}</noinclude>
<br/><noinclude>{{documentation}}</noinclude>

Revision as of 22:25, 1 November 2011

{{#if:|◄  {{{prev}}} NO TITLE
written by unknown
{{#if:|{{{next}}}  ►



Documentation


This template is meant to be used at the top of a subpage. For the main page of books, use {{title}}; for poems, use {{poem}}; for letters, use {{letter}}. Fill in any relevant information, and leave unknown or inapplicable parameters empty. Don't remove unused parameters, as this will break the template and make bot maintenance difficult.

{{header
 | title      = 
 | author     = 
 | year       = 
 | translator = 
 | lang       =
 | section    = 
 | previous   = 
 | next       = 
 | notes      = 
}}

With lengthy, multi-page works, using relative links is highly recommended. This shortens the code and ensures that a work remains linked together even if it is moved or reorganised. The three formats are [[/subpage]] (subpage), [[../]] (parent), and [[../sibling]] (sibling); see the example usage below. Note that [[../]] will expand to the title of the parent page, which is ideal if the work is renamed at a later time.

Chapter titles

In general, include chapter titles in the "section" field, but avoid including them in the "previous" and "next" fields. For example:

{{#if:|◄  {{{prev}}} How the Other Half Lives ~ Chapter XI: The Sweaters of Jewtown
written by Jacob Riis
{{#if:Chapter XII|Chapter XII  ►




Special cases

Translations

 | translator = Joe

The name of the translator. This will automatically be linked to an author page unless it contains the "[" character.

| author = | override_author = Joe

Displays the author's name without a link to an author page (for works that don't have traditional authors).


Usage examples

Normal

{{header
 | title    = [[../]]
 | author   = Lewis Carroll
 | section  = Chapter 3: A Caucus-Race and a Long Tale
 | previous = [[../Chapter 2|Chapter 2]]
 | next     = [[../Chapter 4|Chapter 4]]
 | notes    =
}}
{{#if:|◄  {{{prev}}} Alice's Adventures in Wonderland ~ Chapter 3: A Caucus-Race and a Long Tale
written by Lewis Carroll
{{#if:Chapter 4|Chapter 4  ►



{{header
 | title    = Peerage Act 1963
 | author   = | override_author = the United Kingdom Parliament
 | section  =
 | previous =
 | next     =
 | notes    =
}}
{{#if:|◄  {{{prev}}} Peerage Act 1963
written by the United Kingdom Parliament
{{#if:|  ►



Translation

{{header
 | title      = Fables
 | author     = Jean de La Fontaine
 | translator = Elizur Wright
 | section    =
 | previous   =
 | next       =
 | notes      =
}}
{{#if:|◄  {{{prev}}} Fables
written by Jean de La Fontaine, translated by Elizur Wright
{{#if:|  ►