Template:Licensed-FOP

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Object

{{{1}}}

Photograph

{{{2}}}

Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:Licensed-FOP/doc.

Provide some formatting and internationalization to cases where image has a license for the photograph of an object which is covered by Freedom of panorama.

Usage

{{Licensed-FOP |1= |2= }}

Template parameters

ParameterDescriptionDefaultStatus
1object FOP template

The object Freedom of panorama (FOP) template can be noted in two formats:

  • English name of the country, like Spain or Poland
  • FOP template itself, like {{FoP-Spain}} or {{FoP-Poland}}
emptyrequired
2photograph license

The photography license template can be noted in two formats:

  • name of the license template, like
    • Cc-by-3.0
  • License template itself, like
    • {{ Cc-by-3.0 }} or
    • {{ SelfCc-by-3.0author = John Doe }}
emptyrequired
P1
p1
photograph license parameter #1First parameter string which can be passed to the license template (parameter #2).emptyoptional
P2
p2
photograph license parameter #2Second parameter string which can be passed to the license template (parameter #2).emptyoptional
authorauthorAuthor string which can be passed to the license template (parameter #2).emptyoptional
attributionattributionAttribution which can be passed to the license template (parameter #2).emptyoptional
migrationdata migrationMigration string which can be passed to the license template (parameter #2).emptyoptional
Template data
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData

TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.


Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either ‎useTemplateData=1 or ‎useTemplateData=only on the ‎/doc subpage and transcluding it with {{Documentation}} into the template. ‎<nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.

Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw ‎<templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.

Discussion
There is an ongoing discussion about that matter. Feel invited to comment if you are experienced in either way, your time permits and if you like to share your opinion or to make a suggestion.


Wikipedia's help about TemplateDataCommons-specific information

Provide some formatting and internationalization to cases where image has a license for the photograph of an object which is covered by “Freedom of panorama”.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
object FOP template1

The “freedom of panorama” template is note here, e.g. “Spain”.

Stringrequired
photograph license2

The license template is note here, e.g. “Cc-by-3.0”.

Templaterequired
photograph license parameter #1P1 p1

First parameter string which can be passed to the license template (parameter #2).

Stringoptional
photograph license parameter #2P2 p2

Second parameter string which can be passed to the license template (parameter #2).

Stringoptional
attributionattribution

Attribution which can be passed to the license template (parameter #2).

Stringoptional
authorauthor

Author string which can be passed to the license template (parameter #2).

Stringoptional
data migrationmigration

Migration string which can be passed to the license template (parameter #2).

Stringoptional

Additional information

The template is intended to be used in the following namespaces: the File namespace

The template is intended to be used by the following user groups: all users

Placement: In the "Permission" parameter of the {{Information}} template (or the respective parameter of similar templates) or in the "Licensing" section

Relies on:
{{Section header}}

See also

Localization

This template is not intended to be localized.

{{Section header}} is used to translate the headings.

Examples

Example 1

Source code:
{{Licensed-FOP |1=Spain |2={{self|cc-by-sa-3.0|GFDL}} }}
Result:

Example 2

Source code:
{{Licensed-FOP |1=Spain |2= }}
{{self |1=cc-by-sa-3.0 |2=GFDL }} 
Result: