Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JoKalliauer opened this issue Apr 2, 2021 · 4 comments
Open

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

JoKalliauer opened this issue Apr 2, 2021 · 4 comments
Labels

Comments

@JoKalliauer
Copy link

JoKalliauer commented Apr 2, 2021

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

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

@Abbe98
Copy link
Collaborator

Abbe98 commented Apr 11, 2021

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

@JoKalliauer
Copy link
Author

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

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

@Abbe98
Copy link
Collaborator

Abbe98 commented Apr 12, 2021

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
Copy link
Author

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

  • Save Pattypan_uploader_main_window.png on your lokal disk in a new, empty folder without subfolders
  • cd ~/prgm/pattypan
  • run java -Duser.language=de -jar pattypan.jar "${@}"
  • choose generate Table
  • change to the folder with the file
  • choose {{Information}}-template
  • save the template
  • add [[Category:Screenshots of Pattypan]] in the spreadsheet in the field below the categories-field
  • choose validate and upload
  • choose pattypan 2021-04-12 20_55_19.xls
  • next

=>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

@Abbe98 Abbe98 added the (docs) label Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants
@Abbe98 @JoKalliauer and others