yarl / pattypan

Upload files to Wikimedia Commons. The Spreadsheet Way.
https://commons.wikimedia.org/wiki/Commons:Pattypan
MIT License
56 stars 37 forks source link

[[Category:[[Category:CatName]]]] #125

Open JoKalliauer opened 3 years ago

JoKalliauer commented 3 years ago

If you enter [[Category:CatName]] into the *.xls it gets [[Category:[[Category:CatName]]]]

Bildschirmfoto von 2021-04-02 15-11-20

Abbe98 commented 3 years ago

What is "the *.xml"? Do you mean the Template sheet?

JoKalliauer commented 3 years ago

What is "the *.xml"? Do you mean the Template sheet?

Sorry I meant the Excel-Spreedsheet (*.xls)

Abbe98 commented 3 years ago

I'm unable to reproduce this with the current information. Having tried:

  1. To enter "[[Category:CatName]]" in Libre office and then continuing to Pattypan's "Validate & Upload" flow.

  2. To enter "[[Category:CatName]]" in the "write wikicode" section in the "choose columns" step during the "Generate Spreadsheet" flow.

Would you be able to share the contents of your Template sheet?

JoKalliauer commented 3 years ago

I forgot to mention, that I use the {{Information-template, anyhow here the full information to reproduce it: (Some information might be meticulous and irrelevant)

How to reproduce

=>Results in

Bildschirmfoto von 2021-04-12 20-58-05_Problem

Problem

'=={{int:filedesc}}==
{{Information
 |description = ${description}
 |date = ${date}
 |source = {{own based|https://github.com/yarl/pattypan/releases/tag/v20.04}}
 |author = [https://github.com/yarl Paweł Marynowski] and others
 |permission = {{free screenshot|MIT}}
 |other versions = 
}}

=={{int:license-header}}==
{{free screenshot|MIT}}

<#if categories ? has_content>
<#list categories ? split(";") as category>
[[Category:${category?trim}]]
</#list>
<#else>{{subst:unc}}
</#if>

So [[Category:${category?trim}]] has the [[Category: hardcoded, and there is imho no check if ${category?trim} does start with [[ or with Category:

Copyright of the images

source: https://github.com/yarl/pattypan

license: Expat-License

author: Paweł Marynowski and others

Version:

pattypan: 20.04

OS: Fedora 32

Spread-sheet-tool: LibreOffice 7.0 calc