Template:Content/doc

From Wikisource
Jump to navigation Jump to search

Usage[edit]

Experimental template, used into Table of contents of Index:De re metallica (1912).djvu. It is fed with all the data needed to display data about a ns0 section/chapter, the title of section/chapter being a link to ns0 section, the page number being a link to djvu page.

It also produces an HTML-5 data- attribute, containing a js object where all data are stored and can be easily read by jQuery.

Data from the set of tl|Content are merged with data produced by pagelist tag and store into a Lua data page by User:Alex brollo/parseIndice.js. Lua data page are presently used by Module:Pag called by Template:Pag, but much more uses can be imagined (Lua data page contains almost all what is needed to build a ns0 transclusion page).

{{Content
|name= <!-- full name of ns0 page -->
|title= <!-- title of ns0 page -->
|from= <!-- djvu page where chapter begins -->
|delta= <!-- delta between pag (djvu page) and num (book page number) OR a string -->
}}

See also[edit]