Difference between revisions of "Template:Cc-by-sa-4.0"
Mediawiki>Multichill (Merge SDC categories) |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | < | + | <!-- Creative Commons License -->{{imbox |
− | | | + | | type = license |
− | + | | class = licensetpl | |
− | + | | image = [[File:CC_some_rights_reserved.svg|90px]] <br /> [[File:Cc-by new white.svg|24px]][[Image:Cc-sa white.svg|24px]] | |
− | }}< | + | | text = ''This work is licensed under the [[Wikipedia:Creative Commons|Creative Commons]] [https://creativecommons.org/licenses/by-sa/4.0/ Attribution-ShareAlike 4.0] License. {{#if:{{{1|}}}| <br /> Attribution: {{{1|}}} }}''<span class="licensetpl_link" style="display:none;"><nowiki>https://</nowiki>creativecommons.org/licenses/by-sa/4.0/</span><span class="licensetpl_short" style="display:none;">CC-BY-SA-4.0</span><span class="licensetpl_long" style="display:none;">Creative Commons Attribution-ShareAlike 4.0</span><span class="licensetpl_link_req" style="display:none;">true</span><span class="licensetpl_attr_req" style="display:none;">true</span> |
− | + | {{image other | |
− | + | | [[Category:Creative Commons Attribution-ShareAlike 4.0 files|{{PAGENAME}}]] | |
− | + | | <br/>{{center|{{error-small|This template should only be used on file pages.}}}} | |
− | + | }}}}{{#if:{{yesno|{{{dw|}}}|yes=|no=yes}}|{{free media}}}}<noinclude> | |
− | |||
− | }} | ||
− | |||
− | |||
− | {{ | ||
{{documentation}} | {{documentation}} | ||
− | + | <!-- Add categories and interwikis to the /doc subpage, not here! --> | |
− | |||
− | |||
− | |||
− | |||
</noinclude> | </noinclude> |
Latest revision as of 16:32, 24 January 2022
| This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 License.
This template should only be used on file pages. |
Cc-by-sa-4.0 license template
The template automatically sets the following categories: CC-BY-SA-4.0
Usage
{{Cc-by-sa-4.0 |1= }}
Template parameters
- TemplateData
TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.
Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either useTemplateData=1
or useTemplateData=only
on the /doc
subpage and transcluding it with {{Documentation}} into the template. <nowiki>
-tags can be wrapped around the arguments, if required, to avoid templates being expanded.
Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw <templatedata>
-tags into the Wikitext of the template, as described in various Wikipediae.
Wikipedia's help about TemplateData • Commons-specific information
Cc-by-sa-4.0 license template
Parameter | Description | Type | Status | |
---|---|---|---|---|
attribution | 1 | the attribution string as specified by the licensor, that re-users are obliged to name | String | optional |
Additional information
The template is intended to be used in the following namespaces: the File namespace
The template is intended to be used by the following user groups: all users
Placement: In the "⧼wm-license-information-permission⧽" parameter of the {{Information}} template (or the respective parameter of similar templates) or in the "Licensing" section
Relies on:
{{Cc-by-sa-layout}}{{cc-by-sa-4.0}}
Example
{{Cc-by-sa-4.0|Example Name}}
renders as:
| This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 License. Attribution: Example Name This template should only be used on file pages. |
Localization
This template is localized by utilizing MediaWiki namespace messages. These can be translated at translatewiki.net (current translations).