Jump to content

Template talk:Copied

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
(Redirected from Module talk:Copied/sandbox)

No redirect from

[edit]

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)[reply]

 Done Sohom (talk) 04:52, 5 September 2024 (UTC)[reply]

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. Use from instead of from1.
Script warning: from_oldid is not a row-based parameter. Use from_oldid instead of from_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)[reply]

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)[reply]

{Check talk}

[edit]

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)[reply]

Backend rewrite

[edit]

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 froms' 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)[reply]