Jump to content

Template:Copied/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
m typo
The documentation should recommend the optimal usage of the template. (Also, it's quite confusing otherwise, as it does not match the "from" parameter.)
Line 9: Line 9:


'''Basic'''
'''Basic'''
<pre>{{Copied|from=|from_oldid=|to=|diff=}}</pre>
<pre>{{Copied|from=|from_oldid=|to=|to_diff=}}</pre>


'''Full'''
'''Full'''

Revision as of 06:11, 25 November 2018

This template is meant to simplify the merge/split procedures by providing one template that can be used on the talk pages of source and destination articles or other pages. Intended for use on talk pages, this template identifies that text and/or other creative content has been copied or moved from one page to another, recording attribution dependencies as described by Wikipedia:Copying within Wikipedia.

Usage

  • Be sure to use the exact page names of the articles.
  • The page names are automatically linked, so this template will not behave as expected if the names are enclosed in link brackets ([[ – ]]).

Basic

{{Copied|from=|from_oldid=|to=|to_diff=}}

Full

{{Copied
|from       =
|from_oldid =
|to         =
|diff       =
|to_diff    =
|to_oldid   =
|date       =
|small      =
}}

Parameters

  • from is the name of the source page, where the text originally appeared.
  • from_oldid is the ID of the page revision of the source page from which the content was copied.
    From the permanent link url: http://en.wikipedia.org/w/index.php?title=PAGENAME&oldid=from_oldid
  • to is the destination page, where the content was placed.
  • diff is the diff or permanent link of the destination page edit when the text was placed (in the case of a newly created page: the permanent url of the first version of the destination page).
    These parameters are alternatives to the above and may be omitted if diff is used (and vice versa):
    • to_diff is the ID of the page revision of the destination page that includes the copied content.
    • to_oldid is the ID of the page revision of the destination page before the content was copied. If the copy created the destination page, just omit to_oldid.
    From the url: http://en.wikipedia.org/w/index.php?title=PAGENAME&diff=to_diff&oldid=to_oldid
  • date is the date, time and date, or timestamp that the copying took place at.
  • small is passed on to the {{Tmbox}} that is used to generate the message box. If set to yes, makes it a smaller right floating message box.

Example

  • {{Copied |from=Squirrel |from_oldid=345129608 |to=Tree squirrel |diff=http://en.wikipedia.org/w/index.php?title=Tree_squirrel&diff=345159499&oldid=301353806 |date=01:00, 01 January 2011}} and
  • {{Copied |from=Squirrel |from_oldid=345129608 |to=Tree squirrel |to_diff=345159499 |to_oldid=301353806 |date=01:00, 01 January 2011}}
both display:

Maintenance categories

See also


TemplateData

Intended for use on talk pages, this template identifies that text and/or other creative content has been copied or moved from one page to another, recording attribution dependencies as described by [[Wikipedia:Copying within Wikipedia]].

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
smallsmall

If set to yes, makes it a smaller right floating message box.

Example
yes
Stringoptional
from_oldidfrom_oldid

The ID of the page revision of the source page from which the content was copied.

Numberrequired
fromfrom

Name of the source page, where the text originally appeared.

Stringrequired
toto

The destination page, where the content was placed.

Stringrequired
to_oldidto_oldid

The ID of the page revision of the destination page before the content was copied. If the copy created the destination page, just omit to_oldid. (May be omitted if diff parameter is used.)

Numberoptional
to_diffto_diff

The ID of the page revision of the destination page that includes the copied content. (May be omitted if diff parameter is used.)

Numberoptional
diffdiff

The diff or permanent link of the destination page edit when the text was placed (in the case of a newly created page: the permanent url of the first version of the destination page).

URLsuggested
datedate

The date, time and date, or timestamp that the copying took place at.

Stringsuggested