User:Pathoschild/Sandbox6

From Wikisource
Jump to navigation Jump to search

About[edit]

Changes[edit]

  • moved inline CSS to stylesheet:
    – simplifies formatting changes (normal CSS simpler than inline CSS);
    – eliminates server load when changing the formatting (no transclusion costs with stylesheets).
  • integrated navigation arrows and section parentheses using ParserFunction logic:
    – easier to use the template;
    – much easier to change symbols or formatting (no longer dependant on status quo).
  • added ParserFunction check for unspecified author:
    – eliminates need to use parameter overrides for works with no authors.

Sitenotice during transition[edit]

The standardised header has been improved based on feedback since its implementation. Some pages may temporarily experience minor formatting mistakes like double arrows (see the updated documentation).

Comparisons[edit]

Navigation (simple)[edit]

(identical usages.)

A Ballade of Burial
by Rudyard Kipling
66116A Ballade of BurialRudyard Kipling

Navigation (complex)[edit]

Original
{{header
 | title    = [[The Poison Belt]]
 | author   = Arthur Conan Doyle
 | section  = (Chapter 5)
 | previous = ←[[The Poison Belt/Chapter 4|Chapter 4]]
 | next     = [[The Poison Belt/Chapter 6|Chapter 6]]→
 | notes    =
}}
New
{{header
 | title    = [[The Poison Belt]]
 | author   = Arthur Conan Doyle
 | section  = Chapter 5
 | previous = [[The Poison Belt/Chapter 4|Chapter 4]]
 | next     = [[The Poison Belt/Chapter 6|Chapter 6]]
 | notes    =
}}
66116The Poison Belt — Chapter 5Arthur Conan Doyle

Authorship (custom)[edit]

Original
{{header
 | title    = The Masque at Kenilworth
 | author   = | noauthor= <br />written by [[Author:Henry Fothergill Chorley|Henry F. Chorley]] and composed by [[Author:Arthur Sullivan|Arthur Sullivan]]
 | section  = 
 | previous =
 | next     =
 | notes    =
}}
New
{{header
 | title    = The Masque at Kenilworth
 | author   = | override_author= written by [[Author:Henry Fothergill Chorley|Henry F. Chorley]] and composed by [[Author:Arthur Sullivan|Arthur Sullivan]]
 | section  = 
 | previous =
 | next     =
 | notes    =
}}
The Masque at Kenilworth
written by Henry F. Chorley and composed by Arthur Sullivan
66116The Masque at Kenilworthwritten by Henry F. Chorley and composed by Arthur Sullivan

Authorship (none)[edit]

Original
{{header
 | title    = Alysoun
 | author   = |noauthor =
 | section  = 
 | previous =
 | next     =
 | notes    =
}}
New
{{header
 | title    = Alysoun
 | author   =
 | section  = 
 | previous =
 | next     =
 | notes    =
}}
Alysoun
66116Alysoun