Custom author name breaks when it's a template
See original GitHub issueSummary:
The custom author name setting expects a username, unlike for example the similar field in UploadWizard. For example, when setting a custom author name that contains a template, it is wrapped in a User link.
For example, this revision contains:
|author=[[User:{{User:Samwilson/photographer|camera=g6}}|{{User:Samwilson/photographer|camera=g6}}]]
Steps to reproduce:
- Set a custom author name to a non-username string.
- Upload a photo.
- View the photo on Commons and look at the
author=
field.
It should only treat the custom author name as a username if it actually is. I’m not sure how UploadWizard does it, but the feature works well there.
Device and Android version:
- LG G6
What make and model device (e.g., Samsung J7) did you encounter this on? What Android version (e.g., Android 4.0 Ice Cream Sandwich or Android 6.0 Marshmallow) are you running? Is it the stock version from the manufacturer or a custom ROM ?
Commons app version:
- 2.11.0~93b948d20
Would you like to work on the issue?
No.
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
How to change the default @author namein IntelliJ-IDEA ...
I'm searching a way to declare a template that can be shared by other project team members. It's important that the author name...
Read more >WordPress Author Pages: How to Make Custom ... - ThemeIsle
Make and edit WordPress author pages with help from plugins, page builders, and custom code. We show you everything you must know about...
Read more >How to Customize the Author's Page in WordPress
If you feel limited by your theme in creating a customized author's page in WordPress, here are three methods to create it.
Read more >Create a custom template in Pages on Mac - Apple Support
In the template chooser, Control-click the template name, then choose Rename or Delete. If you're renaming, type a new name, then press Return....
Read more >Custom Template Not Showing since v5.10.2 - WordPress.org
What is the name of the custom template file you've tried to use? It sounds like YARPP doesn't think it's valid and so...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@misaochan thank you! that worked, now it’s uploading properly again! And no, the logs weren’t empty, but all they had for the current day was e.g.
[file-logging-thread-1] [ContributionsSyncAdapter] : Received image File:2019-07-12 Fremantle Bowling Club, 4.jpg
and nothing about uploading.Anyway, the issue at hand still exists; custom author names can’t contain templates.
The string I get the bug with is
{{User:Samwilson/photographer|camera=g6}}
, i.e. anything that’s not a username, because the app then takes that string and puts it into[[User:x|x]]
(wherex
is the string).