Template:Unsigned/doc: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
(Added my best guess as to the correct <templatedata> blob for this template, based on spec.templatedata.json in MW:Extension:TemplateData)
(Fix dead links)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
{{subst only}}
{{UnsignedTemplates}}
{{tl|{{PAGENAME}}}} is used to label unsigned comments in a conversation.
{{tl|{{PAGENAME}}}} is used to label unsigned comments in a conversation.


=== Usage ===
=== Usage ===
<code><nowiki>{{subst:Unsigned|user name or IP|time, day month year (UTC)}}</nowiki></code>
;user name or IP: name or IP of user who left comment. The value is case-sensitive.
;time, date: time and date stamp from edit history.
The time stamps in the edit history list for any talk page appear in [[UTC]], or in the local time that is set in your preferences. If you did not adjust the time in your preferences, then the times in the edit history list are in UTC.
:'''Talk page times should always be in UTC.''' So be sure to use UTC time when using this unsigned template. Adjust the time, if necessary, using the difference you designated between the server UTC time and local time. If this is too difficult to figure out, or you are in a hurry, then leave out the time, and only put in the date.
=== Example ===
Typing:
<code><nowiki>{{subst:Unsigned|Example|11:15, 1 June 2005 (UTC)}}</nowiki></code>
will yield: {{Unsigned|Example|11:15, 1 June 2005 (UTC)}}
=== See also ===
*{{t1|spa}} &mdash; for comments from [[Wikipedia:Single purpose account|single purpose accounts]]
*{{tls|uw-tilde}}
{{signatures}}
<includeonly>
<templatedata>
<templatedata>
{
{
Line 36: Line 7:
"params": {
"params": {
"1": {
"1": {
"label": "User name",
"label": "User name or IP",
"type": "string/wiki-user-name",
"type": "string/wiki-user-name",
"required": true,
"required": true,
"description": "User name of person who forgot to sign their comment."
"description": "Name or IP address of the user who left the comment. The value is case-sensitive."
},
},
"2": {
"2": {
"label": "Date",
"label": "Time and date",
"type": "string",
"type": "string",
"description": {
"description": "Timestamp from the edit history."
"en": "Timestamp of when the comment was posted."
}
}
}
},
}
}
}
</templatedata>
</templatedata>


<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
The time stamps in the edit history list for any talk page appear in UTC, or in the local time that is set in your preferences. If you did not adjust the time in your preferences, then the times in the edit history list are in UTC.
[[Category:Username internal link templates]]
:'''Talk page times should always be in UTC.''' So be sure to use UTC time when using this unsigned template. Adjust the time, if necessary, using the difference you designated between the server UTC time and local time. If this is too difficult to figure out, or you are in a hurry, then leave out the time, and only put in the date.
 
<code><nowiki>{{subst:Unsigned|user name or IP|time, day month year (UTC)}}</nowiki></code>
 
=== Example ===
 
Typing:
<code><nowiki>{{subst:Unsigned|Example|11:15, 1 June 2005 (UTC)}}</nowiki></code>
 
will yield: {{Unsigned|Example|11:15, 1 June 2005 (UTC)}}
 
 
<includeonly>
[[Category:Wiki templates]]
</includeonly>
</includeonly>

Latest revision as of 04:22, 7 March 2018

{{Unsigned/doc}} is used to label unsigned comments in a conversation.

Usage

<templatedata> { "description": "Labels unsigned comments in a conversation.", "params": { "1": { "label": "User name or IP", "type": "string/wiki-user-name", "required": true, "description": "Name or IP address of the user who left the comment. The value is case-sensitive." }, "2": { "label": "Time and date", "type": "string", "description": "Timestamp from the edit history." } } } </templatedata>

The time stamps in the edit history list for any talk page appear in UTC, or in the local time that is set in your preferences. If you did not adjust the time in your preferences, then the times in the edit history list are in UTC.

Talk page times should always be in UTC. So be sure to use UTC time when using this unsigned template. Adjust the time, if necessary, using the difference you designated between the server UTC time and local time. If this is too difficult to figure out, or you are in a hurry, then leave out the time, and only put in the date.

{{subst:Unsigned|user name or IP|time, day month year (UTC)}}

Example

Typing: {{subst:Unsigned|Example|11:15, 1 June 2005 (UTC)}}

will yield: — Preceding unsigned comment added by Example (talkcontribs) 11:15, 1 June 2005 (UTC)