Difference between revisions of "Template:GetLicense"
Jump to navigation
Jump to search
imported>Evolution and evolvability ({{{1|{{{Q|<noinclude>Q76846397</noinclude>}}}}}}) |
imported>Evolution and evolvability (better commenting) |
||
| Line 1: | Line 1: | ||
| − | <span class="plainlinks">[{{#invoke:wd|properties|{{#invoke:wd|properties|raw|{{{1|{{{Q|<noinclude>Q76846397</noinclude>}}}}}}|P275}}|P856}} {{ | + | <span class="plainlinks">[{{#invoke:wd|properties|{{#invoke:wd|properties|raw|{{{1|{{{Q|<noinclude>Q76846397</noinclude>}}}}}}|P275}}|P856}} {{ <!-- Find the licence (P275) and link to its official website (P856) --> |
| − | #if:{{#invoke:wd|properties|multilanguage|{{#invoke:wd|properties|raw|{{{1|{{{Q|<noinclude>Q76846397</noinclude>}}}}}}|P275}}|P1813}} <!-- | + | #if:{{#invoke:wd|properties|multilanguage|{{#invoke:wd|properties|raw|{{{1|{{{Q|<noinclude>Q76846397</noinclude>}}}}}}|P275}}|P1813}} <!-- If licence's short name (P1813) is available... --> |
| − | |{{#invoke:wd|properties|multilanguage|{{#invoke:wd|properties|raw|{{{1|{{{Q|<noinclude>Q76846397</noinclude>}}}}}}|P275}}|P1813}} | + | |{{#invoke:wd|properties|multilanguage|{{#invoke:wd|properties|raw|{{{1|{{{Q|<noinclude>Q76846397</noinclude>}}}}}}|P275}}|P1813}} <!-- ...then use that short name --> |
| − | |{{#invoke:wd|properties|{{#invoke:wd|properties|raw|{{{1|{{{Q|<noinclude>Q76846397</noinclude>}}}}}}|P275}}|P2479}} | + | |{{#invoke:wd|properties|{{#invoke:wd|properties|raw|{{{1|{{{Q|<noinclude>Q76846397</noinclude>}}}}}}|P275}}|P2479}} <!-- ...otherwise use it's 'SPDX license ID' name (P2479) --> |
}}]</span><noinclude>{{doc}}</noinclude> | }}]</span><noinclude>{{doc}}</noinclude> | ||
Latest revision as of 00:21, 10 October 2020
[Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value).]
Usage
Retrieve and format an item's Template:Property. The template will display display the licence's Template:Property or else its Template:Property and link out to its Template:Property.
Examples
- {{GetLicense|Q=Q28651505}} → [Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value).]
See also
| The above documentation is transcluded from Template:GetLicense/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |