Difference between revisions of "Template:Show license"
(2 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
Usage: <nowiki>{{</nowiki>show license|''page''=<nowiki>{{PAGENAME}}</nowiki>}} | Usage: <nowiki>{{</nowiki>show license|''page''=<nowiki>{{PAGENAME}}</nowiki>}} | ||
− | This template returns a short string "[[Property:License|License]]: %s." where %s is either the license property for a given ''page'', or "No licensing information available" if the license property has not been set. ''page'' defaults to <nowiki>{{PAGENAME}}</nowiki> if omitted. | + | This template returns a short string <nowiki>"[[Property:License|License]]: %s."</nowiki> where %s is either the license property for a given ''page'', or "No licensing information available" if the license property has not been set. ''page'' defaults to <nowiki>{{PAGENAME}}</nowiki> if omitted. |
</noinclude><includeonly><onlyinclude>[[Property:License|License]]: {{#if: {{#show: {{{page|{{PAGENAME}}}}}|?license}}|{{#show: {{{page|{{PAGENAME}}}}}|?license}}|No licensing information available}}.</onlyinclude></includeonly> | </noinclude><includeonly><onlyinclude>[[Property:License|License]]: {{#if: {{#show: {{{page|{{PAGENAME}}}}}|?license}}|{{#show: {{{page|{{PAGENAME}}}}}|?license}}|No licensing information available}}.</onlyinclude></includeonly> |
Latest revision as of 10:12, 7 July 2011
Usage: {{show license|page={{PAGENAME}}}}
This template returns a short string "[[Property:License|License]]: %s." where %s is either the license property for a given page, or "No licensing information available" if the license property has not been set. page defaults to {{PAGENAME}} if omitted.