Template talk:Copied
![]() | This template was considered for merging with Template:Merged-from on 12 March 2025. The result of the discussion was "keep". |
![]() | Template:Copied is permanently protected from editing because it is a heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit template-protected}} to notify an administrator or template editor to make the requested edit. Usually, any contributor may edit the template's documentation to add usage notes or categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
![]() | Text has been copied to or from this page; see the list below. The source pages now serve to provide attribution for the content in the destination pages and must not be deleted as long as the copies exist. For attribution and to access older versions of the copied text, please see the history links below.
|
|
|
This page has archives. Sections older than 90 days may be automatically archived by Lowercase sigmabot III when more than 4 sections are present. |
No redirect from
[edit]![]() | This edit request has been answered. Set the |answered= parameter to no to reactivate your request. |
Add an option for the `from` argument to be a {{no redirect}}
link.
Useful in cases where the 'from' article is now a redirect, since it is the history of that page that is of interest - not the article it redirects to. Tule-hog (talk) 19:18, 2 September 2024 (UTC)
Bug with numbered parameters
[edit]Despite:
local from_oldid = args["from_oldid"] or args["from_oldid1"] or "" local from = args["from"] or args["from1"] or ""
in the module, neither |from=
nor |from_oldid1=
are working, and they throw errors:
Script warning:
from
is not a row-based parameter. Usefrom
instead offrom1
.
Script warning:from_oldid
is not a row-based parameter. Usefrom_oldid
instead offrom_oldid1
.
This is against the intent of the code, and makes it confusingly inconsistent. Same problem is also affecting {{Split article}}
and maybe some other templates in this class. — SMcCandlish ☏ ¢ 😼 04:47, 23 December 2024 (UTC)
PS: |from2=
is also failing in this template (probably along with other numbered params), so it's even less consistent with the other templates, and is mandatorily used as a complete template multiple times if multiple copying events must be recorded. This is "suboptimal". — SMcCandlish ☏ ¢ 😼 04:56, 23 December 2024 (UTC)
{Check talk}
[edit]![]() | It is requested that an edit be made to the template-protected template at Template:Copied. (edit · history · last · links · sandbox · edit sandbox · sandbox history · sandbox last edit · sandbox diff · test cases · transclusion count · protection log) This template must be followed by a complete and specific description of the request, so that an editor unfamiliar with the subject matter could complete the requested edit immediately.
Edit requests to template-protected pages should only be used for edits that are either uncontroversial or supported by consensus. If the proposed edit might be controversial, discuss it on the protected page's talk page before using this template. Consider making changes first to the template's sandbox and test them thoroughly here before submitting an edit request. To request that a page be protected or unprotected, make a protection request. When the request has been completed or denied, please add the |
Add {{check talk |nocat={{{nocat|}}}}}
to the beginning of the template, to make sure it is placed correctly (nocat
allows for testing). Tule-hog (talk) 02:34, 2 April 2025 (UTC)
Backend rewrite
[edit]![]() | It is requested that an edit be made to the template-protected module at Module:Copied. (edit · history · last · links · sandbox · edit sandbox · sandbox history · sandbox last edit · sandbox diff · transclusion count · protection log) This template must be followed by a complete and specific description of the request, so that an editor unfamiliar with the subject matter could complete the requested edit immediately.
Edit requests to template-protected pages should only be used for edits that are either uncontroversial or supported by consensus. If the proposed edit might be controversial, discuss it on the protected page's talk page before using this template. Consider making changes first to the module's sandbox before submitting an edit request. To request that a page be protected or unprotected, make a protection request. When the request has been completed or denied, please add the |
I have made some modifications to the module so as to invoke it from {{merged-from}}
(for reasons detailed at request link in the hatnote).
The only change that should affect normal {{Copied}}
usage is the to
parameters will now default to the page the template is invoked on (I previously requested this at #Merged-from nesting). I have also added talk
parameters which link to the from
s' talk pages, it defaults off (so no change unless explicitly desired).
Other than those modifications, the rest are basically aesthetic to match the language of the current {{merged-from}}
(they only apply when invoked from the rewritten merged-from - I use a meta-parameter mergedFrom
which shouldn't be used manually). (I also distinguished Category:Wikipedia pages using merged-from template without oldid, which might be unnecessary.) Tule-hog (talk) 03:42, 2 April 2025 (UTC)
- @Tule-hog: at the risk of scope creep: your thoughts on backend rewrites of other WP:CWW-adjacent templates, like {{split}} or {{merge-to}}? (Non-template editor comment three weeks later) Rotideypoc41352 (talk · contribs) 04:20, 25 April 2025 (UTC)
- Those templates are for proposals, whereas
{{merged-from}}
is for completed merges (note merged-from is the target of{{merged}}
, so usable on source pages as well as destinations; however, use on a source page requires explicitly setting to & from, since 'to' defaults to the transcluding page). - Looks like they both already support multiple articles per banner, so I have no improvements for those in mind. Tule-hog (talk) 17:27, 25 April 2025 (UTC)
- Ah, sorry, @Tule-hog, I meant {{split article}} and {{merged-to}} (with a "d". I am sparing {{afd-merged-from}} for now because I'm not sure how much Module:Copied would have to change for that one). Thanks! Rotideypoc41352 (talk · contribs) 20:22, 25 April 2025 (UTC)
- Those do seem like they could potentially benefit from unifying with Module:Copied, but I'll hold off to see if this initial request goes through. Tule-hog (talk) 23:15, 25 April 2025 (UTC)
- Ah, sorry, @Tule-hog, I meant {{split article}} and {{merged-to}} (with a "d". I am sparing {{afd-merged-from}} for now because I'm not sure how much Module:Copied would have to change for that one). Thanks! Rotideypoc41352 (talk · contribs) 20:22, 25 April 2025 (UTC)
- Those templates are for proposals, whereas
- I see quite a few differences on Template:Merged-from/testcases. Can you confirm all these changes are intentional? — Martin (MSGJ · talk) 07:18, 6 May 2025 (UTC)
- Yep, all intentional (see corresponding request for justification). Importantly though, it should be completely backwards compatible - the exact same information should be displayed when invoked with the original template arguments (with minor aesthetic differences, which could be eliminated if desired); tested on transclusions and verified existing parameters. Tule-hog (talk) 15:51, 6 May 2025 (UTC)
- Okay, sorry this has taken so long to be looked at, but I intend to implement this tomorrow (assuming no one else beats me to it!) — Martin (MSGJ · talk) 21:24, 6 May 2025 (UTC)
- Yep, all intentional (see corresponding request for justification). Importantly though, it should be completely backwards compatible - the exact same information should be displayed when invoked with the original template arguments (with minor aesthetic differences, which could be eliminated if desired); tested on transclusions and verified existing parameters. Tule-hog (talk) 15:51, 6 May 2025 (UTC)