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.

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

This template creates a license with a user link

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
or, instead of these 3 params, only parameter 1an other definition of user nameIt may be
  • either an item of the user namespace
    • can be the complete link to the user name of the releaser, e.g. [[User:Multichill]] or rather complex e.g. [[:en:User talk:Multichill | Multichill]]
    • can be specified by one of the user templates, e.g. {{U}}, {{Uc}}, {{Ud}}, {{Ut}}, {{Uw}},
    • or another method to specify a user to be linked as a user name or its substitution.
  • It may be an internal or external link, coded with single […] or double [[…]] brackets.
  • It may as well be a {{Userlist}} with the parametrizing possibilities of that template.

In addition, it is possible to suppress the linking, i.e. to display plain text:

  • when the first character of the value of parameter 1 is either &, <, [ or { the value is taken as-it-is; e.g. [ will it be when a link template has been transcluded, or & when the value starts with e.g. &shy; or &zwj;
  • it is always possible to switch on/off the link option of Template:U, to avoid links temporarely (see the description of the User link templates).
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

This template creates a license with a user link

Template parameters[Edit template data]

This template prefers inline formatting of 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&nbsp;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
an other definition of user nameor, ''instead'' of these 3 params, only '''parameter 1'''

It may be<br />

  • either ''an item of the user namespace''
    • can be the ''complete link'' to the user name of the releaser, e.g. <code>[[User:Multichill]]</code> or rather complex e.g. <code>[[:en:User talk:Multichill | Multichill]]</code>
    • can be specified by one of the user templates, e.g. <code>&#123;&#123;[[:Template:U|U]]&#125;&#125;</code>, <code>&#123;&#123;[[:Template:Uc|Uc]]&#125;&#125;</code>, <code>&#123;&#123;[[:Template:Ud|Ud]]&#125;&#125;</code>, <code>&#123;&#123;[[:Template:Ut|Ut]]&#125;&#125;</code>, <code>&#123;&#123;[[:Template:Uw|Uw]]&#125;&#125;</code>,
    • or another method to specify a ''user'' to be linked as a user name or its substitution.
  • It may be an internal or external link, coded with single <code>[…]</code> or double <code>[[…]]</code> brackets.
  • It may as well be a <code>&#123;&#123;[[:Template:Userlist|Userlist]]&#125;&#125;</code> with the parametrizing possibilities of that template.

In addition, it is possible to ''suppress the linking'', i.e. to display ''plain text'':

  • when the first character of the value of parameter 1 is either <code>&#38;</code>, <code>&#60;</code>, <code>&#91;</code> or <code>&#123;</code> the value is taken as-it-is; e.g. <code>&#91;</code> will it be when a link template has been transcluded, or <code>&#38;</code> when the value starts with e.g. <code>&amp;shy;</code> or <code>&amp;zwj;</code>
  • it is always possible to switch on/off the link option of Template:[[:Template:U|U]], to avoid links temporarely (see the description of the [[Template:U/doc|User link templates]]).

Useroptional

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

Examples

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

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.


{{PD-user|JDoubek|en}}

renders as:

Public domain This work has been released into the public domain by its author, JDoubek. This applies worldwide.

In some countries this may not be legally possible; if so:
JDoubek 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 MediaWiki namespace messages. These can be translated at translatewiki.net (current translations).