Commons:Structured data/Minimalist Wikitext infobox templates
This page collects those Information templates that describe files with only very minimal Wikitext, and that are (mostly) fully Lua-driven.
Some of these templates are useful for Wikimedia Commons batch upload tools that support structured data.
Example
editBefore Structured Data (SDC) became available for files on Wikimedia Commons, files were only described with Wikitext, using so-called infobox templates. The {{Information}}
template is commonly used and quite simple.
A typical simple file description:
=={{int:filedesc}}== {{Information |description={{en|1=Description of the file in English}} |date=2014-03-03 17:13:03 |source={{own}} |author=[[User:Some Wiki User|Some Wiki User]] |permission= |other_versions= }} =={{int:license-header}}== {{self|cc-by-3.0}} [[Category:Some Wikimedia Commons category]]
As files are now also described with structured data, it is often possible to make the Wikitext quite minimal. In many cases, the template will load and display the file's structured data using Lua. This looks like this:
The Wikitext of the file | The structured data of the file | How the file page will display |
---|---|---|
=={{int:filedesc}}== {{Information}} =={{int:license-header}}== {{self|cc-by-sa-4.0}} [[Category:Name of category here]] |
stuff | stuff stuff |
This "minimal Wikitext" is not compulsory; it is also OK to use 'old style' extensive Wikitext. That said, it may result in data duplication and even data drift (differences in information) between the Wikitext and the structured data.
See Commons:Structured data/Modeling for data modeling conventions.
Generic, widely used templates
editThe following infobox templates can be used for a wide variety of files on Wikimedia Commons, covering very frequently occurring types of uploads, relevant for many Wikimedia Commons uploaders. These templates are also supported by some batch upload tools that support SDC.
Used when? | Example Wikitext | Data modeling guidelines for SDC | Data modeling guidelines for Wikidata item of the creative work | Example files | Supported by batch upload tools | |
---|---|---|---|---|---|---|
{{Information}} |
Default template provided by UploadWizard. |
=={{int:filedesc}}== {{Information}} =={{int:license-header}}== {{self|cc-by-sa-4.0}} [[Category:Name of category here]] |
n/a | Search for all files with bare Information template | Minimal Wikitext supported by: | |
{{Artwork}} (when the depicted creative work has a Wikidata item) |
Usually for scans / faithful reproductions or representations of two-dimensional artworks (e.g. digitized paintings) | Commons:Structured data/Modeling/Visual artworks | Search for all files with bare Artwork template | Minimal Wikitext supported by: | ||
{{Art photo}} (when the depicted creative work has a Wikidata item) |
Photographs of artworks, usually three-dimensional works (e.g. sculptures) | Commons:Structured data/Modeling/Visual artworks | Search for all files with bare Art photo template | Minimal Wikitext supported by: | ||
{{Book}} (when the scanned work has a Wikidata item) |
Full scans of books | See guidelines at | Search for all files with bare Book template | Minimal Wikitext supported by: |
Other