8000 feat(Import): Add support to merge several pages into a stage during import by hjpalpha · Pull Request #5958 · Liquipedia/Lua-Modules · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat(Import): Add support to merge several pages into a stage during import #5958

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hjpalpha
Copy link
Collaborator

Summary

Sometimes groups are spread across several pages due to runtime/memory limitations and making them easier to edit.
If those groups consist of brackets instead of groupTables this currently means we can not import them in prize pool due to the prize pool assuming the brackets belong to different stages.

To be able to fetch data from different pages for the same stage this PR adds the option to input several pagenames into the tournamentX parameters with || (in wikicode {{!}}{{!}}) as delimiter (this delimiter can not be used in pagenames, and hence is imo preferabel to others that could be used in pagenames).

example code (on sc2):

{{SoloPrizePool|qualifies1=Esports_World_Cup/2025|qualifies1name=Esports World Cup 2025|dev=hjp
|tournament1=2025_DreamHack/Dallas/Bracket_A{{!}}{{!}}2025_DreamHack/Dallas/Bracket_B{{!}}{{!}}2025_DreamHack/Dallas/Bracket_C{{!}}{{!}}2025_DreamHack/Dallas/Bracket_D
|tournament2=2025_DreamHack/Dallas
}}

How did you test this change?

dev

Copy link
Collaborator
@ElectricalBoy ElectricalBoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about:

  • using comma as separator - I know it is a valid character for a pagename, but is it ever used from a practical perspective?
  • allowing a JSON array to be passed in, i.e., make pageNameString be a pagename string or string representation of a JSON array?

I'm just not a huge fan of introducing a new separator ({{!}}{{!}}); otherwise lgtm

@hjpalpha
Copy link
Collaborator Author
hjpalpha commented May 24, 2025

how about:

  • using comma as separator - I know it is a valid character for a pagename, but is it ever used from a practical perspective?
  • allowing a JSON array to be passed in, i.e., make pageNameString be a pagename string or string representation of a JSON array?

I'm just not a huge fan of introducing a new separator ({{!}}{{!}}); otherwise lgtm

input pattern is up for discussion of course
lets hear what the others have to say about it^^
also fwiw the || sep is used in quite a few places already on several wikis

@mbergen
Copy link
Collaborator
mbergen commented May 24, 2025

I also dislike the separator - i don't really mind which of the other options listed we use, but tournament1_2 could also be an option

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0