Template:NLC-Book-Link

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

[1]

Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:NLC-Book-Link/doc.

Generate a link to a book in the National Library of China (NLC).

Usage

{{NLC-Book-Link |1= |2= |catid= |text= }}

NLC partitions their books into different databases or tables, whose name start with "data_". The template takes only the suffix numeric portion. Within a database, a book is assigned with a unique ID (usually numeric, but sometimes alphanumeric). With this two param, a book can be identified uniquely in the NLC and a URL can be generated accordingly. Additionally, a category id (i.e. searchType) could be specified, which would set the navigation bar and the background of the book page.

Please be noted that a books may consists of multiple volumes (i.e. files), which are identified with their own volume IDs within databases. A database ID paired with a a volume ID can uniquely identify a volume/file in the NLC. This template cares only books but not volumes.

Template parameters

ParameterDescriptionDefaultStatus
1Database IDThe ID of the database in NLC, with preceding "data_" omitted.emptyoptional
2Book IDThe ID of the Book in the database.emptyrequired
catidCategory IDThe ID of the category in the database. It is known as "searchType" in URL.emptyrequired
textLink textThe text of the hyperlinkemptyoptional

Additional information

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

The template is intended to be used by the following user groups: no user group specified