Template:License/doc

Revision as of 16:56, 24 March 2024 by Merds (talk | contribs) (Created page with "{{Documentation}} This is the parent template for file licenses. ==Usage== <pre>{{License |type = type |typeid = ID to add to the wrapping HTML element (optional) |subject = subject |datatype = create a "data-<datatype>" HTML element attribute (optional) |datavalue = value to assign to the "data-<datatype>" attribute (optional) |dataprefix = text to be shown before the "ID:" parameter label (optional) }}</pre> Typically subject will default to ''Unknown'' or link to the...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This is a documentation subpage for Template:License.
It contains usage information, categories, and other content that is not part of the original template page.

This is the parent template for file licenses.

Usage

{{License
|type = type
|typeid = ID to add to the wrapping HTML element (optional)
|subject = subject
|datatype = create a "data-<datatype>" HTML element attribute (optional)
|datavalue = value to assign to the "data-<datatype>" attribute (optional)
|dataprefix = text to be shown before the "ID:" parameter label (optional)
}}

Typically subject will default to Unknown or link to the subject, but the implementation is left to the individual template to alter as required.

Typically, the type of ID given in datavalue can be determined based on the type license type. For licenses where that may not be true (e.g. the ID could refer to the ID of an item and its inventory icon or the ID could refer to a sprite), dataprefix may be specified to prepend clarifying text (e.g. "Sprite" or "Item") to the "ID:" label.