Template:PD-user

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Public domain This work has been released into the public domain by its author, Example. This applies worldwide.
In some countries this may not be legally possible; if so:
Example grants anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.
Documentation icon Documentationviewedithistorypurge

This documentation is transcluded from Template:PD-user/doc.

No description yet available.

The template automatically sets the following categories: Category:PD-user

Usage

{{PD-user |1= }}

Template parameters

ParameterDescriptionDefaultStatus
1user nameUser name of the releaser, e.g. Multichill will display Multichill.
Examplerequired
2language codeTo refer to an account on one of the Wikipedias, write here the ISO 639-1 language code,
e.g. en or any other language.
emptyoptional
3display nameThe alternate display value to show for the linked username. This can be e.g. the real name.par. 1optional
4textmay contain a letter to specify another user template than U, e.g. t for Ut or w for Uwemptyoptional
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

Template parameters

ParameterDescriptionTypeStatus
user name1

User name of the releaser, e.g. <code>Multichill</code> will display [[:User:Multichill|Multichill]].<br>

Default
[[:User:Example|Example]]
Userrequired
language code2

To refer to an account on one of the Wikipedias, write here the [[:w:List of ISO 639-1 codes|ISO 639-1]] language code,<br>e.g. <code>en</code> or any other language.

Stringoptional
display name3

The alternate display value to show for the linked username. This can be e.g. the real name.

Default
par. 1
Stringoptional
text4

may contain a letter to specify another user template than [[:Template:U|U]], e.g. <code>t</code> for [[:Template:Ut|Ut]] or <code>w</code> for [[:Template:Uw|Uw]]

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

Example

{{PD-user|Joshua Doubek|en}}

renders as:

Public domain This work has been released into the public domain by its author, Joshua Doubek. This applies worldwide.
In some countries this may not be legally possible; if so:
Joshua Doubek grants anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.

See also

Localization

This template is localized by utilizing custom MediaWiki namespace messages.