Template:BookNaviBar

Category:Main message boxesCategory:Heavily used templates
Template documentation[view · edit · history · purge]
This documentation is transcluded from Template:BookNaviBar/doc.

You can use this template if the files in question are named in a serial way, that only differs in one part at the end. Both the previous and the next page parameters are optional, but at least one of them needs to be filled in, otherwise the template won’t do anything useful.

Usage


{{BookNaviBar |1= |2= |3= |4= }}

If you have e.g. dozens of images which are named from
File:John_Doe,_Secret_Diary,_page_001.png to
File:John_Doe,_Secret_Diary,_page_182.png
you can use the following code for page 35:

{{BookNaviBar|John_Doe,_Secret_Diary,_page_|png|034|036}}

Template parameters

<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData

TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.


Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either ‎useTemplateData=1 or ‎useTemplateData=only on the ‎/doc subpage and transcluding it with {{Documentation}} into the template. <nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.

Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw <templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.


Wikipedia's help about TemplateDataCommons-specific information

Category:Templates using TemplateData

You can use this template if the files in question are named in a serial way, that only differs in one part at the end. Both the previous and the next page parameters are optional, but at least one of them needs to be filled in, otherwise the template won’t do anything useful.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
image base name1

The first, not varying part of the image names

Linerequired
file extension2

The common extension of the files

Linerequired
previous page3

If empty, the link to previous page will not be shown

Linesuggested
next page4

If empty, the link to next page will not be shown

Linesuggested

Additional information

The template is intended to be used in the following namespaces: the File namespace

The template is intended to be used by the following user groups: all users

Relies on:
{{Nextpage}} and {{Previouspage}}

Example

{{BookNaviBar|John_Doe,_Secret_Diary,_page_|png|034|036}}

renders as:

See also

Category:Templates using an unknown approach for internationalisation Category:Navigational templates#BookNaviBar
Category:Heavily used templates Category:Main message boxes Category:Navigational templates Category:Templates using TemplateData Category:Templates using an unknown approach for internationalisation