Template:License: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(Created page with "{| class="messagebox file" {{#if:{{{typeid|}}}|id="{{{typeid}}}"|}} {{#if:{{{datavalue|}}}|data-{{{datatype|}}}="{{{datavalue}}}"|}} | width="40px" | 40px|center|link= | '''This is licensed media of a copyrighted computer game.'''<br><!-- --><div style="font-size:0.85em; line-height:1.4em"><!-- -->'''Type:''' {{{type}}}<br><!-- -->'''Subject:''' {{{subject}}}<br><!-- -->{{#if:{{{datavalue|}}}|'''{{#if:{{{dataprefix|}}}|{{ucfirst:{{{dataprefix}}}}}&...") |
No edit summary |
||
Line 6: | Line 6: | ||
-->'''Subject:''' {{{subject}}}<br><!-- |
-->'''Subject:''' {{{subject}}}<br><!-- |
||
-->{{#if:{{{datavalue|}}}|'''{{#if:{{{dataprefix|}}}|{{ucfirst:{{{dataprefix}}}}} }}ID:''' {{{datavalue}}}<br>}}<!-- |
-->{{#if:{{{datavalue|}}}|'''{{#if:{{{dataprefix|}}}|{{ucfirst:{{{dataprefix}}}}} }}ID:''' {{{datavalue}}}<br>}}<!-- |
||
-->''{{{text|This file is taken from [https://https://brightershores.com Brightershores.com].}}}''<!-- |
-->''{{{text|This file is taken from [https://https://brightershores.com Brightershores.com], and its copyright is held by [[Fen Research Ltd]].}}}''<!-- |
||
--></div> |
--></div> |
||
|}<noinclude>{{/doc}}</noinclude> |
|}<noinclude>{{/doc}}</noinclude> |
Revision as of 13:56, 4 November 2024
Template documentation
This documentation is transcluded from Template:License/doc. [edit] [history] [purge]
This is the parent template for file licenses.
Usage
{{License |type = type |typeid = ID to add to the wrapping HTML element (optional) |subject = subject |datatype = create a "data-<datatype>" HTML element attribute (optional) |datavalue = value to assign to the "data-<datatype>" attribute (optional) |dataprefix = text to be shown before the "ID:" parameter label (optional) }}
Typically subject will default to Unknown or link to the subject, but the implementation is left to the individual template to alter as required.
Typically, the type of ID given in datavalue
can be determined based on the type
license type. For licenses where that may not be true (e.g. the ID could refer to the ID of an item and its inventory icon or the ID could refer to a sprite), dataprefix
may be specified to prepend clarifying text (e.g. "Sprite" or "Item") to the "ID:" label.