Template:Shelf:Page/display2/doc
This is a documentation subpage for Template:Shelf:Page/display2 It contains usage information, categories and other content that is not part of the original template page. |
This subtemplate provides the detailed layout of shelf page content for template {{Shelf:Page}}, after parameter preprocessing by {{Shelf:Page/display}}.
Usage
editAll the named parameters of {{Shelf:Page}} are expected to be provided, even if blank; at this writing, the parameters that significantly could be blank are parent2
and maxcount
. There are also five additional parameters; one generated by the call from {{Shelf:Page}} and four more by the call from {{Shelf:Page/display}}.
shelf
— the name of the shelf, without theShelf:
prefix. (Generated by {{Shelf:Page}}.)mode
— how each completion-status list is to be displayed; eithersplit
,all
, or blank. (Generated by {{Shelf:Page/display}}.)allbooks page
— the name of the associated allbooks category if it exists, otherwise blank. NoCategory:
prefix. (Generated by {{Shelf:Page/display}}.)parent page
— the name of the page associated with the first-listed parent; could be a shelf or a department. (Generated by {{Shelf:Page/display}}.)parent2 page
— the name of the page associated with the second-listed parent; could be a shelf or a department. (Generated by {{Shelf:Page/display}}.)
Internals
editSplit mode separates the list of books on this shelf for a given completion status into the ones explicitly filed on this shelf, then the ones not explicitly filed here but filed in subshelves. Blank mode omit the ones only on subshelves.