Template:Information/doc: Difference between revisions

From The World of Gotha
Jump to navigation Jump to search
(Created page with "<noinclude>{{docsub}}</noinclude> The <nowiki>{{</nowiki>information}} template records and displays metadata for media files, such as photographs and diagrams. It includes a description of the file, its source, and its copyright status. == Usage == <div id="usage" style="background-color: transparent; width: 220px;"> <pre><nowiki>{{</nowiki>Information | description = | source = | author = | permission = | additional = }}</pre>...")
 
mNo edit summary
 
Line 14: Line 14:
==Parameters==
==Parameters==
{| class="wikitable"
{| class="wikitable"
! Parameter !! Description !! Type !! Status !! Notes
! Parameter !! width="220" | Description !! Type !! Status !! Notes
|-
|-
| <code>description</code> || Description of the work || String || '''Required''' ||
| <code>description</code> || Description of the work || String || '''Required''' ||
Line 22: Line 22:
| <code>author</code> || Attribution to the file's creator || String || Optional ||
| <code>author</code> || Attribution to the file's creator || String || Optional ||
|-
|-
| <code>permission</code> || License or permission for the file || String || '''Required''' || Derivatives of works licensed as {{wp|share-alike}} or under {{wp|GNU General Public License|GNU}} must use the same license as the original source file.<br />Defaults to CC BY-SA 4.0
| <code>permission</code> || License or permission for the file || String || '''Required''' || Derivatives of works licensed as {{wp|share-alike}} or under {{wp|GNU General Public License|GNU}} must use the same license as the original source file. The table below shows shortcut values to display a link to common licenses.<br /> Defaults to CC BY-SA 4.0
|-
|-
| <code>additional</code> || Additional information || String || Optional || If a file is used under {{wp|fair use}}, the reasoning for fair use may be included here.
| <code>additional</code> || Additional information || String || Optional || If a file is used under {{wp|fair use}}, the reasoning for fair use may be included here.

Latest revision as of 04:03, 30 October 2024

This is a documentation subpage for Template:Information.
It may contain usage information, categories and other content that is not part of the original template page.

The {{information}} template records and displays metadata for media files, such as photographs and diagrams. It includes a description of the file, its source, and its copyright status.

Usage

{{Information
| description = 
| source      = 
| author      = 
| permission  = 
| additional  = 
}}

Parameters

Parameter Description Type Status Notes
description Description of the work String Required
source Describe where the file comes from String Optional
author Attribution to the file's creator String Optional
permission License or permission for the file String Required Derivatives of works licensed as share-alike or under GNU must use the same license as the original source file. The table below shows shortcut values to display a link to common licenses.
Defaults to CC BY-SA 4.0
additional Additional information String Optional If a file is used under fair use, the reasoning for fair use may be included here.
Common licenses
Permission
value
Displays Usage permitted by licnese
by-sa
BY-SA
CC BY-SA 4.0 Attribution Share-alike
by-sa-3
BY-SA-3
CC BY-SA 3.0 Attribution Share-alike
by-nc
BY-NC
CC BY-NC 4.0 Attribution Non-commercial
by-nc-sa
BY-NC-SA
CC BY-NC-SA 4.0 Attribution Non-commercial Share-alike
by-nd
BY-ND
CC BY-ND 4.0 Attribution No derivative works
by-nc-nd
BY-NC-ND
CC BY-NC 4.0 Attribution Non-commercial No derivative works
gnu
GNU
GNU General Public License Attribution Share-alike
Fair use Fair use There should be an educational or critical purpose for use under the fair use doctrine. It is not a "way around" copyright.
pd
PD
Public domain Free usage

Example

Example for File:Template info icon.png:

{{Information
| description = Info-icon version 2
| source      = [https://commons.wikimedia.org/wiki/File:Test_Template_Info-Icon_-_Version_(2).svg Wikimedia Commons]
| author = [https://commons.wikimedia.org/wiki/User:Jaybear User:Jaybear]
| permission  = PD
| additional = 
}}
Description Info-icon version 2
Source Wikimedia Commons
Author User:Jaybear
Permission Public domain
Additional information