Template:Cc-by-layout: Difference between revisions
Template page
More actions
use dir parser function |
Fulfilling edit request by Lucas Werkmeister. Thanks for helping! |
||
| Line 15: | Line 15: | ||
--><span class="licensetpl_link" style="display:none;"><nowiki>https://</nowiki>creativecommons.org/licenses/by/{{#if: {{{recversion|}}} | {{{recversion}}} | {{{version}}} }}{{#if:{{{country|}}}|/{{{country}}}/deed.en}}</span><span class="licensetpl_short" style="display:none;">CC BY {{#if: {{{recversion|}}} | {{{recversion}}} | {{{version}}} }} {{{country|}}}</span><span class="licensetpl_long" style="display:none;">Creative Commons Attribution {{#if: {{{recversion|}}} | {{{recversion}}} | {{{version}}} }} {{{country|}}}</span><span class="licensetpl_link_req" style="display:none;">true</span><span class="licensetpl_attr_req" style="display:none;">true</span></div><!-- | --><span class="licensetpl_link" style="display:none;"><nowiki>https://</nowiki>creativecommons.org/licenses/by/{{#if: {{{recversion|}}} | {{{recversion}}} | {{{version}}} }}{{#if:{{{country|}}}|/{{{country}}}/deed.en}}</span><span class="licensetpl_short" style="display:none;">CC BY {{#if: {{{recversion|}}} | {{{recversion}}} | {{{version}}} }} {{{country|}}}</span><span class="licensetpl_long" style="display:none;">Creative Commons Attribution {{#if: {{{recversion|}}} | {{{recversion}}} | {{{version}}} }} {{{country|}}}</span><span class="licensetpl_link_req" style="display:none;">true</span><span class="licensetpl_attr_req" style="display:none;">true</span></div><!-- | ||
-->{{#if:{{{country|}}} | <div class="rlicense-country">[[{{Cc-country-flags|{{{country}}}}}|90px|border|link=|center]]</div>}}<!-- | -->{{#if:{{{country|}}} | <div class="rlicense-country">[[{{Cc-country-flags|{{{country}}}}}|90px|border|link=|center]]</div>}}<!-- | ||
--></div>{{#ifeq:{{NAMESPACE}}|File|{{SDC_statement_exist | --></div>{{#ifeq:{{NAMESPACE}}|File|{{#invoke:SDC_tracking|SDC_statement_exist | ||
|property=P6216 | |property=P6216 | ||
|negative_category=Creative Commons Attribution missing SDC copyright status | |negative_category=Creative Commons Attribution missing SDC copyright status | ||
Revision as of 19:12, 24 November 2024
This documentation is transcluded from Template:Cc-by-layout/doc.
This is a general layout template for all Creative Commons Attribution templates. This template should only be used in other templates. To make use of this template:
{{Cc-by-layout
|version=<!-- the version of the template -->
|country=<!-- countrycode, or leave empty if it's an unported template -->
|attribution={{{attribution|{{{1|}}}}}}<!-- To pass the attribution -->
}}<includeonly>{{#ifeq:{{NAMESPACE}}|File|{{{category|[[Category:CC-BY-<version>-<country><!-- To which category the images are added -->|{{PAGENAME}}]]}}}}}</includeonly><noinclude>
{{In category|CC-BY-<version>-<country><!-- To which category the images are added -->}}
[[Category:CC license tags|{{PAGENAME}}]]
[[Category:License tags attribution|{{PAGENAME}}]]
</noinclude>