Template:Format license/doc
This is a documentation subpage for Template:Format license. It may contain usage information, categories and other content that is not part of the original template page. |
Works out the appropriate link for creative commons licenses (relatively robust to how the text is formatted). Anything not starting "CC" won't be formatted as it's assumed it's not a creative commons license.
Usage
editThe template will ignore case and dashes. If no number is specified, it'll be assumed to be version 4.0.
{{Format license|cc by 4.0}}
→ cc by 4.0{{Format license|cc by}}
→ cc by{{Format license|cc-by-sa 3}}
→ cc-by-sa 3{{Format license|CC BY}}
→ CC BY{{Format license|public domain}}
→ public domain