Vorlage:Credit line/sandbox

aus Wikipedia, der freien Enzyklopädie
This documentation is transcluded from Vorlage:Credit line/doc.

Lua-Fehler: expandTemplate: template "Template:TemplateBox/i18n" does not exist

Hardwired license Shortcuts

License Output
CC-BY-SA-3.0 & GFDL CC BY-SA 3.0 & GFDL
CC-BY-SA-4.0 CC BY-SA 4.0
CC-BY-SA-3.0 CC BY-SA 3.0
CC-BY-SA-3.0 (DE) CC BY-SA 3.0 (DE)
CC-BY-SA-2.0 CC BY-SA 2.0
CC-BY-4.0 CC BY 4.0
CC-BY-3.0 CC BY 3.0

Example of code for use with {{Information}} template

{{Information
|Description=description
|Source={{own}}
|Author=John Doe
|Date=2008-06-09
|other_fields={{Credit line |Author = © John Doe 
 |Other = Wikimedia Commons |License = CC-BY-SA-3.0 & GFDL}}
}}

will produce:

Lua-Fehler in package.lua, Zeile 80: module 'strict' not found

Example of code for use with {{Artwork}} template

Also use this code for use with {{Book}} template.

{{Artwork
|Description=description
|Source=John Doe ({{own}})
|Author=unknown
|Date=1900
|other_fields={{Credit line |Author = © John Doe 
 |Other = Wikimedia Commons |License = CC-BY-SA-3.0 & GFDL}}
}}

will produce:

Lua-Fehler in package.lua, Zeile 80: module 'strict' not found


Example with different values for all parameters

{{Information
|Description=description
|Source={{own}}
|Author=[[User:Example]]
|Date=2008-06-09
|other_fields={{Credit line 
 |Author = [https://commons.wikimedia.org/wiki/User:Example User:Example] 
 |License = [https://creativecommons.org/licenses/by-sa/2.0/ CC BY-SA 2.0]}}
}}

will produce:

Lua-Fehler in package.lua, Zeile 80: module 'strict' not found