Template:License: Difference between revisions

Created page with "<templatestyles src="Template:License/styles.css" />{{#switch: {{{1|}}} | cc-by = <table class="mw-license-box mw-license-cc-by"><tr> <td class="mw-license-badge">CC<br/>BY</td> <td class="mw-license-desc">[https://creativecommons.org/licenses/by/4.0/ CC BY 4.0] — Free to share and adapt with attribution.</td> </tr></table> | cc-by-sa = <table class="mw-license-box mw-license-cc-by-sa"><tr> <td class="mw-license-badge">CC<br/>BY-SA</td> <td class="mw-license-desc">[htt..."
 
No edit summary
Line 45: Line 45:
== Usage ==
== Usage ==
<pre>{{License|cc-by}}</pre>
<pre>{{License|cc-by}}</pre>
Valid values: <code>cc-by</code>, <code>cc-by-sa</code>, <code>cc-by-nc</code>, <code>cc-by-nc-sa</code>, <code>cc-by-nd</code>, <code>cc-by-nc-nd</code>, <code>cc0</code>, <code>arr</code>
 
<templatedata>
{
    "description": "Displays a license notice box for the page, styled like Babel boxes.",
    "params": {
        "1": {
            "label": "License",
            "description": "The license identifier for this page.",
            "type": "string",
            "required": true,
            "suggestedvalues": [
                "cc-by",
                "cc-by-sa",
                "cc-by-nc",
                "cc-by-nc-sa",
                "cc-by-nd",
                "cc-by-nc-nd",
                "cc0",
                "arr"
            ],
            "example": "cc-by-sa"
        }
    },
    "format": "inline"
}
</templatedata>
</noinclude>
</noinclude>