User:Dušan Kreheľ/Bot:Merging identical references by the bot
(Redirected from User:Dušan Kreheľ/Bot:Merging identical references by bot)
What is going on
editDescription
editMultiple simple references with the same content are replaced template by one reference definition and the other uses are called via reference names. New reference definitions may be stored in {{Reflist}}.
Example
editInput:
Output:
Online examples
editLook on ptwiki.
Terms and the detail definitions
editSimple identical references
editThe first reference tag with none key or group parameter are changing.
The right first reference tag
editThe wrong first reference tags
editReference name
editThe reference name is unique on the actual update page.
Syntax
editPREFIX + INDEX + "-" + DATE
- PREFIX: Localized text of "Unnamed_".
- DATE: The UTC date in format YYYYMMDDHHMMSS.
- INDEX: The number of the change in actual page change incremented at every new reference definition. If the reference is as the one, so INDEX is none/empty.
The implementation does not generate reference naming based on the content of the reference. When created, reference names are unique throughout the Wikimedia.
Example
editUnnamed-20230319001122 Unnamed_3-20230319001122
Syntax (deprected)
editPREFIX + DATE + "-" + INDEX
- PREFIX: Localized text of "Unnamed-".
- DATE: The UTC date in format YYYYMMDDHHMMSS.
- INDEX: The number of the change in actual page change incremented at every new reference definition. If the reference is as the one, so INDEX is none/empty.
Example
editUnnamed-20230319001122 Unnamed-20230319001122-3
Reference name (deprected)
editThe reference name is unique in Wikimedia Movement.
Syntax
editPREFIX + TIME + INDEX
- PREFIX: Localized text of "Unnamed-".
- TIME: The count seconds (in Unix time) from 2022-02-22 22:22:22 UTC) as the tetrasexagesimal number with the digits (0-63): 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzżž (On 2023-03-15 it changed -_ on żž).
- INDEX: The number of the change in actual page change incremented at every new reference definition.
Example
editUnnamed-10649374-1
Reference name (deprected n. 2)
editThe reference name is unique on the actual update page.
Syntax
editPREFIX + INDEX
- PREFIX: Localized text of "Unnamed-".
- INDEX: The number of the change in actual page change incremented at every new reference definition. If the reference is as the one, so INDEX is none/empty.
Example
editUnnamed-2
Implementation
edit- In it, newly defined references are not added to Reflist template.
- Namespace: Main / 0.
- Local wikis:
- jawiki: The reference with the content string "access-date" and "accessdate" are skipping.