Repository navigation
Read the rename rule from the parser function's own arguments - #115
Merged
Merged
Conversation
`{{#batchupload:Pics|rename = /^IMG_/-->Trip-}}` now sets the rename
rule. `+rename` keeps working, but is deprecated. The rule is taken from
the parser function's arguments rather than cut out of the file page
text in the browser, which is what needed the `+`.
`rename=` is no longer passed to the template: `{{#batchupload:T|rename=x}}`
used to give template T a parameter `rename`, and now sets the rule.
A rule that is not a pattern between delimiters, `-->` and a replacement
now shows a warning on the upload area, which then starts full, instead
of being left in every file page's text. A rule inside `<nowiki>` can
contain `|`. A page still served from the parser cache renames nothing,
and shows the `+rename` warning, until it is parsed again.
Special:BatchUpload is unaffected.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
It leads with a table of Find and Replace with settings and what each makes of one file name, and gives the rename parameter as a table of its parts. It now also says that a page rule without g replaces only the first match, that spaces after --> are kept, and that the uploader can still change the rule. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
alistair3149
force-pushed
the
read-rename-on-server
branch
from
October 8, 2026 16:40
d3ccc46 to
f502862
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
{{#batchupload:Pics|rename = /^IMG_/-->Trip-}}now sets the renamerule.
+renamekeeps working, but is deprecated. The rule is taken fromthe parser function's arguments rather than cut out of the file page
text in the browser, which is what needed the
+.rename=is no longer passed to the template:{{#batchupload:T|rename=x}}used to give template T a parameter
rename, and now sets the rule.A rule that is not a pattern between delimiters,
-->and a replacementnow shows a warning on the upload area, which then starts full, instead
of being left in every file page's text. A rule inside
<nowiki>cancontain
|. A page still served from the parser cache renames nothing,and shows the
+renamewarning, until it is parsed again.Special:BatchUpload is unaffected.
The README's renaming section is rewritten around a table of examples and a table of the
parameter's parts.