Difference between revisions of "Template:TemplateSandbox"

From Elite Wiki
m
m
 
Line 4: Line 4:
   
 
{{ {{#if: {{{param2|}}} | {{{param2}}} | ns:0}} }}
 
{{ {{#if: {{{param2|}}} | {{{param2}}} | ns:0}} }}
 
<noinclude>
 
This template links to License Deeds pages on [http://creativecommons.org/licenses/ Creative Commons].
 
 
Included are CC licenses (CC-by, CC-by-nd, CC-by-nc-sa, CC-by-sa, CC-by-nc, CC-by-nc-nd and publicdomain) 3.0.
 
 
Usage:
 
<nowiki>
 
{{OXPLicense|CC-by-nc-sa}}
 
</nowiki>
 
</noinclude>
 
 
{{#if: {{{1}}} |
 
{{#switch: {{{1}}}
 
| CC-by = [http://creativecommons.org/licenses/by/3.0 CC-by-3.0]
 
| CC-by-nd = [http://creativecommons.org/licenses/by-nd/3.0 CC-by-nd-3.0]
 
| CC-by-nc-sa = [http://creativecommons.org/licenses/by-nc-sa/3.0 CC-by-nc-sa-3.0]
 
| CC-by-sa = [http://creativecommons.org/licenses/by-sa/3.0 CC-by-sa-3.0]
 
| CC-by-nc = [http://creativecommons.org/licenses/by-nc/3.0 CC-by-nc-3.0]
 
| CC-by-nc-nd = [http://creativecommons.org/licenses/by-nc-nd/3.0 CC-by-nc-nd-3.0}
 
| publicdomain = [http://creativecommons.org/publicdomain/mark/1.0 Public Domain]
 
| #default = {{{1|none}}}
 
}}
 
| none
 
}}
 

Latest revision as of 15:42, 5 June 2012

Template for messing with template syntax.

{{{param1}}} I has a param2