├── .eslintrc.json
├── .git-blame-ignore-revs
├── .gitattributes
├── .github
├── PULL_REQUEST_TEMPLATE.md
└── workflows
│ ├── deploy test.yml
│ ├── deploy.yml
│ ├── luacheck.yml
│ ├── protect new wiki modules.yml
│ ├── protect new wiki templates.yml
│ ├── resources.yml
│ └── scheduled.yml
├── .gitignore
├── .luarc.json
├── .stylelintrc.json
├── .vscode
├── extensions.json
└── settings.json
├── Gruntfile.js
├── LICENSE.md
├── README.md
├── javascript
├── README.md
└── commons
│ ├── BattleRoyale.js
│ ├── Bracket.js
│ ├── Collapse.js
│ ├── Commons_mainpage.js
│ ├── Commons_tools.js
│ ├── CopyToClipboard.js
│ ├── Countdown.js
│ ├── Crosstable.js
│ ├── FilterButtons.js
│ ├── Liquipedia_links.js
│ ├── Mainpage.js
│ ├── Miscellaneous.js
│ ├── PanelBoxCollapsible.js
│ ├── Prizepooltable.js
│ ├── RankingTable.js
│ ├── Selectall.js
│ ├── SwitchButtons.js
│ └── Tabs.js
├── lua
├── .busted
├── .luacheckrc
├── .luacov
├── 3rd
│ ├── jsonlua
│ │ ├── README.md
│ │ └── mock_json.lua
│ └── mw
│ │ ├── README.md
│ │ ├── html.lua
│ │ └── libraryUtil.lua
├── definitions
│ ├── liquipedia_db.lua
│ └── mw.lua
├── plugins
│ └── sumneko_plugin.lua
├── spec
│ ├── abbreviation_spec.lua
│ ├── array_spec.lua
│ ├── class_spec.lua
│ ├── condition_spec.lua
│ ├── currency_spec.lua
│ ├── date_ext_spec.lua
│ ├── date_range_spec.lua
│ ├── feature_flag_spec.lua
│ ├── flags_spec.lua
│ ├── fn_util_spec.lua
│ ├── format_table_spec.lua
│ ├── game_spec.lua
│ ├── golden_masters
│ │ ├── LeagueIcon.generate_copy_paste_gen.txt
│ │ ├── infobox_league_apexlegends.txt
│ │ ├── infobox_league_counterstrike.txt
│ │ ├── infobox_league_dota2.txt
│ │ ├── infobox_league_leagueoflegends.txt
│ │ ├── infobox_league_mobilelegends.txt
│ │ ├── infobox_league_overwatch.txt
│ │ ├── infobox_league_rainbowsix.txt
│ │ ├── infobox_league_rocketleague.txt
│ │ ├── infobox_league_starcraft2.txt
│ │ ├── infobox_league_valorant.txt
│ │ ├── match2_matchlist_smoke_apexlegends.txt
│ │ ├── match2_matchlist_smoke_counterstrike.txt
│ │ ├── match2_matchlist_smoke_dota2.txt
│ │ ├── match2_matchlist_smoke_leagueoflegends.txt
│ │ ├── match2_matchlist_smoke_mobilelegends.txt
│ │ ├── match2_matchlist_smoke_overwatch.txt
│ │ ├── match2_matchlist_smoke_rainbowsix.txt
│ │ ├── match2_matchlist_smoke_rocketleague.txt
│ │ ├── match2_matchlist_smoke_starcraft2.txt
│ │ ├── match2_matchlist_smoke_valorant.txt
│ │ ├── prize_pool.txt
│ │ ├── squad_row_apexlegends.txt
│ │ ├── squad_row_counterstrike.txt
│ │ ├── squad_row_dota2.txt
│ │ ├── squad_row_leagueoflegends.txt
│ │ ├── squad_row_mobilelegends.txt
│ │ ├── squad_row_overwatch.txt
│ │ ├── squad_row_rocketleague.txt
│ │ ├── squad_row_starcraft2.txt
│ │ ├── squad_row_valorant.txt
│ │ ├── transfer_row_apexlegends.txt
│ │ ├── transfer_row_counterstrike.txt
│ │ ├── transfer_row_dota2.txt
│ │ ├── transfer_row_leagueoflegends.txt
│ │ ├── transfer_row_mobilelegends.txt
│ │ ├── transfer_row_overwatch.txt
│ │ ├── transfer_row_rainbowsix.txt
│ │ ├── transfer_row_rocketleague.txt
│ │ ├── transfer_row_starcraft2.txt
│ │ └── transfer_row_valorant.txt
│ ├── hidden_data_box_spec.lua
│ ├── i18n_spec.lua
│ ├── icon_spec.lua
│ ├── image_spec.lua
│ ├── infobox_spec.lua
│ ├── league_icon_spec.lua
│ ├── locale_spec.lua
│ ├── logic_spec.lua
│ ├── match2_spec.lua
│ ├── math_util_spec.lua
│ ├── medals_spec.lua
│ ├── metadata_generator_spec.lua
│ ├── name_order_spec.lua
│ ├── operator_spec.lua
│ ├── opponent_display_spec.lua
│ ├── opponent_spec.lua
│ ├── ordinal_spec.lua
│ ├── orm_spec.lua
│ ├── page_spec.lua
│ ├── page_variable_namespace_spec.lua
│ ├── placement_spec.lua
│ ├── prize_pool_spec.lua
│ ├── reference_cleaner_spec.lua
│ ├── region_spec.lua
│ ├── squad_spec.lua
│ ├── standings_storage_spec.lua
│ ├── string_utils_spec.lua
│ ├── table_spec.lua
│ ├── tabs_spec.lua
│ ├── team_card_storage_spec.lua
│ ├── test_helper.lua
│ ├── text_sanitizer_spec.lua
│ ├── tier_spec.lua
│ ├── timezone_spec.lua
│ ├── transfer_spec.lua
│ ├── tree_util_spec.lua
│ ├── variables_spec.lua
│ ├── vod_link_spec.lua
│ ├── warning_box_spec.lua
│ └── widgets
│ │ └── html_spec.lua
├── test_assets
│ ├── lpdb_placement.lua
│ ├── lpdb_player.lua
│ ├── lpdb_tournament.lua
│ ├── opponent_test_config.lua
│ ├── standings.lua
│ ├── team_template_data.lua
│ └── tournaments.lua
└── wikis
│ ├── ageofempires
│ ├── Earnings.lua
│ ├── Faction
│ │ ├── Data.lua
│ │ └── IconData.lua
│ ├── FilterButtons
│ │ └── Config.lua
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── HiddenDataBox
│ │ └── Custom.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── Faction
│ │ │ └── Custom.lua
│ │ ├── League
│ │ │ └── Custom.lua
│ │ ├── Map
│ │ │ └── Custom.lua
│ │ ├── Person
│ │ │ └── Player
│ │ │ │ └── Custom.lua
│ │ ├── Series
│ │ │ └── Custom.lua
│ │ └── Team
│ │ │ └── Custom.lua
│ ├── LegacyBracketMatchSummary.lua
│ ├── MainPageLayout
│ │ └── data.lua
│ ├── Match
│ │ └── Legacy.lua
│ ├── MatchGroup
│ │ ├── Input
│ │ │ └── Custom.lua
│ │ └── Legacy
│ │ │ └── Default.lua
│ ├── MatchMaps
│ │ └── Legacy.lua
│ ├── MatchSummary.lua
│ ├── MatchSummary
│ │ └── Ffa.lua
│ ├── NotabilityChecker
│ │ └── config.lua
│ ├── ParticipantTable
│ │ └── Custom.lua
│ ├── Player
│ │ └── Display
│ │ │ └── Custom.lua
│ ├── PrizePool
│ │ ├── Award
│ │ │ └── Custom.lua
│ │ └── Custom.lua
│ └── Tier
│ │ ├── Custom.lua
│ │ └── Data.lua
│ ├── apexlegends
│ ├── FilterButtons
│ │ └── Config.lua
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── HiddenDataBox
│ │ └── Custom.lua
│ ├── HighlightConditions.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── Character
│ │ │ └── Custom.lua
│ │ ├── League
│ │ │ └── Custom.lua
│ │ ├── Map
│ │ │ └── Custom.lua
│ │ ├── Person
│ │ │ └── Player
│ │ │ │ └── Custom.lua
│ │ ├── Team
│ │ │ └── Custom.lua
│ │ └── Weapon
│ │ │ └── Custom.lua
│ ├── MainPageLayout
│ │ └── data.lua
│ ├── Match
│ │ └── Legacy.lua
│ ├── MatchGroup
│ │ └── Input
│ │ │ └── Custom.lua
│ ├── MatchSummary.lua
│ ├── MatchSummary
│ │ └── Ffa.lua
│ ├── NotabilityChecker
│ │ └── config.lua
│ ├── PrizePool
│ │ ├── Custom.lua
│ │ └── Legacy
│ │ │ └── Custom.lua
│ └── Tier
│ │ └── Custom.lua
│ ├── arenafps
│ ├── FilterButtons
│ │ └── Config.lua
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── InGameRoles.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── League
│ │ │ └── Custom.lua
│ │ └── Person
│ │ │ └── Player
│ │ │ └── Custom.lua
│ ├── LegacyBracketMatchSummary.lua
│ ├── MainPageLayout
│ │ └── data.lua
│ ├── Match
│ │ └── Legacy.lua
│ ├── MatchGroup
│ │ ├── Input
│ │ │ └── Custom.lua
│ │ └── Legacy
│ │ │ └── Default.lua
│ ├── MatchMaps
│ │ └── Legacy.lua
│ ├── MatchSummary.lua
│ └── MatchSummary
│ │ └── Ffa.lua
│ ├── artifact
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── Info.lua
│ ├── Match
│ │ └── Legacy.lua
│ ├── MatchGroup
│ │ ├── Input
│ │ │ └── Custom.lua
│ │ └── Legacy
│ │ │ └── Default.lua
│ └── MatchSummary.lua
│ ├── autochess
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── Info.lua
│ ├── MatchGroup
│ │ └── Input
│ │ │ └── Custom.lua
│ ├── MatchSummary.lua
│ └── MatchSummary
│ │ └── Ffa.lua
│ ├── battalion
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── Info.lua
│ ├── Match
│ │ └── Legacy.lua
│ ├── MatchGroup
│ │ ├── Input
│ │ │ └── Custom.lua
│ │ └── Legacy
│ │ │ ├── Default.lua
│ │ │ └── MatchList.lua
│ └── MatchSummary.lua
│ ├── battlerite
│ ├── Info.lua
│ ├── MatchGroup
│ │ └── Input
│ │ │ └── Custom.lua
│ └── MatchSummary.lua
│ ├── brawlhalla
│ ├── Brkts
│ │ └── WikiSpecific.lua
│ ├── Earnings.lua
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── HiddenDataBox
│ │ └── Custom.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── League
│ │ │ └── Custom.lua
│ │ └── Person
│ │ │ └── Player
│ │ │ └── Custom.lua
│ ├── Match
│ │ └── Legacy.lua
│ ├── MatchGroup
│ │ └── Input
│ │ │ └── Custom.lua
│ ├── MatchSummary.lua
│ ├── PrizePool
│ │ └── Custom.lua
│ └── Tier
│ │ └── Data.lua
│ ├── brawlstars
│ ├── FilterButtons
│ │ └── Config.lua
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── HiddenDataBox
│ │ └── Custom.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── League
│ │ │ └── Custom.lua
│ │ ├── Map
│ │ │ └── Custom.lua
│ │ ├── Person
│ │ │ └── Player
│ │ │ │ └── Custom.lua
│ │ └── Unit
│ │ │ └── Brawler
│ │ │ └── Custom.lua
│ ├── MainPageLayout
│ │ └── data.lua
│ ├── Match
│ │ └── Legacy.lua
│ ├── MatchGroup
│ │ ├── Input
│ │ │ └── Custom.lua
│ │ └── Legacy
│ │ │ └── Default.lua
│ ├── MatchMaps
│ │ └── Legacy.lua
│ ├── MatchSummary.lua
│ ├── NotabilityChecker
│ │ └── config.lua
│ ├── PrizePool
│ │ └── Custom.lua
│ └── Tier
│ │ └── Data.lua
│ ├── callofduty
│ ├── FilterButtons
│ │ └── Config.lua
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── League
│ │ │ └── Custom.lua
│ │ ├── Map
│ │ │ └── Custom.lua
│ │ ├── Person
│ │ │ └── Player
│ │ │ │ └── Custom.lua
│ │ └── Team
│ │ │ └── Custom.lua
│ ├── LegacyBracketMatchSummary.lua
│ ├── MainPageLayout
│ │ └── data.lua
│ ├── Match
│ │ └── Legacy.lua
│ ├── MatchGroup
│ │ ├── Input
│ │ │ └── Custom.lua
│ │ └── Legacy
│ │ │ └── Default.lua
│ ├── MatchMaps
│ │ └── Legacy.lua
│ ├── MatchSummary.lua
│ ├── MatchSummary
│ │ └── Ffa.lua
│ └── NotabilityChecker
│ │ └── config.lua
│ ├── chess
│ ├── ChessOpenings.lua
│ ├── ChessOpenings
│ │ └── Data.lua
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── Company
│ │ │ └── Custom.lua
│ │ └── League
│ │ │ └── Custom.lua
│ ├── MatchGroup
│ │ └── Input
│ │ │ └── Custom.lua
│ └── MatchSummary.lua
│ ├── clashofclans
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── Building
│ │ │ └── Custom.lua
│ │ ├── League
│ │ │ └── Custom.lua
│ │ └── Team
│ │ │ └── Custom.lua
│ ├── MatchGroup
│ │ └── Input
│ │ │ └── Custom.lua
│ ├── MatchSummary.lua
│ └── NotabilityChecker
│ │ └── config.lua
│ ├── clashroyale
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── League
│ │ │ └── Custom.lua
│ │ ├── Patch
│ │ │ └── Custom.lua
│ │ └── Person
│ │ │ └── Player
│ │ │ └── Custom.lua
│ ├── Match
│ │ └── Legacy.lua
│ ├── MatchGroup
│ │ ├── Input
│ │ │ └── Custom.lua
│ │ └── Legacy
│ │ │ ├── BMS.lua
│ │ │ ├── Default.lua
│ │ │ └── MatchList.lua
│ └── MatchSummary.lua
│ ├── commons
│ ├── Abbreviation.lua
│ ├── AgeCalculation.lua
│ ├── Array.lua
│ ├── AutoInlineIcon.lua
│ ├── AutomaticPointsTable.lua
│ ├── AutomaticPointsTable
│ │ ├── Display.lua
│ │ └── MinifiedDisplay.lua
│ ├── Bracket
│ │ └── Template.lua
│ ├── BracketAlias.lua
│ ├── Brkts
│ │ ├── WikiSpecific.lua
│ │ └── WikiSpecific
│ │ │ └── Base.lua
│ ├── BroadcastTalentTable.lua
│ ├── BroadcasterCard.lua
│ ├── Character.lua
│ ├── CharacterIcon.lua
│ ├── Class.lua
│ ├── Condition.lua
│ ├── Count.lua
│ ├── Countdown.lua
│ ├── CountryRepresentation.lua
│ ├── Currency.lua
│ ├── Currency
│ │ └── Data.lua
│ ├── Date
│ │ └── Ext.lua
│ ├── DisplayUtil.lua
│ ├── Earnings.lua
│ ├── Earnings
│ │ ├── Base.lua
│ │ └── Legacy.lua
│ ├── Error.lua
│ ├── Error
│ │ ├── Display.lua
│ │ └── Ext.lua
│ ├── ExternalMediaLink.lua
│ ├── ExternalMediaList.lua
│ ├── Faction.lua
│ ├── Faction
│ │ ├── Data.lua
│ │ └── Data
│ │ │ └── Starcraft.lua
│ ├── FeatureFlag.lua
│ ├── FilterButtons
│ │ └── Config.lua
│ ├── Flags.lua
│ ├── Flags
│ │ └── MasterData.lua
│ ├── FnUtil.lua
│ ├── Format
│ │ └── Table.lua
│ ├── Gallery.lua
│ ├── Game.lua
│ ├── GameSummary.lua
│ ├── GameSummary
│ │ └── Starcraft.lua
│ ├── GameTable.lua
│ ├── GameTable
│ │ ├── Character.lua
│ │ └── Custom.lua
│ ├── GetMatchGroupCopyPaste.lua
│ ├── GetMatchGroupCopyPaste
│ │ ├── Starcraft.lua
│ │ ├── wiki.lua
│ │ └── wiki
│ │ │ └── Base.lua
│ ├── HiddenDataBox.lua
│ ├── HiddenDataBox
│ │ └── Custom.lua
│ ├── HiddenSort.lua
│ ├── HighlightConditions.lua
│ ├── Hotkey.lua
│ ├── I18n.lua
│ ├── I18n
│ │ └── Data.lua
│ ├── Icon.lua
│ ├── Icon
│ │ └── Data.lua
│ ├── Image.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── Basic.lua
│ │ ├── Building.lua
│ │ ├── Campaign.lua
│ │ ├── CampaignMission.lua
│ │ ├── Character.lua
│ │ ├── Character
│ │ │ └── Custom.lua
│ │ ├── Company.lua
│ │ ├── Company
│ │ │ └── Custom.lua
│ │ ├── Cosmetic.lua
│ │ ├── Extension
│ │ │ ├── Achievements.lua
│ │ │ ├── GameApperances.lua
│ │ │ ├── PatchAuto.lua
│ │ │ └── RaceBreakdown.lua
│ │ ├── Extensions
│ │ │ └── PrizePool.lua
│ │ ├── Faction.lua
│ │ ├── Faction
│ │ │ └── Custom.lua
│ │ ├── Game.lua
│ │ ├── Game
│ │ │ └── Custom.lua
│ │ ├── Item.lua
│ │ ├── League.lua
│ │ ├── League
│ │ │ └── Custom.lua
│ │ ├── Lore.lua
│ │ ├── Manufacturer.lua
│ │ ├── Manufacturer
│ │ │ └── Custom.lua
│ │ ├── Map.lua
│ │ ├── Mock
│ │ │ └── League.lua
│ │ ├── Patch.lua
│ │ ├── Patch
│ │ │ └── Custom.lua
│ │ ├── Person.lua
│ │ ├── Person
│ │ │ ├── User.lua
│ │ │ └── User
│ │ │ │ └── Custom.lua
│ │ ├── Scene.lua
│ │ ├── Series.lua
│ │ ├── Series
│ │ │ └── Custom.lua
│ │ ├── Show.lua
│ │ ├── Show
│ │ │ └── Custom.lua
│ │ ├── Skill.lua
│ │ ├── Strategy.lua
│ │ ├── Strategy
│ │ │ └── Custom.lua
│ │ ├── Team.lua
│ │ ├── Tool.lua
│ │ ├── Tool
│ │ │ └── Custom.lua
│ │ ├── Unit.lua
│ │ ├── UnofficialWorldChampion.lua
│ │ ├── UnofficialWorldChampion
│ │ │ └── Custom.lua
│ │ ├── Weapon.lua
│ │ ├── Weapon
│ │ │ └── Custom.lua
│ │ ├── Website.lua
│ │ └── Website
│ │ │ └── Custom.lua
│ ├── InfoboxPlacementStats.lua
│ ├── Iterator.lua
│ ├── Json.lua
│ ├── LeagueIcon.lua
│ ├── Links.lua
│ ├── Links
│ │ ├── MatchPriorityGroups.lua
│ │ ├── PriorityGroups.lua
│ │ └── Stream.lua
│ ├── Locale.lua
│ ├── Logic.lua
│ ├── Lpdb.lua
│ ├── Lpdb
│ │ └── Injector.lua
│ ├── Lua.lua
│ ├── MainPageLayout.lua
│ ├── Map.lua
│ ├── Match.lua
│ ├── Match
│ │ ├── Placement.lua
│ │ └── Util.lua
│ ├── MatchGroup.lua
│ ├── MatchGroup
│ │ ├── Base.lua
│ │ ├── Coordinates.lua
│ │ ├── Display
│ │ │ ├── Bracket.lua
│ │ │ ├── Helper.lua
│ │ │ ├── Horizontallist.lua
│ │ │ ├── MatchPage.lua
│ │ │ ├── Matchlist.lua
│ │ │ ├── SingleGame.lua
│ │ │ └── SingleMatch.lua
│ │ ├── Input.lua
│ │ ├── Input
│ │ │ ├── Starcraft.lua
│ │ │ └── Util.lua
│ │ ├── Legacy.lua
│ │ ├── Legacy
│ │ │ └── Util.lua
│ │ ├── ShortenBracket.lua
│ │ ├── Util.lua
│ │ └── Util
│ │ │ ├── Custom.lua
│ │ │ └── Starcraft.lua
│ ├── MatchPage
│ │ └── Base.lua
│ ├── MatchSummary
│ │ ├── Base.lua
│ │ ├── Base
│ │ │ └── Ffa.lua
│ │ ├── Starcraft.lua
│ │ └── Starcraft
│ │ │ └── Ffa.lua
│ ├── MatchTable.lua
│ ├── MatchTable
│ │ └── Custom.lua
│ ├── MatchTicker.lua
│ ├── MatchTicker
│ │ ├── Custom.lua
│ │ ├── DisplayComponents.lua
│ │ └── DisplayComponents
│ │ │ └── New.lua
│ ├── MatchesScheduleDisplay.lua
│ ├── MatchesScheduleDisplay
│ │ └── Custom.lua
│ ├── MathUtil.lua
│ ├── Medals.lua
│ ├── Medals
│ │ └── Data.lua
│ ├── MetadataGenerator.lua
│ ├── Mock
│ │ ├── Lpdb.lua
│ │ └── TeamTemplate.lua
│ ├── MvpTable.lua
│ ├── MvpTable
│ │ └── Custom.lua
│ ├── NameOrder.lua
│ ├── Namespace.lua
│ ├── NotabilityChecker.lua
│ ├── Operator.lua
│ ├── Opponent.lua
│ ├── Opponent
│ │ └── Starcraft.lua
│ ├── OpponentDisplay.lua
│ ├── OpponentDisplay
│ │ └── Starcraft.lua
│ ├── OpponentLibraries.lua
│ ├── Ordinal.lua
│ ├── Ordinal
│ │ └── Data.lua
│ ├── Page.lua
│ ├── PageVariableNamespace.lua
│ ├── ParticipantTable
│ │ ├── Base.lua
│ │ ├── Custom.lua
│ │ ├── Import.lua
│ │ └── Starcraft.lua
│ ├── Patch.lua
│ ├── Placement.lua
│ ├── Player
│ │ ├── Display.lua
│ │ ├── Display
│ │ │ ├── Custom.lua
│ │ │ └── Starcraft.lua
│ │ ├── Ext.lua
│ │ └── Ext
│ │ │ ├── Custom.lua
│ │ │ └── Starcraft.lua
│ ├── PlayerIntroduction.lua
│ ├── PlayerIntroduction
│ │ └── Custom.lua
│ ├── PortalPlayers.lua
│ ├── PortalPlayers
│ │ └── Custom.lua
│ ├── PortalStatistics.lua
│ ├── PrizePool.lua
│ ├── PrizePool
│ │ ├── Award.lua
│ │ ├── Award
│ │ │ ├── Custom.lua
│ │ │ ├── Placement.lua
│ │ │ └── Starcraft.lua
│ │ ├── Base.lua
│ │ ├── Custom.lua
│ │ ├── Import.lua
│ │ ├── Legacy.lua
│ │ ├── Legacy
│ │ │ ├── Custom.lua
│ │ │ └── Starcraft.lua
│ │ ├── Placement.lua
│ │ ├── Placement
│ │ │ └── Base.lua
│ │ └── Starcraft.lua
│ ├── Ratings.lua
│ ├── Ratings
│ │ └── Storage
│ │ │ ├── Extension.lua
│ │ │ └── Factory.lua
│ ├── ReferenceCleaner.lua
│ ├── Region.lua
│ ├── Region
│ │ ├── Data.lua
│ │ ├── Ept.lua
│ │ └── Ept
│ │ │ └── Data.lua
│ ├── ResultOrError.lua
│ ├── ResultsTable.lua
│ ├── ResultsTable
│ │ ├── Award.lua
│ │ ├── Base.lua
│ │ └── Custom.lua
│ ├── RoleOf.lua
│ ├── Roles
│ │ ├── ContractRoles.lua
│ │ ├── Roles.lua
│ │ └── StaffRoles.lua
│ ├── SeriesMedalStats.lua
│ ├── SeriesMedalStats
│ │ ├── Faction.lua
│ │ ├── Flags.lua
│ │ ├── Participant.lua
│ │ └── ParticipantTeam.lua
│ ├── Squad
│ │ ├── Custom.lua
│ │ ├── Row.lua
│ │ └── Utils.lua
│ ├── Standings.lua
│ ├── Standings
│ │ ├── Parse
│ │ │ ├── Lpdb.lua
│ │ │ └── Wiki.lua
│ │ ├── Parser.lua
│ │ ├── Storage.lua
│ │ ├── Storage
│ │ │ └── StarcraftLegacy.lua
│ │ ├── Table.lua
│ │ ├── Table
│ │ │ └── Legacy
│ │ │ │ └── Ffa.lua
│ │ └── Tiebreaker
│ │ │ ├── Buchholz.lua
│ │ │ ├── Factory.lua
│ │ │ ├── Interface.lua
│ │ │ ├── Manual.lua
│ │ │ ├── Match
│ │ │ ├── Count.lua
│ │ │ ├── Diff.lua
│ │ │ ├── Draws.lua
│ │ │ ├── WinRate.lua
│ │ │ └── Wins.lua
│ │ │ └── Points.lua
│ ├── StringUtils.lua
│ ├── Table.lua
│ ├── Tabs.lua
│ ├── TeamCard
│ │ └── Storage.lua
│ ├── TeamLogoGallery.lua
│ ├── TeamTemplate.lua
│ ├── Template.lua
│ ├── TextSanitizer.lua
│ ├── Tier
│ │ ├── Custom.lua
│ │ ├── Data.lua
│ │ └── Utils.lua
│ ├── Timezone.lua
│ ├── Timezone
│ │ └── Data.lua
│ ├── Tournament.lua
│ ├── TournamentStructure.lua
│ ├── TournamentsListing
│ │ ├── CardList.lua
│ │ ├── CardList
│ │ │ └── Custom.lua
│ │ └── Conditions.lua
│ ├── TournamentsSummaryTable.lua
│ ├── TournamentsSummaryTable
│ │ └── Custom.lua
│ ├── Transfer
│ │ └── References.lua
│ ├── TransferList.lua
│ ├── TransferRow.lua
│ ├── TransferRow
│ │ ├── Custom.lua
│ │ └── Display.lua
│ ├── TreeUtil.lua
│ ├── TypeUtil.lua
│ ├── Variables.lua
│ ├── VodLink.lua
│ ├── WarningBox.lua
│ ├── Widget.lua
│ ├── Widget
│ │ ├── All.lua
│ │ ├── Basic
│ │ │ ├── Button.lua
│ │ │ ├── DataTable.lua
│ │ │ └── Link.lua
│ │ ├── Builder.lua
│ │ ├── CharacterTable.lua
│ │ ├── CharacterTable
│ │ │ ├── Entry.lua
│ │ │ └── Entry
│ │ │ │ └── Custom.lua
│ │ ├── Context.lua
│ │ ├── Contexts
│ │ │ ├── Customizable.lua
│ │ │ └── Squad.lua
│ │ ├── Customizable.lua
│ │ ├── Factory.lua
│ │ ├── FilterButtons.lua
│ │ ├── FilterButtons
│ │ │ ├── Button.lua
│ │ │ └── ButtonRow.lua
│ │ ├── GeneralCollapsible
│ │ │ ├── Default.lua
│ │ │ └── Toggle.lua
│ │ ├── Grid.lua
│ │ ├── Grid
│ │ │ ├── Cell.lua
│ │ │ └── Container.lua
│ │ ├── Html
│ │ │ └── All.lua
│ │ ├── Image
│ │ │ ├── Icon.lua
│ │ │ └── Icon
│ │ │ │ ├── Fontawesome.lua
│ │ │ │ ├── Image.lua
│ │ │ │ └── TeamIcon.lua
│ │ ├── Infobox
│ │ │ ├── Breakdown.lua
│ │ │ ├── Cell.lua
│ │ │ ├── Center.lua
│ │ │ ├── Chronology.lua
│ │ │ ├── Core.lua
│ │ │ ├── Header.lua
│ │ │ ├── Highlights.lua
│ │ │ ├── Links.lua
│ │ │ ├── Title.lua
│ │ │ ├── UpcomingTournaments.lua
│ │ │ └── UpcomingTournaments
│ │ │ │ ├── Header.lua
│ │ │ │ └── Row.lua
│ │ ├── Injector.lua
│ │ ├── MainPage
│ │ │ ├── CenterDot.lua
│ │ │ ├── Headlines.lua
│ │ │ ├── InMemoryOf.lua
│ │ │ ├── LiquipediaApp.lua
│ │ │ ├── MatchTicker.lua
│ │ │ ├── NavigationCard.lua
│ │ │ ├── ThisDay.lua
│ │ │ ├── ThisDay
│ │ │ │ ├── Content.lua
│ │ │ │ └── Title.lua
│ │ │ ├── TransfersList.lua
│ │ │ └── WantToHelp.lua
│ │ ├── Match
│ │ │ ├── Page
│ │ │ │ ├── AdditionalSection.lua
│ │ │ │ ├── Comment.lua
│ │ │ │ ├── Footer.lua
│ │ │ │ ├── Header.lua
│ │ │ │ ├── MapVeto.lua
│ │ │ │ ├── PlayerDisplay.lua
│ │ │ │ ├── PlayerStat.lua
│ │ │ │ ├── RoundsOverview.lua
│ │ │ │ ├── StatsList.lua
│ │ │ │ ├── TeamDisplay.lua
│ │ │ │ ├── VetoItem.lua
│ │ │ │ └── VetoRow.lua
│ │ │ ├── PageButton.lua
│ │ │ ├── Summary
│ │ │ │ ├── All.lua
│ │ │ │ ├── Body.lua
│ │ │ │ ├── Break.lua
│ │ │ │ ├── Casters.lua
│ │ │ │ ├── Character.lua
│ │ │ │ ├── CharacterBanTable.lua
│ │ │ │ ├── Characters.lua
│ │ │ │ ├── Collapsible.lua
│ │ │ │ ├── DetailedScore.lua
│ │ │ │ ├── Ffa
│ │ │ │ │ ├── All.lua
│ │ │ │ │ ├── ContentItemContainer.lua
│ │ │ │ │ ├── CountdownIcon.lua
│ │ │ │ │ ├── GameCountdown.lua
│ │ │ │ │ ├── GameDetails.lua
│ │ │ │ │ ├── GamesSchedule.lua
│ │ │ │ │ ├── Header.lua
│ │ │ │ │ ├── MatchComment.lua
│ │ │ │ │ ├── MatchInformation.lua
│ │ │ │ │ ├── Mvp.lua
│ │ │ │ │ ├── PointsDistribution.lua
│ │ │ │ │ ├── RankRange.lua
│ │ │ │ │ ├── Tab.lua
│ │ │ │ │ ├── Table.lua
│ │ │ │ │ ├── TableHeader.lua
│ │ │ │ │ ├── TableHeaderCell.lua
│ │ │ │ │ ├── TableRow.lua
│ │ │ │ │ ├── TableRowCell.lua
│ │ │ │ │ └── Trophy.lua
│ │ │ │ ├── GameCenter.lua
│ │ │ │ ├── GameComment.lua
│ │ │ │ ├── GameTeamWrapper.lua
│ │ │ │ ├── GameWinLossIndicator.lua
│ │ │ │ ├── MapVeto.lua
│ │ │ │ ├── MapVetoRound.lua
│ │ │ │ ├── MapVetoStart.lua
│ │ │ │ ├── MatchComment.lua
│ │ │ │ ├── MatchPageLink.lua
│ │ │ │ ├── Mvp.lua
│ │ │ │ └── Row.lua
│ │ │ └── Ticker
│ │ │ │ └── Container.lua
│ │ ├── Misc
│ │ │ ├── DateRange.lua
│ │ │ └── InlineIconAndText.lua
│ │ ├── NavBox.lua
│ │ ├── NavBox
│ │ │ ├── Child.lua
│ │ │ ├── EditButton.lua
│ │ │ └── List.lua
│ │ ├── Panel.lua
│ │ ├── Patch
│ │ │ ├── Calendar.lua
│ │ │ └── List.lua
│ │ ├── Ratings.lua
│ │ ├── Ratings
│ │ │ ├── Dropdown.lua
│ │ │ └── List.lua
│ │ ├── Squad
│ │ │ ├── Core.lua
│ │ │ └── Core
│ │ │ │ └── Tldb.lua
│ │ ├── Standings.lua
│ │ ├── Standings
│ │ │ ├── Ffa.lua
│ │ │ ├── MatchOverview.lua
│ │ │ ├── PlacementChange.lua
│ │ │ ├── RoundSelector.lua
│ │ │ └── Swiss.lua
│ │ ├── Table
│ │ │ ├── Cell.lua
│ │ │ ├── Old.lua
│ │ │ └── Row.lua
│ │ ├── TeamDisplay
│ │ │ ├── Component
│ │ │ │ └── Name.lua
│ │ │ └── Inline.lua
│ │ ├── Tournament
│ │ │ ├── Label.lua
│ │ │ ├── TierPill.lua
│ │ │ └── Title.lua
│ │ ├── Tournaments
│ │ │ ├── Ticker.lua
│ │ │ └── Ticker
│ │ │ │ └── Sublist.lua
│ │ ├── Util.lua
│ │ └── WantToHelpList.lua
│ ├── YearsActive.lua
│ ├── YearsActive
│ │ └── Base.lua
│ └── test
│ │ ├── json_test.lua
│ │ ├── lua_test.lua
│ │ ├── namespace_test.lua
│ │ └── template_test.lua
│ ├── counterstrike
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── HiddenDataBox
│ │ └── Custom.lua
│ ├── HighlightConditions.lua
│ ├── InGameRoles.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── Company
│ │ │ └── Custom.lua
│ │ ├── League
│ │ │ └── Custom.lua
│ │ ├── Patch
│ │ │ └── Custom.lua
│ │ ├── Person
│ │ │ └── Player
│ │ │ │ └── Custom.lua
│ │ ├── Series
│ │ │ └── Custom.lua
│ │ └── Team
│ │ │ └── Custom.lua
│ ├── Links
│ │ └── CustomData.lua
│ ├── Match
│ │ └── Legacy.lua
│ ├── MatchExternalLinks.lua
│ ├── MatchGroup
│ │ └── Input
│ │ │ └── Custom.lua
│ ├── MatchSummary.lua
│ ├── MatchSummary
│ │ └── Ffa.lua
│ ├── MatchTable
│ │ └── Custom.lua
│ ├── ParticipantTable
│ │ └── Custom.lua
│ ├── PrizePool
│ │ ├── Award
│ │ │ └── Custom.lua
│ │ ├── Custom.lua
│ │ └── Legacy
│ │ │ └── Custom.lua
│ ├── ResultsTable
│ │ └── Custom.lua
│ └── Tier
│ │ ├── Custom.lua
│ │ └── Data.lua
│ ├── criticalops
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── League
│ │ │ └── Custom.lua
│ │ └── Person
│ │ │ └── Player
│ │ │ └── Custom.lua
│ ├── Match
│ │ └── Legacy.lua
│ ├── MatchGroup
│ │ └── Input
│ │ │ └── Custom.lua
│ ├── MatchSummary.lua
│ └── Tier
│ │ └── Data.lua
│ ├── crossfire
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── League
│ │ │ └── Custom.lua
│ │ └── Person
│ │ │ └── Player
│ │ │ └── Custom.lua
│ ├── Match
│ │ └── Legacy.lua
│ ├── MatchGroup
│ │ └── Input
│ │ │ └── Custom.lua
│ └── MatchSummary.lua
│ ├── deadlock
│ ├── FilterButtons
│ │ └── Config.lua
│ ├── GameTable
│ │ └── Character
│ │ │ └── Custom.lua
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── Character
│ │ │ └── Custom.lua
│ │ ├── Item
│ │ │ └── Custom.lua
│ │ └── League
│ │ │ └── Custom.lua
│ ├── MainPageLayout
│ │ └── data.lua
│ ├── MatchGroup
│ │ └── Input
│ │ │ └── Custom.lua
│ └── MatchSummary.lua
│ ├── dota2
│ ├── Brkts
│ │ └── WikiSpecific.lua
│ ├── FilterButtons
│ │ └── Config.lua
│ ├── GameTable
│ │ └── Character
│ │ │ └── Custom.lua
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── HiddenDataBox
│ │ └── Custom.lua
│ ├── InGameRoles.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── Company
│ │ │ └── Custom.lua
│ │ ├── Cosmetic
│ │ │ └── Custom.lua
│ │ ├── League
│ │ │ └── Custom.lua
│ │ ├── Lore
│ │ │ └── Custom.lua
│ │ ├── Patch
│ │ │ └── Custom.lua
│ │ ├── Person
│ │ │ ├── Player
│ │ │ │ └── Custom.lua
│ │ │ └── User
│ │ │ │ └── Custom.lua
│ │ ├── Series
│ │ │ └── Custom.lua
│ │ └── Team
│ │ │ └── Custom.lua
│ ├── Links
│ │ └── CustomData.lua
│ ├── MainPageLayout
│ │ └── data.lua
│ ├── Match
│ │ └── Legacy.lua
│ ├── MatchGroup
│ │ ├── Input
│ │ │ ├── Custom.lua
│ │ │ └── Custom
│ │ │ │ ├── MatchPage.lua
│ │ │ │ └── Normal.lua
│ │ └── Legacy
│ │ │ └── Default.lua
│ ├── MatchMaps
│ │ └── Legacy.lua
│ ├── MatchPage.lua
│ ├── MatchSummary.lua
│ ├── PrizePool
│ │ ├── Award
│ │ │ └── Custom.lua
│ │ ├── Custom.lua
│ │ └── Legacy
│ │ │ └── Custom.lua
│ ├── Squad
│ │ └── Custom.lua
│ ├── Tier
│ │ └── Data.lua
│ └── Widget
│ │ └── Match
│ │ └── Page
│ │ └── TeamVeto.lua
│ ├── easportsfc
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── Company
│ │ │ └── Custom.lua
│ │ ├── League
│ │ │ └── Custom.lua
│ │ └── Person
│ │ │ └── Player
│ │ │ └── Custom.lua
│ ├── Match
│ │ └── Legacy.lua
│ ├── MatchGroup
│ │ └── Input
│ │ │ └── Custom.lua
│ ├── MatchSummary.lua
│ ├── PortalPlayers
│ │ └── Custom.lua
│ └── Tier
│ │ └── Data.lua
│ ├── esports
│ ├── Infobox
│ │ └── Game
│ │ │ └── Custom.lua
│ └── Widget
│ │ └── EwcTeamsOverview.lua
│ ├── fighters
│ ├── Brkts
│ │ └── WikiSpecific.lua
│ ├── Earnings.lua
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── HiddenDataBox
│ │ └── Custom.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── Game
│ │ │ └── Custom.lua
│ │ ├── League
│ │ │ └── Custom.lua
│ │ ├── Person
│ │ │ └── Player
│ │ │ │ └── Custom.lua
│ │ └── Series
│ │ │ └── Custom.lua
│ ├── Match
│ │ └── Legacy.lua
│ ├── MatchGroup
│ │ └── Input
│ │ │ └── Custom.lua
│ ├── MatchSummary.lua
│ ├── Opponent
│ │ └── Custom.lua
│ ├── ParticipantTable
│ │ └── Custom.lua
│ ├── Player
│ │ └── Display
│ │ │ └── Custom.lua
│ ├── PrizePool
│ │ └── Custom.lua
│ └── Tier
│ │ └── Data.lua
│ ├── formula1
│ ├── Info.lua
│ ├── Infobox
│ │ ├── Company
│ │ │ └── Custom.lua
│ │ ├── League
│ │ │ └── Custom.lua
│ │ ├── Map
│ │ │ └── Custom.lua
│ │ ├── Person
│ │ │ └── Player
│ │ │ │ └── Custom.lua
│ │ ├── Series
│ │ │ └── Custom.lua
│ │ ├── Team
│ │ │ └── Custom.lua
│ │ └── Unit
│ │ │ ├── Car
│ │ │ └── Custom.lua
│ │ │ └── Engine
│ │ │ └── Custom.lua
│ ├── PlayerIntroduction
│ │ └── Custom.lua
│ ├── PortalPlayers
│ │ └── Custom.lua
│ ├── PrizePool
│ │ └── Custom.lua
│ └── Tier
│ │ └── Data.lua
│ ├── fortnite
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── League
│ │ │ └── Custom.lua
│ │ ├── Patch
│ │ │ └── Custom.lua
│ │ ├── Person
│ │ │ └── Player
│ │ │ │ └── Custom.lua
│ │ └── Team
│ │ │ └── Custom.lua
│ ├── MainPageLayout
│ │ └── data.lua
│ ├── Match
│ │ └── Legacy.lua
│ ├── MatchGroup
│ │ └── Input
│ │ │ └── Custom.lua
│ ├── MatchSummary.lua
│ ├── MatchSummary
│ │ └── Ffa.lua
│ ├── PrizePool
│ │ ├── Award
│ │ │ └── Custom.lua
│ │ ├── Custom.lua
│ │ └── Legacy
│ │ │ └── Custom.lua
│ └── ResultsTable
│ │ └── Custom.lua
│ ├── freefire
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── HiddenDataBox
│ │ └── Custom.lua
│ ├── InGameRoles.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── League
│ │ │ └── Custom.lua
│ │ ├── Person
│ │ │ └── Player
│ │ │ │ └── Custom.lua
│ │ └── Team
│ │ │ └── Custom.lua
│ ├── MainPageLayout
│ │ └── data.lua
│ ├── Match
│ │ └── Legacy.lua
│ ├── MatchGroup
│ │ └── Input
│ │ │ └── Custom.lua
│ ├── MatchSummary.lua
│ ├── MatchSummary
│ │ └── Ffa.lua
│ └── PrizePool
│ │ └── Custom.lua
│ ├── geoguessr
│ ├── FilterButtons
│ │ └── Config.lua
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── League
│ │ │ └── Custom.lua
│ │ └── Person
│ │ │ └── Player
│ │ │ └── Custom.lua
│ ├── MainPageLayout
│ │ └── data.lua
│ ├── MatchGroup
│ │ └── Input
│ │ │ └── Custom.lua
│ ├── MatchSummary.lua
│ └── NotabilityChecker
│ │ └── config.lua
│ ├── goals
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── Info.lua
│ ├── MatchGroup
│ │ └── Input
│ │ │ └── Custom.lua
│ └── MatchSummary.lua
│ ├── halo
│ ├── FilterButtons
│ │ └── Config.lua
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── HiddenDataBox
│ │ └── Custom.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── League
│ │ │ └── Custom.lua
│ │ ├── Map
│ │ │ └── Custom.lua
│ │ ├── Patch
│ │ │ └── Custom.lua
│ │ ├── Person
│ │ │ └── Player
│ │ │ │ └── Custom.lua
│ │ └── Team
│ │ │ └── Custom.lua
│ ├── Links
│ │ └── CustomData.lua
│ ├── MainPageLayout
│ │ └── data.lua
│ ├── Match
│ │ └── Legacy.lua
│ ├── MatchGroup
│ │ └── Input
│ │ │ └── Custom.lua
│ ├── MatchSummary.lua
│ ├── MatchSummary
│ │ └── Ffa.lua
│ ├── NotabilityChecker
│ │ └── config.lua
│ ├── PrizePool
│ │ └── Custom.lua
│ └── Tier
│ │ └── Data.lua
│ ├── hearthstone
│ ├── FilterButtons
│ │ └── Config.lua
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── HiddenDataBox
│ │ └── Custom.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── Company
│ │ │ └── Custom.lua
│ │ ├── League
│ │ │ └── Custom.lua
│ │ └── Person
│ │ │ └── Player
│ │ │ └── Custom.lua
│ ├── MainPageLayout
│ │ └── data.lua
│ ├── Match
│ │ └── Legacy.lua
│ ├── MatchGroup
│ │ ├── Input
│ │ │ └── Custom.lua
│ │ ├── Legacy
│ │ │ └── Default.lua
│ │ └── Util
│ │ │ └── Custom.lua
│ ├── MatchMaps
│ │ └── Legacy.lua
│ ├── MatchSummary.lua
│ ├── MatchSummary
│ │ └── Ffa.lua
│ └── Tier
│ │ └── Data.lua
│ ├── heroes
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── League
│ │ │ └── Custom.lua
│ │ ├── Person
│ │ │ └── Player
│ │ │ │ └── Custom.lua
│ │ └── Team
│ │ │ └── Custom.lua
│ ├── MainPageLayout
│ │ └── data.lua
│ ├── Match
│ │ └── Legacy.lua
│ ├── MatchGroup
│ │ ├── Input
│ │ │ └── Custom.lua
│ │ └── Legacy
│ │ │ └── Default.lua
│ ├── MatchMaps
│ │ └── Legacy.lua
│ └── MatchSummary.lua
│ ├── honorofkings
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── HiddenDataBox
│ │ └── Custom.lua
│ ├── InGameRoles.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── League
│ │ │ └── Custom.lua
│ │ ├── Person
│ │ │ └── Player
│ │ │ │ └── Custom.lua
│ │ └── Team
│ │ │ └── Custom.lua
│ ├── Match
│ │ └── Legacy.lua
│ ├── MatchGroup
│ │ ├── Input
│ │ │ └── Custom.lua
│ │ └── Legacy
│ │ │ └── Default.lua
│ ├── MatchMaps
│ │ └── Legacy.lua
│ ├── MatchSummary.lua
│ ├── PrizePool
│ │ └── Custom.lua
│ └── Tier
│ │ └── Data.lua
│ ├── leagueoflegends
│ ├── Brkts
│ │ └── WikiSpecific.lua
│ ├── FilterButtons
│ │ └── Config.lua
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── HiddenDataBox
│ │ └── Custom.lua
│ ├── InGameRoles.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── Character
│ │ │ └── Custom.lua
│ │ ├── League
│ │ │ └── Custom.lua
│ │ ├── Patch
│ │ │ └── Custom.lua
│ │ ├── Person
│ │ │ └── Player
│ │ │ │ └── Custom.lua
│ │ └── Team
│ │ │ └── Custom.lua
│ ├── MainPageLayout
│ │ └── data.lua
│ ├── Match
│ │ └── Legacy.lua
│ ├── MatchGroup
│ │ ├── Input
│ │ │ ├── Custom.lua
│ │ │ └── Custom
│ │ │ │ ├── MatchPage.lua
│ │ │ │ └── Normal.lua
│ │ └── Legacy
│ │ │ └── Default.lua
│ ├── MatchMaps
│ │ └── Legacy.lua
│ ├── MatchPage.lua
│ ├── MatchSummary.lua
│ ├── PrizePool
│ │ ├── Custom.lua
│ │ └── Legacy
│ │ │ └── Custom.lua
│ └── Widget
│ │ └── CharacterTable
│ │ └── Entry
│ │ └── Custom.lua
│ ├── magic
│ ├── Info.lua
│ ├── Infobox
│ │ └── League
│ │ │ └── Custom.lua
│ ├── Match
│ │ └── Legacy.lua
│ ├── MatchGroup
│ │ └── Input
│ │ │ └── Custom.lua
│ └── MatchSummary.lua
│ ├── marvelrivals
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── InGameRoles.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── Character
│ │ │ └── Custom.lua
│ │ ├── League
│ │ │ └── Custom.lua
│ │ └── Person
│ │ │ └── Player
│ │ │ └── Custom.lua
│ ├── MainPageLayout
│ │ └── data.lua
│ ├── MatchGroup
│ │ └── Input
│ │ │ └── Custom.lua
│ ├── MatchSummary.lua
│ └── NotabilityChecker
│ │ └── config.lua
│ ├── mobilelegends
│ ├── FilterButtons
│ │ └── Config.lua
│ ├── HiddenDataBox
│ │ └── Custom.lua
│ ├── InGameRoles.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── Item
│ │ │ └── Custom.lua
│ │ ├── League
│ │ │ └── Custom.lua
│ │ ├── Patch
│ │ │ └── Custom.lua
│ │ ├── Person
│ │ │ └── Player
│ │ │ │ └── Custom.lua
│ │ └── Unit
│ │ │ └── Hero
│ │ │ └── Custom.lua
│ ├── MainPageLayout
│ │ └── data.lua
│ ├── Match
│ │ └── Legacy.lua
│ ├── MatchGroup
│ │ └── Input
│ │ │ └── Custom.lua
│ ├── MatchSummary.lua
│ ├── PrizePool
│ │ ├── Custom.lua
│ │ └── Legacy
│ │ │ └── Custom.lua
│ └── Tier
│ │ └── Data.lua
│ ├── naraka
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── League
│ │ │ └── Custom.lua
│ │ └── Person
│ │ │ └── Player
│ │ │ └── Custom.lua
│ ├── Match
│ │ └── Legacy.lua
│ ├── MatchGroup
│ │ └── Input
│ │ │ └── Custom.lua
│ └── MatchSummary
│ │ └── Ffa.lua
│ ├── omegastrikers
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── InGameRoles.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── Character
│ │ │ └── Custom.lua
│ │ ├── League
│ │ │ └── Custom.lua
│ │ └── Person
│ │ │ └── Player
│ │ │ └── Custom.lua
│ ├── MatchGroup
│ │ └── Input
│ │ │ └── Custom.lua
│ └── MatchSummary.lua
│ ├── osu
│ ├── FilterButtons
│ │ └── Config.lua
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── InGameRoles.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── League
│ │ │ └── Custom.lua
│ │ └── Person
│ │ │ └── Player
│ │ │ └── Custom.lua
│ ├── MainPageLayout
│ │ └── data.lua
│ ├── MatchGroup
│ │ └── Input
│ │ │ └── Custom.lua
│ ├── MatchSummary.lua
│ ├── NotabilityChecker
│ │ └── config.lua
│ └── Tier
│ │ └── Data.lua
│ ├── overwatch
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── HiddenDataBox
│ │ └── Custom.lua
│ ├── HighlightConditions.lua
│ ├── InGameRoles.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── Character
│ │ │ └── Custom.lua
│ │ ├── League
│ │ │ └── Custom.lua
│ │ ├── Map
│ │ │ └── Custom.lua
│ │ ├── Person
│ │ │ ├── Player
│ │ │ │ └── Custom.lua
│ │ │ └── User
│ │ │ │ └── Custom.lua
│ │ └── Team
│ │ │ └── Custom.lua
│ ├── Links
│ │ └── CustomData.lua
│ ├── MainPageLayout
│ │ └── data.lua
│ ├── MapToMode.lua
│ ├── Match
│ │ └── Legacy.lua
│ ├── MatchGroup
│ │ ├── Input
│ │ │ └── Custom.lua
│ │ └── Legacy
│ │ │ └── Default.lua
│ ├── MatchMaps
│ │ └── Legacy.lua
│ ├── MatchSummary.lua
│ ├── NotabilityChecker
│ │ └── config.lua
│ ├── PrizePool
│ │ └── Custom.lua
│ ├── Squad
│ │ └── Custom.lua
│ └── Tier
│ │ └── Data.lua
│ ├── paladins
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── Info.lua
│ ├── Match
│ │ └── Legacy.lua
│ ├── MatchGroup
│ │ └── Input
│ │ │ └── Custom.lua
│ └── MatchSummary.lua
│ ├── pokemon
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── League
│ │ │ └── Custom.lua
│ │ └── Person
│ │ │ └── Player
│ │ │ └── Custom.lua
│ ├── Match
│ │ └── Legacy.lua
│ ├── MatchGroup
│ │ └── Input
│ │ │ └── Custom.lua
│ ├── MatchSummary.lua
│ └── PrizePool
│ │ └── Custom.lua
│ ├── pubg
│ ├── FilterButtons
│ │ └── Config.lua
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── HiddenDataBox
│ │ └── Custom.lua
│ ├── InGameRoles.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── Company
│ │ │ └── Custom.lua
│ │ ├── League
│ │ │ └── Custom.lua
│ │ ├── Map
│ │ │ └── Custom.lua
│ │ ├── Person
│ │ │ └── Player
│ │ │ │ └── Custom.lua
│ │ └── Weapon
│ │ │ └── Custom.lua
│ ├── MainPageLayout
│ │ └── data.lua
│ ├── Match
│ │ └── Legacy.lua
│ ├── MatchGroup
│ │ └── Input
│ │ │ └── Custom.lua
│ ├── MatchSummary.lua
│ ├── MatchSummary
│ │ └── Ffa.lua
│ ├── PrizePool
│ │ ├── Award
│ │ │ └── Custom.lua
│ │ └── Custom.lua
│ └── Tier
│ │ └── Data.lua
│ ├── pubgmobile
│ ├── FilterButtons
│ │ └── Config.lua
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── HiddenDataBox
│ │ └── Custom.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── League
│ │ │ └── Custom.lua
│ │ ├── Map
│ │ │ └── Custom.lua
│ │ ├── Person
│ │ │ └── Player
│ │ │ │ └── Custom.lua
│ │ ├── Team
│ │ │ └── Custom.lua
│ │ └── Weapon
│ │ │ └── Custom.lua
│ ├── MainPageLayout
│ │ └── data.lua
│ ├── Match
│ │ └── Legacy.lua
│ ├── MatchGroup
│ │ └── Input
│ │ │ └── Custom.lua
│ ├── MatchSummary.lua
│ ├── MatchSummary
│ │ └── Ffa.lua
│ ├── NotabilityChecker
│ │ └── config.lua
│ ├── PrizePool
│ │ ├── Award
│ │ │ └── Custom.lua
│ │ └── Custom.lua
│ └── Tier
│ │ └── Data.lua
│ ├── rainbowsix
│ ├── FilterButtons
│ │ └── Config.lua
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── HiddenDataBox
│ │ └── Custom.lua
│ ├── InGameRoles.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── Character
│ │ │ └── Custom.lua
│ │ ├── League
│ │ │ └── Custom.lua
│ │ ├── Patch
│ │ │ └── Custom.lua
│ │ ├── Person
│ │ │ └── Player
│ │ │ │ └── Custom.lua
│ │ ├── Team
│ │ │ └── Custom.lua
│ │ └── Weapon
│ │ │ └── Custom.lua
│ ├── LegacyBracketMatchSummary.lua
│ ├── Links
│ │ └── CustomData.lua
│ ├── MainPageLayout
│ │ └── data.lua
│ ├── Match
│ │ └── Legacy.lua
│ ├── MatchGroup
│ │ ├── Input
│ │ │ └── Custom.lua
│ │ └── Legacy
│ │ │ └── Default.lua
│ ├── MatchMaps
│ │ ├── Legacy.lua
│ │ └── Legacy
│ │ │ └── Store.lua
│ ├── MatchSummary.lua
│ ├── NotabilityChecker
│ │ └── config.lua
│ ├── PrizePool
│ │ └── Custom.lua
│ └── Tier
│ │ └── Data.lua
│ ├── rocketleague
│ ├── Brkts
│ │ └── WikiSpecific.lua
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── HiddenDataBox
│ │ └── Custom.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── Company
│ │ │ └── Custom.lua
│ │ ├── League
│ │ │ └── Custom.lua
│ │ ├── Map
│ │ │ └── Custom.lua
│ │ ├── Person
│ │ │ └── Player
│ │ │ │ └── Custom.lua
│ │ ├── Team
│ │ │ └── Custom.lua
│ │ ├── Unit
│ │ │ └── Car
│ │ │ │ └── Custom.lua
│ │ └── UnofficialWorldChampion
│ │ │ └── Custom.lua
│ ├── LegacyMatchList.lua
│ ├── Links
│ │ └── CustomData.lua
│ ├── Match
│ │ └── Legacy.lua
│ ├── MatchGroup
│ │ ├── Display
│ │ │ └── Bracket
│ │ │ │ └── Custom.lua
│ │ ├── Input
│ │ │ └── Custom.lua
│ │ └── Legacy
│ │ │ └── Default.lua
│ ├── MatchSummary.lua
│ ├── NotabilityChecker
│ │ └── config.lua
│ ├── OpponentDisplay
│ │ └── Custom.lua
│ ├── Player
│ │ └── Ext
│ │ │ └── Custom.lua
│ ├── PrizePool
│ │ └── Custom.lua
│ ├── Ratings
│ │ ├── Display.lua
│ │ ├── Display
│ │ │ ├── Graph.lua
│ │ │ └── List.lua
│ │ └── Storage
│ │ │ └── Lpdb.lua
│ ├── TeamRanking.lua
│ ├── Tier
│ │ ├── Custom.lua
│ │ └── Data.lua
│ └── YearsActive.lua
│ ├── runeterra
│ ├── Info.lua
│ ├── Match
│ │ └── Legacy.lua
│ ├── MatchGroup
│ │ ├── Input
│ │ │ └── Custom.lua
│ │ └── Legacy
│ │ │ └── Default.lua
│ └── MatchSummary.lua
│ ├── sideswipe
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── Info.lua
│ ├── Infobox
│ │ └── League
│ │ │ └── Custom.lua
│ ├── Match
│ │ └── Legacy.lua
│ ├── MatchGroup
│ │ └── Input
│ │ │ └── Custom.lua
│ ├── MatchSummary.lua
│ └── Tier
│ │ └── Data.lua
│ ├── simracing
│ ├── HiddenDataBox
│ │ └── Custom.lua
│ ├── Info.lua
│ └── Infobox
│ │ ├── League
│ │ └── Custom.lua
│ │ └── Person
│ │ └── Player
│ │ └── Custom.lua
│ ├── smash
│ ├── Brkts
│ │ └── WikiSpecific.lua
│ ├── Earnings.lua
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── HiddenDataBox
│ │ └── Custom.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── League
│ │ │ └── Custom.lua
│ │ ├── Person
│ │ │ └── Player
│ │ │ │ └── Custom.lua
│ │ └── Series
│ │ │ └── Custom.lua
│ ├── Match
│ │ └── Legacy.lua
│ ├── MatchGroup
│ │ ├── Display
│ │ │ └── Bracket
│ │ │ │ └── Custom.lua
│ │ ├── Input
│ │ │ └── Custom.lua
│ │ └── Util
│ │ │ └── Custom.lua
│ ├── MatchSummary.lua
│ ├── Opponent
│ │ └── Custom.lua
│ ├── Player
│ │ └── Display
│ │ │ └── Custom.lua
│ ├── PortalPlayers
│ │ └── Custom.lua
│ ├── PrizePool
│ │ └── Custom.lua
│ ├── Squad
│ │ └── Custom.lua
│ └── Tier
│ │ ├── Custom.lua
│ │ └── Data.lua
│ ├── smite
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── InGameRoles.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── League
│ │ │ └── Custom.lua
│ │ ├── Person
│ │ │ └── Player
│ │ │ │ └── Custom.lua
│ │ └── Unit
│ │ │ └── God
│ │ │ └── Custom.lua
│ ├── MatchGroup
│ │ └── Input
│ │ │ └── Custom.lua
│ └── MatchSummary.lua
│ ├── splatoon
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── InGameRoles.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── League
│ │ │ └── Custom.lua
│ │ └── Person
│ │ │ └── Player
│ │ │ └── Custom.lua
│ ├── Match
│ │ └── Legacy.lua
│ ├── MatchGroup
│ │ └── Input
│ │ │ └── Custom.lua
│ ├── MatchSummary.lua
│ └── Tier
│ │ └── Data.lua
│ ├── splitgate
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── Info.lua
│ ├── MatchGroup
│ │ └── Input
│ │ │ └── Custom.lua
│ ├── MatchSummary.lua
│ └── Tier
│ │ └── Data.lua
│ ├── squadrons
│ ├── HiddenDataBox
│ │ └── Custom.lua
│ ├── Info.lua
│ ├── Infobox
│ │ └── League
│ │ │ └── Custom.lua
│ ├── Match
│ │ └── Legacy.lua
│ ├── MatchGroup
│ │ ├── Input
│ │ │ └── Custom.lua
│ │ └── Legacy
│ │ │ ├── Default.lua
│ │ │ └── MatchList.lua
│ └── MatchSummary.lua
│ ├── starcraft
│ ├── Brkts
│ │ └── WikiSpecific.lua
│ ├── Faction
│ │ ├── Data.lua
│ │ └── IconData.lua
│ ├── GameSummary.lua
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── HiddenDataBox
│ │ └── Custom.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── Building
│ │ │ └── Custom.lua
│ │ ├── Extension
│ │ │ └── CostDisplay.lua
│ │ ├── League
│ │ │ └── Custom.lua
│ │ ├── Map
│ │ │ └── Custom.lua
│ │ ├── Person
│ │ │ └── Player
│ │ │ │ └── Custom.lua
│ │ ├── Series
│ │ │ └── Custom.lua
│ │ ├── Skill
│ │ │ └── Custom.lua
│ │ ├── Strategy
│ │ │ └── Custom.lua
│ │ ├── Team
│ │ │ └── Custom.lua
│ │ └── Unit
│ │ │ └── Custom.lua
│ ├── Match
│ │ └── Legacy.lua
│ ├── MatchGroup
│ │ ├── Legacy
│ │ │ └── Default.lua
│ │ └── Util
│ │ │ └── Custom.lua
│ ├── MatchMaps
│ │ └── Legacy.lua
│ ├── MatchSummary
│ │ └── Ffa.lua
│ ├── ParticipantTable
│ │ └── Custom.lua
│ ├── Player
│ │ ├── Display
│ │ │ └── Custom.lua
│ │ └── Ext
│ │ │ └── Custom.lua
│ ├── PrizePool
│ │ ├── Award
│ │ │ └── Custom.lua
│ │ └── Custom.lua
│ ├── Squad
│ │ └── Custom.lua
│ └── Tier
│ │ ├── Custom.lua
│ │ └── Data.lua
│ ├── starcraft2
│ ├── Brkts
│ │ └── WikiSpecific.lua
│ ├── Faction
│ │ ├── Data.lua
│ │ └── IconData.lua
│ ├── FilterButtons
│ │ └── Config.lua
│ ├── GameSummary.lua
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── HiddenDataBox
│ │ └── Custom.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── Building
│ │ │ └── Custom.lua
│ │ ├── CampaignMission
│ │ │ └── Custom.lua
│ │ ├── Extension
│ │ │ ├── Achievements
│ │ │ │ └── Custom.lua
│ │ │ └── CostDisplay.lua
│ │ ├── League
│ │ │ └── Custom.lua
│ │ ├── Map
│ │ │ └── Custom.lua
│ │ ├── Patch
│ │ │ └── Custom.lua
│ │ ├── Person
│ │ │ ├── Custom.lua
│ │ │ ├── MapMaker
│ │ │ │ └── Custom.lua
│ │ │ └── Player
│ │ │ │ └── Custom.lua
│ │ ├── Series
│ │ │ └── Custom.lua
│ │ ├── Show
│ │ │ └── Custom.lua
│ │ ├── Skill
│ │ │ └── Custom.lua
│ │ ├── Strategy
│ │ │ └── Custom.lua
│ │ ├── Team
│ │ │ └── Custom.lua
│ │ ├── Unit
│ │ │ └── Custom.lua
│ │ └── UnofficialWorldChampion
│ │ │ └── Custom.lua
│ ├── Links
│ │ └── CustomData.lua
│ ├── MainPageLayout
│ │ └── data.lua
│ ├── MatchGroup
│ │ ├── Legacy
│ │ │ └── Default.lua
│ │ └── Util
│ │ │ └── Custom.lua
│ ├── MatchMaps
│ │ └── Legacy.lua
│ ├── MatchMapsTeam
│ │ └── Legacy.lua
│ ├── MatchSummary
│ │ └── Ffa.lua
│ ├── ParticipantTable
│ │ └── Custom.lua
│ ├── Player
│ │ ├── Display
│ │ │ └── Custom.lua
│ │ └── Ext
│ │ │ └── Custom.lua
│ ├── PrizePool
│ │ ├── Award
│ │ │ └── Custom.lua
│ │ └── Custom.lua
│ ├── ResultsTable
│ │ └── Custom.lua
│ ├── Squad
│ │ └── Custom.lua
│ ├── Tier
│ │ ├── Custom.lua
│ │ └── Data.lua
│ └── TournamentsListing
│ │ └── CardList
│ │ └── Custom.lua
│ ├── stormgate
│ ├── Brkts
│ │ └── WikiSpecific.lua
│ ├── Faction
│ │ ├── Data.lua
│ │ └── IconData.lua
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── HiddenDataBox
│ │ └── Custom.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── Building
│ │ │ └── Custom.lua
│ │ ├── Extension
│ │ │ ├── Attack.lua
│ │ │ └── CostDisplay.lua
│ │ ├── Item
│ │ │ └── Custom.lua
│ │ ├── League
│ │ │ └── Custom.lua
│ │ ├── Map
│ │ │ └── Custom.lua
│ │ ├── Person
│ │ │ └── Player
│ │ │ │ └── Custom.lua
│ │ ├── Skill
│ │ │ └── Custom.lua
│ │ ├── Team
│ │ │ └── Custom.lua
│ │ └── Unit
│ │ │ └── Custom.lua
│ ├── Links
│ │ └── CustomData.lua
│ ├── MatchGroup
│ │ ├── Input
│ │ │ └── Custom.lua
│ │ └── Util
│ │ │ └── Custom.lua
│ ├── MatchSummary.lua
│ ├── Opponent
│ │ └── Custom.lua
│ ├── OpponentDisplay
│ │ └── Custom.lua
│ ├── ParticipantTable
│ │ └── Custom.lua
│ ├── Player
│ │ ├── Display
│ │ │ └── Custom.lua
│ │ └── Ext
│ │ │ └── Custom.lua
│ ├── PrizePool
│ │ ├── Award
│ │ │ └── Custom.lua
│ │ └── Custom.lua
│ ├── Squad
│ │ └── Custom.lua
│ └── Tier
│ │ └── Data.lua
│ ├── tarkovarena
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── Info.lua
│ ├── Infobox
│ │ └── Person
│ │ │ └── Player
│ │ │ └── Custom.lua
│ ├── MatchGroup
│ │ └── Input
│ │ │ └── Custom.lua
│ └── MatchSummary.lua
│ ├── teamfortress
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── HiddenDataBox
│ │ └── Custom.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── Company
│ │ │ └── Custom.lua
│ │ ├── League
│ │ │ └── Custom.lua
│ │ ├── Person
│ │ │ └── Player
│ │ │ │ └── Custom.lua
│ │ └── Team
│ │ │ └── Custom.lua
│ ├── Match
│ │ └── Legacy.lua
│ ├── MatchGroup
│ │ └── Input
│ │ │ └── Custom.lua
│ └── MatchSummary.lua
│ ├── tetris
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── League
│ │ │ └── Custom.lua
│ │ └── Person
│ │ │ └── Player
│ │ │ └── Custom.lua
│ ├── Match
│ │ └── Legacy.lua
│ ├── MatchGroup
│ │ └── Input
│ │ │ └── Custom.lua
│ ├── MatchSummary.lua
│ ├── PrizePool
│ │ └── Custom.lua
│ └── Tier
│ │ └── Data.lua
│ ├── tft
│ ├── FilterButtons
│ │ └── Config.lua
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── League
│ │ │ └── Custom.lua
│ │ └── Person
│ │ │ └── Player
│ │ │ └── Custom.lua
│ ├── MainPageLayout
│ │ └── data.lua
│ ├── Match
│ │ └── Legacy.lua
│ ├── MatchGroup
│ │ └── Input
│ │ │ └── Custom.lua
│ ├── MatchSummary.lua
│ └── MatchSummary
│ │ └── Ffa.lua
│ ├── trackmania
│ ├── Brkts
│ │ └── WikiSpecific.lua
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── HiddenDataBox
│ │ └── Custom.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── League
│ │ │ └── Custom.lua
│ │ └── Person
│ │ │ └── Player
│ │ │ └── Custom.lua
│ ├── Match
│ │ └── Legacy.lua
│ ├── MatchGroup
│ │ ├── Display
│ │ │ └── Bracket
│ │ │ │ └── Custom.lua
│ │ ├── Input
│ │ │ └── Custom.lua
│ │ └── Legacy
│ │ │ ├── Default.lua
│ │ │ └── MatchList.lua
│ ├── MatchSummary.lua
│ ├── MatchSummary
│ │ └── Ffa.lua
│ ├── NotabilityChecker
│ │ └── config.lua
│ ├── OpponentDisplay
│ │ └── Custom.lua
│ ├── PrizePool
│ │ └── Custom.lua
│ ├── ResultsTable
│ │ └── Custom.lua
│ └── Tier
│ │ └── Data.lua
│ ├── underlords
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── Info.lua
│ ├── MatchGroup
│ │ └── Input
│ │ │ └── Custom.lua
│ └── MatchSummary
│ │ └── Ffa.lua
│ ├── valorant
│ ├── FilterButtons
│ │ └── Config.lua
│ ├── GameTable
│ │ └── Character
│ │ │ └── Custom.lua
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── HiddenDataBox
│ │ └── Custom.lua
│ ├── HighlightConditions.lua
│ ├── InGameRoles.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── Character
│ │ │ └── Custom.lua
│ │ ├── League
│ │ │ └── Custom.lua
│ │ ├── Map
│ │ │ └── Custom.lua
│ │ ├── Patch
│ │ │ └── Custom.lua
│ │ ├── Person
│ │ │ └── Player
│ │ │ │ └── Custom.lua
│ │ ├── Series
│ │ │ └── Custom.lua
│ │ ├── Team
│ │ │ └── Custom.lua
│ │ └── Weapon
│ │ │ └── Custom.lua
│ ├── MainPageLayout
│ │ └── data.lua
│ ├── Match
│ │ └── Legacy.lua
│ ├── MatchGroup
│ │ ├── Input
│ │ │ ├── Custom.lua
│ │ │ └── Custom
│ │ │ │ ├── MatchPage.lua
│ │ │ │ └── Normal.lua
│ │ └── Legacy
│ │ │ └── Default.lua
│ ├── MatchMaps
│ │ └── Legacy.lua
│ ├── MatchPage.lua
│ ├── MatchSummary.lua
│ ├── PrizePool
│ │ ├── Custom.lua
│ │ └── Legacy
│ │ │ └── Custom.lua
│ └── Tier
│ │ └── Data.lua
│ ├── warcraft
│ ├── Brkts
│ │ └── WikiSpecific.lua
│ ├── Faction
│ │ ├── Data.lua
│ │ └── IconData.lua
│ ├── GameSummary.lua
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── HiddenDataBox
│ │ └── Custom.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── Building
│ │ │ └── Custom.lua
│ │ ├── Character
│ │ │ └── Custom.lua
│ │ ├── Company
│ │ │ └── Custom.lua
│ │ ├── Extension
│ │ │ ├── BuildingUnitShared.lua
│ │ │ └── CostDisplay.lua
│ │ ├── Item
│ │ │ └── Custom.lua
│ │ ├── League
│ │ │ └── Custom.lua
│ │ ├── Map
│ │ │ └── Custom.lua
│ │ ├── Patch
│ │ │ └── Custom.lua
│ │ ├── Person
│ │ │ └── Player
│ │ │ │ └── Custom.lua
│ │ ├── Skill
│ │ │ └── Custom.lua
│ │ ├── Strategy
│ │ │ └── Custom.lua
│ │ ├── Team
│ │ │ └── Custom.lua
│ │ └── Unit
│ │ │ └── Custom.lua
│ ├── LegacyMatchMaps.lua
│ ├── Links
│ │ └── CustomData.lua
│ ├── Match
│ │ └── Legacy.lua
│ ├── MatchGroup
│ │ ├── Input
│ │ │ └── Custom.lua
│ │ ├── Legacy
│ │ │ ├── ConvertMapData.lua
│ │ │ └── Default.lua
│ │ └── Util
│ │ │ └── Custom.lua
│ ├── MatchSummary.lua
│ ├── MatchSummary
│ │ └── Ffa.lua
│ ├── Opponent
│ │ └── Custom.lua
│ ├── OpponentDisplay
│ │ └── Custom.lua
│ ├── ParticipantTable
│ │ └── Custom.lua
│ ├── Player
│ │ ├── Display
│ │ │ └── Custom.lua
│ │ └── Ext
│ │ │ └── Custom.lua
│ ├── PrizePool
│ │ ├── Custom.lua
│ │ └── Legacy
│ │ │ ├── Award
│ │ │ └── Custom.lua
│ │ │ └── Custom.lua
│ └── Tier
│ │ ├── Custom.lua
│ │ └── Data.lua
│ ├── warthunder
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── League
│ │ │ └── Custom.lua
│ │ └── Map
│ │ │ └── Custom.lua
│ ├── MatchGroup
│ │ └── Input
│ │ │ └── Custom.lua
│ └── MatchSummary.lua
│ ├── wildcard
│ ├── Info.lua
│ ├── Infobox
│ │ ├── Character
│ │ │ └── Custom.lua
│ │ └── Unit
│ │ │ └── Custom.lua
│ └── MainPageLayout
│ │ └── data.lua
│ ├── wildrift
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── InGameRoles.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── Item
│ │ │ └── Custom.lua
│ │ ├── League
│ │ │ └── Custom.lua
│ │ ├── Person
│ │ │ └── Player
│ │ │ │ └── Custom.lua
│ │ ├── Team
│ │ │ └── Custom.lua
│ │ └── Unit
│ │ │ └── Champion
│ │ │ └── Custom.lua
│ ├── Match
│ │ └── Legacy.lua
│ ├── MatchGroup
│ │ ├── Input
│ │ │ └── Custom.lua
│ │ └── Legacy
│ │ │ └── Default.lua
│ ├── MatchMaps
│ │ └── Legacy.lua
│ ├── MatchSummary.lua
│ ├── PrizePool
│ │ └── Custom.lua
│ └── Tier
│ │ └── Data.lua
│ ├── worldoftanks
│ ├── Earnings.lua
│ ├── FilterButtons
│ │ └── Config.lua
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── InGameRoles.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── Extension
│ │ │ └── Nation.lua
│ │ ├── League
│ │ │ └── Custom.lua
│ │ ├── Map
│ │ │ └── Custom.lua
│ │ ├── Person
│ │ │ └── Player
│ │ │ │ └── Custom.lua
│ │ └── Unit
│ │ │ └── Tank
│ │ │ └── Custom.lua
│ ├── MainPageLayout
│ │ └── data.lua
│ ├── MatchGroup
│ │ └── Input
│ │ │ └── Custom.lua
│ ├── MatchSummary.lua
│ └── Tier
│ │ ├── Custom.lua
│ │ └── Data.lua
│ ├── worldofwarcraft
│ ├── GetMatchGroupCopyPaste
│ │ └── wiki.lua
│ ├── InGameRoles.lua
│ ├── Info.lua
│ ├── Infobox
│ │ ├── Company
│ │ │ └── Custom.lua
│ │ └── Person
│ │ │ └── Player
│ │ │ └── Custom.lua
│ ├── MatchGroup
│ │ ├── Input
│ │ │ └── Custom.lua
│ │ └── Legacy
│ │ │ ├── Default.lua
│ │ │ └── MatchList.lua
│ └── MatchSummary.lua
│ └── zula
│ ├── GetMatchGroupCopyPaste
│ └── wiki.lua
│ ├── InGameRoles.lua
│ ├── Info.lua
│ ├── Infobox
│ ├── League
│ │ └── Custom.lua
│ └── Person
│ │ └── Player
│ │ └── Custom.lua
│ ├── Match
│ └── Legacy.lua
│ ├── MatchGroup
│ └── Input
│ │ └── Custom.lua
│ ├── MatchSummary.lua
│ └── Tier
│ └── Data.lua
├── package.json
├── scripts
├── deploy.sh
├── deploy_res.sh
├── generate_changelog_local.sh
├── generate_module_info.ps1
├── login_and_get_token.sh
├── protect.sh
├── protect_page.sh
└── protect_templates.sh
├── stylesheets
├── README.md
└── commons
│ ├── Ambox.less
│ ├── AutomaticPointsTable.less
│ ├── Banner.less
│ ├── BattleRoyale
│ ├── NavigationContent.less
│ ├── NavigationTabs.less
│ ├── Panel.less
│ └── PanelTable.less
│ ├── BigMatch.less
│ ├── BootstrapVisibility.less
│ ├── Bracket.less
│ ├── Brackets.less
│ ├── Colours.less
│ ├── Columns.less
│ ├── Crosstable.less
│ ├── DeckList.less
│ ├── DivTable.less
│ ├── Faction.less
│ ├── FilterButtons.less
│ ├── Fountain.less
│ ├── Grid.less
│ ├── GroupTableLeague.less
│ ├── HexagonPortraits.less
│ ├── Icons.less
│ ├── Infobox.less
│ ├── Mainpage.less
│ ├── MatchTicker.less
│ ├── Matchseries.less
│ ├── Miscellaneous.less
│ ├── NavFrame.less
│ ├── Navbox.less
│ ├── NavigationCard.less
│ ├── OpponentList.less
│ ├── PanelBox
│ └── Heroes.less
│ ├── Panels.less
│ ├── Prizepooltable.less
│ ├── Quote.less
│ ├── RankingTable.less
│ ├── ResponsiveTable.less
│ ├── RosterCard.less
│ ├── Selectall.less
│ ├── Standings.less
│ ├── Statisticstable.less
│ ├── Swisstable.less
│ ├── SwitchButtons.less
│ ├── Tables.less
│ ├── Tabs.less
│ ├── TeamPortal.less
│ ├── TeamTemplates.less
│ ├── Teamcard.less
│ ├── Techtree.less
│ ├── TournamentCard.less
│ └── TournamentTags.less
└── templates
└── templatesToProtect
/.eslintrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": [
3 | "wikimedia/mediawiki",
4 | "wikimedia/client/common",
5 | "wikimedia/language/es2020",
6 | "wikimedia/jquery"
7 | ],
8 | "globals": {
9 | "liquipedia": "readonly",
10 | "echarts": "readonly",
11 | "_paq": "readonly",
12 | "gtag": "readonly",
13 | "Share": "readonly"
14 | },
15 | "rules": {
16 | "space-before-function-paren": "off",
17 | "no-jquery/no-global-selector": "off",
18 | "vars-on-top": "off",
19 | "one-var": "off",
20 | "es/no-array-from": "off",
21 | "mediawiki/class-doc": "off",
22 | "mediawiki/no-nodelist-unsupported-methods": "off",
23 | "es-x/no-block-scoped-variables": "off",
24 | "es-x/no-string-prototype-startswith": "off",
25 | "es-x/no-string-prototype-includes": "off",
26 | "es-x/no-array-prototype-includes": "off",
27 | "es-x/no-array-prototype-findindex": "off",
28 | "es-x/no-spread-elements": "off",
29 | "es-x/no-property-shorthands": "off",
30 | "max-len": ["warn", { "code": 120 }]
31 | },
32 | "env": {
33 | "jquery": true
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/.git-blame-ignore-revs:
--------------------------------------------------------------------------------
1 | # Reformat with tabs
2 | fcc27a988563d051c3870950d790a0daa1d7c095
3 | # Lua restructure
4 | 9017e8abc1216bcd1d2b4cebf589713e4b5b637d
5 | dba48b92389c755437b9ea32017b2361cb92d6ed
6 | 6d828f49dd27ebe64479907c76afe51c46c30b63
7 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | *.sh eol=lf
2 |
--------------------------------------------------------------------------------
/.github/PULL_REQUEST_TEMPLATE.md:
--------------------------------------------------------------------------------
1 | ## Summary
2 |
3 |
9 |
10 | ## How did you test this change?
11 |
12 |
22 |
--------------------------------------------------------------------------------
/.github/workflows/protect new wiki modules.yml:
--------------------------------------------------------------------------------
1 | name: Protect newly set up wiki
2 |
3 | on:
4 | workflow_dispatch:
5 | inputs:
6 | wiki:
7 | description: 'Wiki to set up'
8 | required: true
9 |
10 | jobs:
11 | protect:
12 | if: github.ref_name == github.event.repository.default_branch
13 | name: Protect modules on newly set up wiki
14 | runs-on: ubuntu-latest
15 |
16 | steps:
17 | - uses: actions/checkout@v4
18 |
19 | - name: Lua Protect
20 | env:
21 | WIKI_USER: ${{ secrets.LP_BOTUSER }}
22 | WIKI_PASSWORD: ${{ secrets.LP_BOTPASSWORD }}
23 | WIKI_UA_EMAIL: ${{ secrets.LP_UA_EMAIL }}
24 | WIKI_BASE_URL: ${{ secrets.LP_BASE_URL }}
25 | WIKI_TO_PROTECT: ${{ github.event.inputs.wiki }}
26 | run: bash scripts/protect.sh
27 |
--------------------------------------------------------------------------------
/.github/workflows/protect new wiki templates.yml:
--------------------------------------------------------------------------------
1 | name: Protect newly set up wiki
2 |
3 | on:
4 | workflow_dispatch:
5 | inputs:
6 | wiki:
7 | description: 'Wiki to set up'
8 | required: true
9 |
10 | jobs:
11 | protect:
12 | if: github.ref_name == github.event.repository.default_branch
13 | name: Protect modules on newly set up wiki
14 | runs-on: ubuntu-latest
15 |
16 | steps:
17 | - uses: actions/checkout@v4
18 |
19 | - name: Template Protect
20 | env:
21 | WIKI_USER: ${{ secrets.LP_BOTUSER }}
22 | WIKI_PASSWORD: ${{ secrets.LP_BOTPASSWORD }}
23 | WIKI_UA_EMAIL: ${{ secrets.LP_UA_EMAIL }}
24 | WIKI_BASE_URL: ${{ secrets.LP_BASE_URL }}
25 | WIKI_TO_PROTECT: ${{ github.event.inputs.wiki }}
26 | run: bash scripts/protect_templates.sh
27 |
--------------------------------------------------------------------------------
/.github/workflows/resources.yml:
--------------------------------------------------------------------------------
1 | name: Resources Code Style
2 |
3 | on: [pull_request, workflow_dispatch]
4 |
5 | jobs:
6 | # Test Resources
7 | test-resources:
8 | runs-on: ubuntu-latest
9 | steps:
10 | - uses: actions/checkout@v4
11 | - name: Install modules
12 | run: npm install
13 | - name: Run test
14 | run: npm run test
15 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .idea/
2 | node_modules
3 | package-lock.json
4 | luacov.report.out
5 | luacov.stats.out
6 |
--------------------------------------------------------------------------------
/.luarc.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema.json",
3 | "runtime.version": "Lua 5.1",
4 | "runtime.plugin": "lua/plugins/sumneko_plugin.lua",
5 | "completion.autoRequire": false,
6 | "completion.requireSeparator": "/",
7 | "runtime.path": [
8 | "lua/wikis/commons/?.lua",
9 | "?.lua"
10 | ],
11 | "runtime.pathStrict": false,
12 | "diagnostics.severity": {
13 | "trailing-space": "Error"
14 | },
15 | "diagnostics.neededFileStatus": {
16 | "codestyle-check": "None",
17 | "name-style-check": "None"
18 | },
19 | "workspace.library": [
20 | "${3rd}/busted/library",
21 | "${3rd}/luassert/library"
22 | ],
23 | "workspace.ignoreDir": [
24 | ".vscode",
25 | "lua/3rd"
26 | ]
27 | }
28 |
--------------------------------------------------------------------------------
/.stylelintrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "stylelint-config-wikimedia",
3 | "plugins": [
4 | "stylelint-less"
5 | ],
6 | "customSyntax": "postcss-less",
7 | "rules": {
8 | "color-hex-length": "long",
9 | "unit-disallowed-list": null,
10 | "declaration-property-unit-disallowed-list": {},
11 | "no-descending-specificity": null,
12 | "selector-max-id": null,
13 | "function-name-case": null,
14 | "annotation-no-unknown": null,
15 | "selector-pseudo-element-colon-notation": null,
16 | "no-duplicate-selectors": null,
17 | "function-url-no-scheme-relative": null,
18 | "declaration-no-important": null,
19 | "@stylistic/string-quotes": "double",
20 | "function-no-unknown": null
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | "recommendations": [
3 | "sumneko.lua",
4 | "stylelint.vscode-stylelint",
5 | "dbaeumer.vscode-eslint"
6 | ]
7 | }
8 |
--------------------------------------------------------------------------------
/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "files.associations" : {
3 | ".busted": "lua",
4 | ".luacov": "lua"
5 | },
6 | "stylelint.validate": [
7 | "css",
8 | "postcss",
9 | "less",
10 | "scss"
11 | ],
12 | "css.validate": false,
13 | "less.validate": false,
14 | "scss.validate": false,
15 | "workbench.editor.customLabels.patterns": {
16 | "**/wikis/*/*.lua": "${dirname}: ${filename}",
17 | "**/wikis/*/*/*.lua": "${dirname(-4)}: ${dirname}/${filename}",
18 | "**/wikis/*/*/*/*.lua": "${dirname(-4)}: ${dirname(-5)}/${dirname}/${filename}",
19 | "**/wikis/*/*/*/*/*.lua": "${dirname(-4)}: ${dirname(-5)}/${dirname(-6)}/${dirname}/${filename}",
20 | "**/*.lua": "${dirname}: ${filename}"
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/Gruntfile.js:
--------------------------------------------------------------------------------
1 | /* eslint-env node */
2 | module.exports = function( grunt ) {
3 | grunt.loadNpmTasks( 'grunt-eslint' );
4 | grunt.loadNpmTasks( 'grunt-stylelint' );
5 |
6 | grunt.initConfig( {
7 | eslint: {
8 | options: {
9 | fix: grunt.option( 'fix' )
10 | },
11 | all: [
12 | 'javascript/**/*.{js,json,vue}'
13 | ]
14 | },
15 | stylelint: {
16 | options: {
17 | fix: grunt.option( 'fix' )
18 | },
19 | all: [
20 | 'stylesheets/**/*.{css,scss,less}'
21 | ]
22 | }
23 | } );
24 |
25 | grunt.registerTask( 'main', [ 'eslint', 'stylelint' ] );
26 | grunt.registerTask( 'default', 'test' );
27 | };
28 |
--------------------------------------------------------------------------------
/javascript/README.md:
--------------------------------------------------------------------------------
1 | # New File
2 |
3 | When adding a new scripts to the repository, currently, after merge, it must be added to https://liquipedia.net/commons/Special:ResourceLoaderArticles
4 |
--------------------------------------------------------------------------------
/lua/.busted:
--------------------------------------------------------------------------------
1 | return {
2 | _all = {
3 | verbose = true,
4 | helper = 'spec/test_helper.lua',
5 | },
6 | default = {
7 | ROOT = {"spec"},
8 | },
9 | ci = {
10 | ROOT = {"spec"},
11 | },
12 | }
13 |
--------------------------------------------------------------------------------
/lua/.luacheckrc:
--------------------------------------------------------------------------------
1 | std = {
2 | globals = {
3 | "mw",
4 | },
5 | read_globals = {
6 | "arg",
7 | "assert",
8 | "debug",
9 | "error",
10 | "getmetatable",
11 | "ipairs",
12 | "math",
13 | "next",
14 | "os",
15 | "package",
16 | "pairs",
17 | "pcall",
18 | "rawget",
19 | "rawset",
20 | "require",
21 | "select",
22 | "setmetatable",
23 | "string",
24 | "table",
25 | "tonumber",
26 | "tostring",
27 | "type",
28 | "unpack",
29 | "xpcall",
30 | }
31 | }
32 | exclude_files = {
33 | ".install", -- package files
34 | ".luarocks", -- package manager files
35 | "lua/3rd/*", -- 3rd party
36 | "node_modules/*", -- to speedup run when running locally
37 | }
38 |
39 | -- https://luacheck.readthedocs.io/en/stable/warnings.html#list-of-warnings
40 | ignore = {
41 | "212" -- unused argument
42 | }
43 |
44 | files["lua/spec/*_spec.lua"].read_globals = {"GoldenTest", "SetActiveWiki", "allwikis"}
45 |
--------------------------------------------------------------------------------
/lua/.luacov:
--------------------------------------------------------------------------------
1 | return {
2 | configfile = '.luacov',
3 | includeuntestedfiles = {'standard'},
4 | include = {'standard/*'},
5 | exclude = {'wikis/*'},
6 | runreport = false, -- Don't work properly for some reason, have to do a manual `luacov` call afterwards
7 | deletestats = true,
8 | }
9 |
--------------------------------------------------------------------------------
/lua/3rd/jsonlua/README.md:
--------------------------------------------------------------------------------
1 | ## License
2 | This 3rd party has a Creative Commons CC-BY "Attribution. See the file for more information.
3 |
--------------------------------------------------------------------------------
/lua/3rd/mw/README.md:
--------------------------------------------------------------------------------
1 | ## License
2 | This 3rd party has GPL-2.0-or-later as license and sometimes MIT license. [See here](https://github.com/wikimedia/mediawiki-extensions-Scribunto/blob/master/COPYING) for more information.
3 |
--------------------------------------------------------------------------------
/lua/spec/abbreviation_spec.lua:
--------------------------------------------------------------------------------
1 | --- Triple Comment to Enable our LLS Plugin
2 | describe('abbreviation', function()
3 | local Abbreviation = require('Module:Abbreviation')
4 |
5 | describe('make abbreviation', function()
6 | it('Empty input returns nil', function()
7 | assert.is_nil(Abbreviation.make())
8 | assert.is_nil(Abbreviation.make{text = ''})
9 | end)
10 | it('Only one input returns nil', function()
11 | ---@diagnostic disable-next-line: param-type-mismatch
12 | assert.is_nil(Abbreviation.make{text = 'Abc'})
13 | assert.is_nil(Abbreviation.make{text = '', title = 'Def'})
14 | end)
15 | it('Abbreviation works', function()
16 | assert.are_same('Cake', Abbreviation.make{text = 'Cake', title = 'Cookie'})
17 | end)
18 | end)
19 | end)
20 |
--------------------------------------------------------------------------------
/lua/spec/golden_masters/LeagueIcon.generate_copy_paste_gen.txt:
--------------------------------------------------------------------------------
1 |
<span class="league-icon-small-image">[[File:Icon.png|link={{{1|{{{link|link}}}}}}|{{{name|{{{1|{{{link|name}}}}}}}}}|50x50px]]</span><!--
2 | --><noinclude>[[Category:Small League Icon Templates]]</noinclude>
--------------------------------------------------------------------------------
/lua/spec/golden_masters/infobox_league_apexlegends.txt:
--------------------------------------------------------------------------------
1 | Platform:
[[PC Competitions|PC]][[Category:PC Competitions]]
Location:
[[Template:Abbr/TBD]]
--------------------------------------------------------------------------------
/lua/spec/golden_masters/infobox_league_counterstrike.txt:
--------------------------------------------------------------------------------
1 | Location:
[[Template:Abbr/TBD]]
--------------------------------------------------------------------------------
/lua/spec/golden_masters/infobox_league_dota2.txt:
--------------------------------------------------------------------------------
1 | Location:
[[Template:Abbr/TBD]]
--------------------------------------------------------------------------------
/lua/spec/golden_masters/infobox_league_leagueoflegends.txt:
--------------------------------------------------------------------------------
1 | Location:
[[Template:Abbr/TBD]]
--------------------------------------------------------------------------------
/lua/spec/golden_masters/infobox_league_mobilelegends.txt:
--------------------------------------------------------------------------------
1 | Location:
[[Template:Abbr/TBD]]
--------------------------------------------------------------------------------
/lua/spec/golden_masters/infobox_league_overwatch.txt:
--------------------------------------------------------------------------------
1 | Location:
[[Template:Abbr/TBD]]
Game:
[[Overwatch 2|Overwatch 2]]
--------------------------------------------------------------------------------
/lua/spec/golden_masters/infobox_league_rainbowsix.txt:
--------------------------------------------------------------------------------
1 | Location:
[[Template:Abbr/TBD]]
Game:
Tom Clancy's Rainbow Six Siege
Platform:
[[:Category:PC|PC]]
--------------------------------------------------------------------------------
/lua/spec/golden_masters/infobox_league_rocketleague.txt:
--------------------------------------------------------------------------------
1 | Location:
[[Template:Abbr/TBD]]
--------------------------------------------------------------------------------
/lua/spec/golden_masters/infobox_league_starcraft2.txt:
--------------------------------------------------------------------------------
1 | Game Version:
[[Wings of Liberty|Wings of Liberty]]
Location:
[[Template:Abbr/TBD]]
--------------------------------------------------------------------------------
/lua/spec/golden_masters/infobox_league_valorant.txt:
--------------------------------------------------------------------------------
1 | Location:
[[Template:Abbr/TBD]]
--------------------------------------------------------------------------------
/lua/spec/golden_masters/squad_row_apexlegends.txt:
--------------------------------------------------------------------------------
1 | Former Squad |
---|
[[File:se_hd.png|36x24px|Sweden|link=]] [[Baz|Baz]] | | (Foo Bar) Foo Bar | | Join Date: 2022-01-01 | Inactive Date: 2022-03-03 | Leave Date: 2022-05-01 | |
--------------------------------------------------------------------------------
/lua/spec/golden_masters/squad_row_counterstrike.txt:
--------------------------------------------------------------------------------
1 | Former Squad |
---|
[[File:se_hd.png|36x24px|Sweden|link=]] [[Baz|Baz]] | | (Foo Bar) Foo Bar | | Join Date: 2022-01-01 | Inactive Date: 2022-03-03 | Leave Date: 2022-05-01 | |
--------------------------------------------------------------------------------
/lua/spec/golden_masters/squad_row_dota2.txt:
--------------------------------------------------------------------------------
1 | Former Squad |
---|
[[File:se_hd.png|36x24px|Sweden|link=]] [[Baz|Baz]] | | (Foo Bar) Foo Bar | | Join Date: 2022-01-01 | Inactive Date: 2022-03-03 | | Leave Date: 2022-05-01 | |
--------------------------------------------------------------------------------
/lua/spec/golden_masters/squad_row_leagueoflegends.txt:
--------------------------------------------------------------------------------
1 | Former Squad |
---|
[[File:se_hd.png|36x24px|Sweden|link=]] [[Baz|Baz]] | | (Foo Bar) Foo Bar | | Join Date: 2022-01-01 | Inactive Date: 2022-03-03 | Leave Date: 2022-05-01 | |
--------------------------------------------------------------------------------
/lua/spec/golden_masters/squad_row_mobilelegends.txt:
--------------------------------------------------------------------------------
1 | Former Squad |
---|
[[File:se_hd.png|36x24px|Sweden|link=]] [[Baz|Baz]] | | (Foo Bar) Foo Bar | | Join Date: 2022-01-01 | Inactive Date: 2022-03-03 | Leave Date: 2022-05-01 | |
--------------------------------------------------------------------------------
/lua/spec/golden_masters/squad_row_overwatch.txt:
--------------------------------------------------------------------------------
1 | Former Squad |
---|
[[File:se_hd.png|36x24px|Sweden|link=]] [[Baz|Baz]] | | (Foo Bar) Foo Bar | | Join Date: 2022-01-01 | Leave Date: 2022-05-01 | |
--------------------------------------------------------------------------------
/lua/spec/golden_masters/squad_row_rocketleague.txt:
--------------------------------------------------------------------------------
1 | Former Squad |
---|
[[File:se_hd.png|36x24px|Sweden|link=]] [[Baz|Baz]] | | (Foo Bar) Foo Bar | | Join Date: 2022-01-01 | Inactive Date: 2022-03-03 | Leave Date: 2022-05-01 | |
--------------------------------------------------------------------------------
/lua/spec/golden_masters/squad_row_starcraft2.txt:
--------------------------------------------------------------------------------
1 | Former Squad |
---|
[[File:se_hd.png|36x24px|Sweden|link=]] [[Baz|Baz]] | | (Foo Bar) Foo Bar | | Join Date: 2022-01-01 | Inactive Date: 2022-03-03 | Leave Date: 2022-05-01 | |
--------------------------------------------------------------------------------
/lua/spec/golden_masters/squad_row_valorant.txt:
--------------------------------------------------------------------------------
1 | Former Squad |
---|
[[File:se_hd.png|36x24px|Sweden|link=]] [[Baz|Baz]] | | (Foo Bar) Foo Bar | | Join Date: 2022-01-01 | Inactive Date: 2022-03-03 | Leave Date: 2022-05-01 | |
--------------------------------------------------------------------------------
/lua/spec/i18n_spec.lua:
--------------------------------------------------------------------------------
1 | --- Triple Comment to Enable our LLS Plugin
2 | describe('i18n', function ()
3 | local I18n = require('Module:I18n')
4 |
5 | describe('translate', function()
6 | it('returns the correct interpolated string for an existing key', function()
7 | local data = { round = 7 }
8 | local result = I18n.translate('brkts-header-rx', data)
9 | assert.are.equal('Round 7,R7', result)
10 | end)
11 |
12 | it('returns the placeholder string for a missing key', function()
13 | local data = { round = 1 }
14 | local result = I18n.translate('nonexistent_key', data)
15 | assert.are.equal('⧼nonexistent_key⧽', result)
16 | end)
17 |
18 | it('falls back to English if the key is not found in the current language', function()
19 | local data = { round = 7 }
20 | local languageStub = stub(mw.language.getContentLanguage(), 'getCode', 'es')
21 |
22 | local result = I18n.translate('brkts-header-rx', data)
23 | assert.are.equal('Round 7,R7', result)
24 |
25 | languageStub:revert()
26 | end)
27 | end)
28 | end)
29 |
--------------------------------------------------------------------------------
/lua/spec/image_spec.lua:
--------------------------------------------------------------------------------
1 | --- Triple Comment to Enable our LLS Plugin
2 | describe('image', function()
3 | local Image = require('Module:Image')
4 |
5 | describe('display', function()
6 | it('allmode', function()
7 | assert.are_same('[[File:test]]', Image.display('test'))
8 | end)
9 |
10 | it('light and darkmode', function()
11 | assert.are_same('[[File:test|class=show-when-light-mode]][[File:test2|class=show-when-dark-mode]]',
12 | Image.display('test', 'test2'))
13 | end)
14 |
15 | it('options', function()
16 | assert.are_same('[[File:test|10px|link=test3|class=show-when-light-mode|capt]]'
17 | .. '[[File:test2|10px|link=test3|class=show-when-dark-mode|capt]]',
18 | Image.display('test', 'test2', {
19 | link = 'test3',
20 | size = 10,
21 | caption = 'capt'
22 | }))
23 | end)
24 | end)
25 | end)
26 |
--------------------------------------------------------------------------------
/lua/spec/infobox_spec.lua:
--------------------------------------------------------------------------------
1 | --- Triple Comment to Enable our LLS Plugin
2 | insulate('Infobox', function()
3 | insulate('League', function ()
4 | allwikis('smoke', function (args, wikiName)
5 | local LpdbSquadStub = stub(mw.ext.LiquipediaDB, 'lpdb_tournament')
6 | local LpdbQueryStub = stub(mw.ext.LiquipediaDB, 'lpdb', {})
7 | local InfoboxLeagueCustom = require('Module:Infobox/League/Custom')
8 |
9 | GoldenTest('infobox_league_' .. wikiName, tostring(InfoboxLeagueCustom.run(args.input)))
10 |
11 | LpdbSquadStub:revert()
12 | LpdbQueryStub:revert()
13 | end, {default = {
14 | input = {
15 | require('test_assets.tournaments').dummy
16 | },
17 | }})
18 | end)
19 | end)
20 |
--------------------------------------------------------------------------------
/lua/spec/math_util_spec.lua:
--------------------------------------------------------------------------------
1 | --- Triple Comment to Enable our LLS Plugin
2 | describe('math', function()
3 | local MathUtil = require('Module:MathUtil')
4 |
5 | describe('i log 2', function()
6 | it('check', function()
7 | assert.are_equal(3, MathUtil.ilog2(8))
8 | assert.are_equal(4, MathUtil.ilog2(24))
9 | end)
10 | end)
11 |
12 | describe('sum', function()
13 | it('check', function()
14 | assert.are_equal(12, MathUtil.sum{3, 5, 4})
15 | assert.are_equal(0, MathUtil.sum{})
16 | end)
17 | end)
18 |
19 | describe('partial sum', function()
20 | it('check', function()
21 | assert.are_same({0, 3, 8, 12}, MathUtil.partialSums{3, 5, 4})
22 | assert.are_same({0}, MathUtil.partialSums{})
23 | end)
24 | end)
25 |
26 | describe('dot product', function()
27 | it('check', function()
28 | assert.are_equal(55, MathUtil.dotProduct({3, 2, 4}, {5, 6, 7}))
29 | end)
30 | end)
31 | end)
32 |
--------------------------------------------------------------------------------
/lua/spec/reference_cleaner_spec.lua:
--------------------------------------------------------------------------------
1 | --- Triple Comment to Enable our LLS Plugin
2 | describe('reference cleaner', function()
3 | local ReferenceCleaner = require('Module:ReferenceCleaner')
4 |
5 | describe('date cleaning', function()
6 | it('check', function()
7 | assert.are_equal('2021-07-05', ReferenceCleaner.clean{input = '2021-07-05'})
8 | assert.are_equal('2011-05-01', ReferenceCleaner.clean{input = '2011-05-??'})
9 | assert.are_equal('2011-01-05', ReferenceCleaner.clean{input = '2011-??-05'})
10 | end)
11 | end)
12 | end)
13 |
--------------------------------------------------------------------------------
/lua/spec/text_sanitizer_spec.lua:
--------------------------------------------------------------------------------
1 | --- Triple Comment to Enable our LLS Plugin
2 | describe('logic', function()
3 | local TextSanitizer = require('Module:TextSanitizer')
4 |
5 | describe('strip HTML', function()
6 | it('check', function()
7 | assert.are_equal('Bar', TextSanitizer.stripHTML('Bar'))
8 | assert.are_equal('A -B', TextSanitizer.stripHTML('A —B'))
9 | assert.are_equal('AB', TextSanitizer.stripHTML('AB'))
10 | end)
11 | end)
12 | end)
13 |
--------------------------------------------------------------------------------
/lua/test_assets/tournaments.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:TestAssets/Tournaments
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | return {
10 | dummy = {
11 | name = 'Test Tournament',
12 | shortname = 'Test',
13 | tickername = 'Test Tourney',
14 | icon = 'test.png',
15 | icondark = 'test dark.png',
16 | series = 'Test Series',
17 | liquipediatier = '1',
18 | liquipediatiertype = 'Qualifier',
19 | type = 'Offline',
20 | region = 'Europe',
21 | country = 'The Netherlands',
22 | city = 'Utrecht',
23 | venue = 'AWTF EU',
24 | game = 'commons',
25 | sdate = '2022-10-13',
26 | edate = '2022-10-15',
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/lua/wikis/ageofempires/Earnings.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=ageofempires
4 | -- page=Module:Earnings
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 |
11 | local CustomEarnings = Lua.import('Module:Earnings/Base')
12 |
13 | CustomEarnings.defaultNumberOfStoredPlayersPerMatch = 15
14 |
15 | -- Use placement field individualprizemoney in case of player earnings
16 | CustomEarnings.divisionFactorPlayer = nil
17 |
18 | return CustomEarnings
19 |
--------------------------------------------------------------------------------
/lua/wikis/ageofempires/Infobox/Series/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=ageofempires
4 | -- page=Module:Infobox/Series/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 | local Tier = require('Module:Tier/Custom')
12 |
13 | local Series = Lua.import('Module:Infobox/Series')
14 |
15 | ---@class AoeSeriesInfobox: SeriesInfobox
16 | local CustomSeries = Class.new(Series)
17 |
18 | ---@param frame Frame
19 | ---@return string
20 | function CustomSeries.run(frame)
21 | local series = CustomSeries(frame)
22 |
23 | return series:createInfobox()
24 | end
25 |
26 | ---@param args table
27 | ---@return string
28 | function CustomSeries:createLiquipediaTierDisplay(args)
29 | return (Tier.display(
30 | args.liquipediatier,
31 | args.liquipediatiertype
32 | ) or '') .. self:appendLiquipediatierDisplay(args)
33 | end
34 |
35 | return CustomSeries
36 |
--------------------------------------------------------------------------------
/lua/wikis/ageofempires/MatchGroup/Legacy/Default.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=ageofempires
4 | -- page=Module:MatchGroup/Legacy/Default
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local MatchGroupLegacy = Lua.import('Module:MatchGroup/Legacy')
13 |
14 | ---@class AgeofEmpiresMatchGroupLegacyDefault: MatchGroupLegacy
15 | local MatchGroupLegacyDefault = Class.new(MatchGroupLegacy)
16 |
17 | ---@return table
18 | function MatchGroupLegacyDefault:getMap()
19 | return {
20 | ['$notEmpty$'] = 'map$1$',
21 | ['$parse$'] = 'map$1$'
22 | }
23 | end
24 |
25 | ---@param frame Frame
26 | ---@return string
27 | function MatchGroupLegacyDefault.run(frame)
28 | return MatchGroupLegacyDefault(frame):build()
29 | end
30 |
31 | return MatchGroupLegacyDefault
32 |
--------------------------------------------------------------------------------
/lua/wikis/apexlegends/FilterButtons/Config.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=apexlegends
4 | -- page=Module:FilterButtons/Config
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Tier = require('Module:Tier/Utils')
10 | local Config = {}
11 |
12 | ---@type FilterButtonCategory[]
13 | Config.categories = {
14 | {
15 | name = 'liquipediatier',
16 | property = 'liquipediaTier',
17 | load = function(category)
18 | category.items = {}
19 | for _, tier in Tier.iterate('tiers') do
20 | table.insert(category.items, tier.value)
21 | end
22 | end,
23 | defaultItems = {'1', '2', '3', '4', '5'},
24 | transform = function(tier)
25 | return Tier.toName(tier)
26 | end,
27 | },
28 | }
29 |
30 | return Config
31 |
--------------------------------------------------------------------------------
/lua/wikis/apexlegends/HighlightConditions.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=apexlegends
4 | -- page=Module:HighlightConditions
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local String = require('Module:StringUtils')
10 |
11 | local HighlightConditions = {}
12 |
13 | --- Check arguments or queryData if the tournament should be highlighted
14 | ---@param data table
15 | ---@param options table?
16 | ---@return boolean
17 | function HighlightConditions.tournament(data, options)
18 | data.extradata = data.extradata or {}
19 |
20 | return String.isNotEmpty(data.extradata['is ea major']) or String.isNotEmpty(data.publishertier)
21 | end
22 |
23 | return HighlightConditions
24 |
--------------------------------------------------------------------------------
/lua/wikis/apexlegends/Info.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=apexlegends
4 | -- page=Module:Info
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | return {
10 | startYear = 2019,
11 | wikiName = 'apexlegends',
12 | name = 'Apex Legends',
13 | defaultGame = 'apexlegends',
14 | games = {
15 | apexlegends = {
16 | abbreviation = 'APEX',
17 | name = 'Apex Legends',
18 | link = 'Apex Legends',
19 | logo = {
20 | darkMode = 'Apex Legends default darkmode.png',
21 | lightMode = 'Apex Legends default lightmode.png',
22 | },
23 | defaultTeamLogo = {
24 | darkMode = 'Apex Legends default darkmode.png',
25 | lightMode = 'Apex Legends default lightmode.png',
26 | },
27 | },
28 | },
29 | config = {
30 | squads = {
31 | hasPosition = false,
32 | hasSpecialTeam = true,
33 | allowManual = true,
34 | },
35 | match2 = {
36 | status = 1,
37 | },
38 | },
39 | defaultRoundPrecision = 0,
40 | }
41 |
--------------------------------------------------------------------------------
/lua/wikis/apexlegends/PrizePool/Legacy/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=apexlegends
4 | -- page=Module:PrizePool/Legacy/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Logic = require('Module:Logic')
10 | local Lua = require('Module:Lua')
11 |
12 | local PrizePoolLegacy = Lua.import('Module:PrizePool/Legacy')
13 |
14 | local CustomLegacyPrizePool = {}
15 |
16 | -- Template entry point
17 | ---@return Html
18 | function CustomLegacyPrizePool.run()
19 | return PrizePoolLegacy.run(CustomLegacyPrizePool)
20 | end
21 |
22 | ---@param newArgs table
23 | ---@param data table
24 | ---@param header table
25 | ---@return table
26 | function CustomLegacyPrizePool.customHeader(newArgs, data, header)
27 | if Logic.readBool(header.seed) then
28 | PrizePoolLegacy.assignType(newArgs, 'seed', 'seed')
29 | end
30 |
31 | return newArgs
32 | end
33 |
34 | return CustomLegacyPrizePool
35 |
--------------------------------------------------------------------------------
/lua/wikis/arenafps/FilterButtons/Config.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=arenafps
4 | -- page=Module:FilterButtons/Config
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Tier = require('Module:Tier/Utils')
10 | local Config = {}
11 |
12 | Config.categories = {
13 | {
14 | name = 'liquipediatier',
15 | property = 'liquipediaTier',
16 | load = function(category)
17 | category.items = {}
18 | for _, tier in Tier.iterate('tiers') do
19 | table.insert(category.items, tier.value)
20 | end
21 | end,
22 | defaultItems = {'1', '2', '3', '4'},
23 | transform = function(tier)
24 | return Tier.toName(tier)
25 | end,
26 | },
27 | }
28 |
29 | return Config
30 |
--------------------------------------------------------------------------------
/lua/wikis/arenafps/InGameRoles.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=arenafps
4 | -- page=Module:InGameRoles
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | ---@type PersonRoleData
10 | local inGameRoles = {
11 | ['duel'] = {category = 'Duel', display = 'Duel'},
12 | ['tdm'] = {category = 'TDM', display = 'TDM'},
13 | ['ctf'] = {category = 'CTF', display = 'CTF'},
14 | ['sacrifice'] = {category = 'Sacrifice', display = 'Sacrifice'},
15 | ['3vs3'] = {category = '3vs3', display = '3vs3'},
16 | }
17 |
18 | inGameRoles['dueler'] = inGameRoles.duel
19 |
20 | return inGameRoles
21 |
--------------------------------------------------------------------------------
/lua/wikis/arenafps/MatchGroup/Legacy/Default.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=arenafps
4 | -- page=Module:MatchGroup/Legacy/Default
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local MatchGroupLegacy = Lua.import('Module:MatchGroup/Legacy')
13 |
14 |
15 | ---@class ArenafpsMatchGroupLegacyDefault: MatchGroupLegacy
16 | local MatchGroupLegacyDefault = Class.new(MatchGroupLegacy)
17 |
18 | ---@return table
19 | function MatchGroupLegacyDefault:getMap()
20 | return {
21 | ['$notEmpty$'] = 'map$1$',
22 | map = 'map$1$',
23 | finished = 'map$1$finished',
24 | winner = 'map$1$winner',
25 | score1 = 'map$1$score1',
26 | score2 = 'map$1$score2',
27 | vod = 'vodgame$1$'
28 | }
29 | end
30 |
31 | ---@param frame Frame
32 | function MatchGroupLegacyDefault.run(frame)
33 | return MatchGroupLegacyDefault(frame):build()
34 | end
35 |
36 | return MatchGroupLegacyDefault
37 |
--------------------------------------------------------------------------------
/lua/wikis/artifact/Info.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=artifact
4 | -- page=Module:Info
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | return {
10 | startYear = 2018,
11 | wikiName = 'artifact',
12 | name = 'Artifact',
13 | defaultGame = 'artifact',
14 | games = {
15 | artifact = {
16 | abbreviation = 'Artifact',
17 | name = 'Artifact',
18 | link = 'Artifact',
19 | logo = {
20 | darkMode = 'Logo filler event.png',
21 | lightMode = 'Logo filler event.png',
22 | },
23 | defaultTeamLogo = {
24 | darkMode = 'Artifact allmode.png',
25 | lightMode = 'Artifact allmode.png',
26 | },
27 | },
28 | },
29 | config = {
30 | squads = {
31 | hasPosition = false,
32 | hasSpecialTeam = false,
33 | allowManual = true,
34 | },
35 | match2 = {
36 | status = 2,
37 | },
38 | },
39 | }
40 |
--------------------------------------------------------------------------------
/lua/wikis/autochess/Info.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=autochess
4 | -- page=Module:Info
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | return {
10 | startYear = 2019,
11 | wikiName = 'autochess',
12 | name = 'Auto Chess',
13 | defaultGame = 'autochess',
14 | games = {
15 | autochess = {
16 | abbreviation = 'Auto Chess',
17 | name = 'Auto Chess',
18 | link = 'Auto Chess',
19 | logo = {
20 | darkMode = 'Logo filler event.png',
21 | lightMode = 'Logo filler event.png',
22 | },
23 | defaultTeamLogo = {
24 | darkMode = 'Auto Chess lightmode.png',
25 | lightMode = 'Auto Chess darkmode.png',
26 | },
27 | },
28 | },
29 | config = {
30 | squads = {
31 | hasPosition = false,
32 | hasSpecialTeam = false,
33 | allowManual = true,
34 | },
35 | match2 = {
36 | status = 2,
37 | },
38 | },
39 | }
40 |
--------------------------------------------------------------------------------
/lua/wikis/battalion/Info.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=battalion
4 | -- page=Module:Info
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | return {
10 | startYear = 2019,
11 | wikiName = 'battalion',
12 | name = 'Battalion 1944',
13 | defaultGame = 'battalion',
14 | games = {
15 | battalion = {
16 | abbreviation = 'Battalion',
17 | name = 'Battalion 1944',
18 | link = 'Battalion 1944',
19 | logo = {
20 | darkMode = 'Logo filler event.png',
21 | lightMode = 'Logo filler event.png',
22 | },
23 | defaultTeamLogo = {
24 | darkMode = 'Battalion 1944 default darkmode.png',
25 | lightMode = 'Battalion 1944 default lightmode.png',
26 | },
27 | },
28 | },
29 | config = {
30 | squads = {
31 | hasPosition = false,
32 | hasSpecialTeam = false,
33 | allowManual = true,
34 | },
35 | match2 = {
36 | status = 2,
37 | },
38 | },
39 | }
40 |
--------------------------------------------------------------------------------
/lua/wikis/battalion/MatchGroup/Legacy/Default.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=battalion
4 | -- page=Module:MatchGroup/Legacy/Default
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local MatchGroupLegacy = Lua.import('Module:MatchGroup/Legacy')
13 |
14 | ---@class BattalionMatchGroupLegacyDefault: MatchGroupLegacy
15 | local MatchGroupLegacyDefault = Class.new(MatchGroupLegacy)
16 |
17 | ---@return table
18 | function MatchGroupLegacyDefault:getMap()
19 | return {
20 | ['$notEmpty$'] = 'map$1$',
21 | map = 'map$1$',
22 | winner = 'map$1$win',
23 | vod = 'vodgame$1$',
24 | score1 = 'map$1$score1',
25 | score2 = 'map$1$score2',
26 | }
27 | end
28 |
29 | ---@param frame Frame
30 | ---@return string
31 | function MatchGroupLegacyDefault.run(frame)
32 | return MatchGroupLegacyDefault(frame):build()
33 | end
34 |
35 | return MatchGroupLegacyDefault
36 |
--------------------------------------------------------------------------------
/lua/wikis/battlerite/Info.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=battlerite
4 | -- page=Module:Info
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | return {
10 | startYear = 2016,
11 | wikiName = 'battlerite',
12 | name = 'Battlerite',
13 | defaultGame = 'battlerite',
14 | games = {
15 | battlerite = {
16 | abbreviation = 'Battlerite',
17 | name = 'Battlerite',
18 | link = 'Battlerite',
19 | logo = {
20 | darkMode = 'Logo filler event.png',
21 | lightMode = 'Logo filler event.png',
22 | },
23 | defaultTeamLogo = {
24 | darkMode = 'Battlerite default allmode.png',
25 | lightMode = 'Battlerite default allmode.png',
26 | },
27 | },
28 | },
29 | config = {
30 | squads = {
31 | hasPosition = false,
32 | hasSpecialTeam = false,
33 | allowManual = true,
34 | },
35 | match2 = {
36 | status = 2,
37 | },
38 | },
39 | }
40 |
--------------------------------------------------------------------------------
/lua/wikis/brawlhalla/Brkts/WikiSpecific.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=brawlhalla
4 | -- page=Module:Brkts/WikiSpecific
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Logic = require('Module:Logic')
10 | local Lua = require('Module:Lua')
11 | local Table = require('Module:Table')
12 |
13 | local BaseWikiSpecific = Lua.import('Module:Brkts/WikiSpecific/Base')
14 |
15 | ---@class BrawlHallaBrktsWikiSpecific: BrktsWikiSpecific
16 | local WikiSpecific = Table.copy(BaseWikiSpecific)
17 |
18 | ---@param match table
19 | ---@return boolean
20 | function WikiSpecific.matchHasDetails(match)
21 | return match.dateIsExact
22 | or Logic.isNotEmpty(match.vod)
23 | or not Table.isEmpty(match.links)
24 | or Logic.isNotEmpty(match.comment)
25 | or 0 < #match.games
26 | end
27 |
28 | return WikiSpecific
29 |
--------------------------------------------------------------------------------
/lua/wikis/brawlhalla/Earnings.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=brawlhalla
4 | -- page=Module:Earnings
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 |
11 | return Lua.import('Module:Earnings/Legacy')
12 |
--------------------------------------------------------------------------------
/lua/wikis/brawlhalla/Info.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=brawlhalla
4 | -- page=Module:Info
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | return {
10 | startYear = 2017,
11 | wikiName = 'brawlhalla',
12 | name = 'Brawlhalla',
13 | defaultGame = 'brawl',
14 | games = {
15 | brawl = {
16 | abbreviation = 'Brawl',
17 | name = 'Brawlhalla',
18 | link = 'Brawlhalla',
19 | logo = {
20 | darkMode = 'Brawlhalla Default logo.png',
21 | lightMode = 'Brawlhalla Default logo.png',
22 | },
23 | defaultTeamLogo = {
24 | darkMode = 'Brawlhalla Default logo.png',
25 | lightMode = 'Brawlhalla Default logo.png',
26 | },
27 | },
28 | },
29 | config = {
30 | squads = {
31 | hasPosition = false,
32 | hasSpecialTeam = false,
33 | allowManual = true,
34 | },
35 | match2 = {
36 | status = 1,
37 | },
38 | },
39 | }
40 |
--------------------------------------------------------------------------------
/lua/wikis/brawlstars/Info.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=brawlstars
4 | -- page=Module:Info
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | return {
10 | startYear = 2018,
11 | wikiName = 'brawlstars',
12 | name = 'Brawl Stars',
13 | defaultGame = 'brawlstars',
14 | games = {
15 | brawlstars = {
16 | abbreviation = 'BS',
17 | name = 'Brawl Stars',
18 | link = 'Brawl Stars',
19 | logo = {
20 | darkMode = 'Brawl Stars Default allmode.png',
21 | lightMode = 'Brawl Stars Default allmode.png',
22 | },
23 | defaultTeamLogo = {
24 | darkMode = 'Brawl Stars Default allmode.png',
25 | lightMode = 'Brawl Stars Default allmode.png',
26 | },
27 | },
28 | },
29 | config = {
30 | squads = {
31 | hasPosition = false,
32 | hasSpecialTeam = false,
33 | allowManual = true,
34 | },
35 | match2 = {
36 | status = 2,
37 | matchWidth = 150,
38 | },
39 | },
40 | defaultRoundPrecision = 0,
41 | }
42 |
--------------------------------------------------------------------------------
/lua/wikis/brawlstars/MatchGroup/Legacy/Default.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=brawlstars
4 | -- page=Module:MatchGroup/Legacy/Default
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local MatchGroupLegacy = Lua.import('Module:MatchGroup/Legacy')
13 |
14 | ---@class BrawlstarsMatchGroupLegacyDefault: MatchGroupLegacy
15 | local MatchGroupLegacyDefault = Class.new(MatchGroupLegacy)
16 |
17 | ---@return table
18 | function MatchGroupLegacyDefault:getMap()
19 | return {
20 | ['$notEmpty$'] = 'map$1$',
21 | map = 'map$1$',
22 | winner = 'map$1$winner',
23 | maptype = 'map$1$maptype',
24 | score1 = 'map$1$score1',
25 | score2 = 'map$1$score2'
26 | }
27 | end
28 |
29 | ---@param frame Frame
30 | ---@return string
31 | function MatchGroupLegacyDefault.run(frame)
32 | return MatchGroupLegacyDefault(frame):build()
33 | end
34 |
35 | return MatchGroupLegacyDefault
36 |
--------------------------------------------------------------------------------
/lua/wikis/callofduty/MatchGroup/Legacy/Default.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=callofduty
4 | -- page=Module:MatchGroup/Legacy/Default
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local MatchGroupLegacy = Lua.import('Module:MatchGroup/Legacy')
13 |
14 | ---@class CallofdutyMatchGroupLegacyDefault: MatchGroupLegacy
15 | local MatchGroupLegacyDefault = Class.new(MatchGroupLegacy)
16 |
17 | ---@return table
18 | function MatchGroupLegacyDefault:getMap()
19 | return {
20 | ['$notEmpty$'] = 'map$1$win',
21 | map = 'map$1$',
22 | winner = 'map$1$win',
23 | mode = 'map$1$type',
24 | vod = 'vodgame$1$',
25 | score1 = 'map$1$score1',
26 | score2 = 'map$1$score2',
27 | }
28 | end
29 |
30 | ---@param frame Frame
31 | ---@return string
32 | function MatchGroupLegacyDefault.run(frame)
33 | return MatchGroupLegacyDefault(frame):build()
34 | end
35 |
36 | return MatchGroupLegacyDefault
--------------------------------------------------------------------------------
/lua/wikis/chess/ChessOpenings.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=chess
4 | -- page=Module:ChessOpenings
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Logic = require('Module:Logic')
10 |
11 | local ChessOpening = mw.loadData('Module:ChessOpenings/Data')
12 |
13 | local ChessOpeningsSetup = {}
14 |
15 | function ChessOpeningsSetup.sanitise(eco)
16 | if Logic.isEmpty(eco) then
17 | return
18 | end
19 | eco = mw.text.trim(eco):upper()
20 | if ChessOpening[eco] then
21 | return eco
22 | end
23 | end
24 |
25 | function ChessOpeningsSetup.getName(eco, withPrefix)
26 | eco = ChessOpeningsSetup.sanitise(eco)
27 | if ChessOpening[eco] then
28 | return withPrefix and (eco .. ': ' .. ChessOpening[eco]) or ChessOpening[eco]
29 | end
30 | end
31 |
32 | return ChessOpeningsSetup
33 |
--------------------------------------------------------------------------------
/lua/wikis/clashofclans/Info.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=clashofclans
4 | -- page=Module:Info
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | return {
10 | startYear = 2012,
11 | wikiName = 'clashofclans',
12 | name = 'Clash of Clans',
13 | defaultGame = 'clashofclans',
14 | games = {
15 | clashofclans = {
16 | abbreviation = 'CoC',
17 | name = 'Clash of Clans',
18 | link = 'Main Page',
19 | logo = {
20 | darkMode = 'Clash of Clans default allmode.png',
21 | lightMode = 'Clash of Clans default allmode.png',
22 | },
23 | defaultTeamLogo = {
24 | darkMode = 'Clash of Clans default allmode.png',
25 | lightMode = 'Clash of Clans default allmode.png',
26 | },
27 | },
28 | },
29 | config = {
30 | squads = {
31 | hasPosition = false,
32 | hasSpecialTeam = false,
33 | allowManual = true,
34 | },
35 | match2 = {
36 | status = 2,
37 | matchWidth = 200,
38 | },
39 | transfers = {
40 | showTeamName = true,
41 | },
42 | },
43 | }
44 |
--------------------------------------------------------------------------------
/lua/wikis/clashroyale/Info.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=clashroyale
4 | -- page=Module:Info
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | return {
10 | startYear = 2016,
11 | wikiName = 'clashroyale',
12 | name = 'Clash Royale',
13 | defaultGame = 'cr',
14 | games = {
15 | cr = {
16 | abbreviation = 'CR',
17 | name = 'Clash Royale',
18 | link = 'Clash Royale',
19 | logo = {
20 | darkMode = 'Clash Royale default allmode.png',
21 | lightMode = 'Clash Royale default allmode.png',
22 | },
23 | defaultTeamLogo = {
24 | darkMode = 'Clash Royale default allmode.png',
25 | lightMode = 'Clash Royale default allmode.png',
26 | },
27 | },
28 | },
29 | config = {
30 | squads = {
31 | hasPosition = false,
32 | hasSpecialTeam = false,
33 | allowManual = true,
34 | },
35 | match2 = {
36 | status = 2,
37 | matchWidthMobile = 110,
38 | matchWidth = 170,
39 | },
40 | },
41 | }
42 |
--------------------------------------------------------------------------------
/lua/wikis/clashroyale/MatchGroup/Legacy/Default.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=clashroyale
4 | -- page=Module:MatchGroup/Legacy/Default
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local MatchGroupLegacy = Lua.import('Module:MatchGroup/Legacy')
13 |
14 | ---@class ClashroyaleMatchGroupLegacyDefault: MatchGroupLegacy
15 | local MatchGroupLegacyDefault = Class.new(MatchGroupLegacy)
16 |
17 | ---@return table
18 | function MatchGroupLegacyDefault:getMap()
19 | return {
20 | ['$notEmpty$'] = 'map$1$',
21 | ['$parse$'] = 'map$1$',
22 | }
23 | end
24 |
25 | ---@param frame Frame
26 | ---@return string
27 | function MatchGroupLegacyDefault.run(frame)
28 | return MatchGroupLegacyDefault(frame):build()
29 | end
30 |
31 | return MatchGroupLegacyDefault
32 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Abbreviation.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Abbreviation
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Abbreviation = {}
10 |
11 | local Class = require('Module:Class')
12 | local Logic = require('Module:Logic')
13 |
14 |
15 | ---@param args {text: string, title: string}
16 | ---@return string
17 | ---@overload fun(args: {text: nil?, title: any}): nil
18 | ---@overload fun(args: {text: any, title: nil?}): nil
19 | ---@overload fun(): nil
20 | function Abbreviation.make(args)
21 | args = args or {}
22 | local text = args.text
23 | local title = args.title
24 | if Logic.isEmpty(title) or Logic.isEmpty(text) then
25 | return nil
26 | end
27 | return '' .. text .. ''
28 | end
29 |
30 | return Class.export(Abbreviation, {exports = {'make'}})
31 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Brkts/WikiSpecific.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Brkts/WikiSpecific
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 | local Base = Lua.import('Module:Brkts/WikiSpecific/Base')
11 |
12 | return Base
13 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Earnings.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Earnings
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 |
11 | local CustomEarnings = Lua.import('Module:Earnings/Base')
12 |
13 | -- overwrite functions if needed
14 | -- e.g. divisionFactor if there are other modes
15 | -- or if the default mode is different
16 |
17 | return CustomEarnings
18 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Faction/Data.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Faction/Data
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Info = require('Module:Info')
10 |
11 | return {
12 | defaultGame = Info.defaultGame,
13 | factionProps = {[Info.defaultGame] = {}},
14 | defaultFaction = '',
15 | factions = {
16 | [Info.defaultGame] = {},
17 | },
18 | knownFactions = {},
19 | coreFactions = {},
20 | aliases = {[Info.defaultGame] = {}},
21 | }
22 |
--------------------------------------------------------------------------------
/lua/wikis/commons/FilterButtons/Config.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:FilterButtons/Config
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Tier = require('Module:Tier/Utils')
10 | local Config = {}
11 |
12 | ---@type FilterButtonCategory[]
13 | Config.categories = {
14 | {
15 | name = 'liquipediatier',
16 | property = 'liquipediaTier',
17 | load = function(category)
18 | category.items = {}
19 | for _, tier in Tier.iterate('tiers') do
20 | table.insert(category.items, tier.value)
21 | end
22 | end,
23 | defaultItems = {'1', '2', '3'},
24 | transform = function(tier)
25 | return Tier.toName(tier)
26 | end,
27 | },
28 | }
29 |
30 | return Config
31 |
--------------------------------------------------------------------------------
/lua/wikis/commons/GameTable/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:GameTable/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local GameTable = Lua.import('Module:GameTable')
13 |
14 | local CustomGameTable = {}
15 |
16 | ---@param args table
17 | ---@return Html
18 | function CustomGameTable.results(args)
19 | return GameTable(args):readConfig():query():build()
20 | end
21 |
22 | return Class.export(CustomGameTable, {exports = {'results'}})
23 |
--------------------------------------------------------------------------------
/lua/wikis/commons/GetMatchGroupCopyPaste/wiki.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:GetMatchGroupCopyPaste/wiki
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 | local BaseGetMatchGroupCopyPaste = Lua.import('Module:GetMatchGroupCopyPaste/wiki/Base')
11 |
12 | return BaseGetMatchGroupCopyPaste
13 |
--------------------------------------------------------------------------------
/lua/wikis/commons/HiddenDataBox/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:HiddenDataBox/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local BasicHiddenDataBox = Lua.import('Module:HiddenDataBox')
13 |
14 | local CustomHiddenDataBox = {}
15 |
16 | ---Entry point
17 | ---@param args table
18 | ---@return Html
19 | function CustomHiddenDataBox.run(args)
20 | BasicHiddenDataBox.addCustomVariables = CustomHiddenDataBox.addCustomVariables
21 | return BasicHiddenDataBox.run(args)
22 | end
23 |
24 | ---@param args table
25 | ---@param queryResult table
26 | function CustomHiddenDataBox.addCustomVariables(args, queryResult)
27 | --add your wiki specific vars here
28 | end
29 |
30 | return Class.export(CustomHiddenDataBox, {exports = {'run'}})
31 |
--------------------------------------------------------------------------------
/lua/wikis/commons/HiddenSort.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:HiddenSort
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local HiddenSort = {}
10 |
11 | ---Creates a hiddensort span
12 | ---@param sortText string|number|nil
13 | ---@return Html
14 | function HiddenSort.run(sortText)
15 | return mw.html.create('span')
16 | :css('display', 'none')
17 | :wikitext(sortText)
18 | end
19 |
20 | return HiddenSort
21 |
--------------------------------------------------------------------------------
/lua/wikis/commons/HighlightConditions.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:HighlightConditions
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Logic = require('Module:Logic')
10 | local String = require('Module:StringUtils')
11 |
12 | local HighlightConditions = {}
13 |
14 | --- Check arguments or queryData if the tournament should be highlighted
15 | ---@param data table
16 | ---@param options table?
17 | ---@return boolean
18 | function HighlightConditions.tournament(data, options)
19 | data.extradata = data.extradata or {}
20 | options = options or {}
21 |
22 | if options.onlyHighlightOnValue then
23 | return data.publishertier == options.onlyHighlightOnValue
24 | end
25 |
26 | return Logic.nilOr(
27 | Logic.readBoolOrNil(data.publishertier),
28 | String.isNotEmpty(data.publishertier) or nil,
29 | String.isNotEmpty(data.extradata.publisherpremier)
30 | )
31 | end
32 |
33 | return HighlightConditions
34 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Info.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Info
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | return {
10 | wikiName = 'commons',
11 | name = 'Commons',
12 | defaultGame = 'commons',
13 | games = {
14 | commons = {
15 | abbreviation = 'Commons',
16 | name = 'Commons',
17 | link = 'lpcommons:Main Page',
18 | logo = {
19 | darkMode = 'Liquipedia logo.png',
20 | lightMode = 'Liquipedia logo.png',
21 | },
22 | defaultTeamLogo = {
23 | darkMode = 'Liquipedia logo.png',
24 | lightMode = 'Liquipedia logo.png',
25 | },
26 | },
27 | },
28 | config = {
29 | squads = {
30 | hasPosition = false,
31 | hasSpecialTeam = false,
32 | allowManual = true,
33 | },
34 | match2 = {
35 | matchPage = false,
36 | status = 2,
37 | },
38 | },
39 | }
40 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Infobox/Character/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Infobox/Character/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local Character = Lua.import('Module:Infobox/Character')
13 |
14 | ---@class CustomCharacterInfobox: CharacterInfobox
15 | local CustomCharacter = Class.new(Character)
16 |
17 | ---@param frame Frame
18 | ---@return Html
19 | function CustomCharacter.run(frame)
20 | return CustomCharacter(frame):createInfobox()
21 | end
22 |
23 | return CustomCharacter
24 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Infobox/Company/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Infobox/Company/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local Company = Lua.import('Module:Infobox/Company')
13 |
14 | ---@class CustomCompanyInfobox: CompanyInfobox
15 | local CustomCompany = Class.new(Company)
16 |
17 | ---@param frame Frame
18 | ---@return Html
19 | function CustomCompany.run(frame)
20 | local company = CustomCompany(frame)
21 | return company:createInfobox()
22 | end
23 |
24 | return CustomCompany
25 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Infobox/Faction/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Infobox/Faction/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local FactionInfobox = Lua.import('Module:Infobox/Faction')
13 |
14 | ---@class CustomFactionInfobox: FactionInfobox
15 | local CustomFactionInfobox = Class.new(FactionInfobox)
16 |
17 | ---@param frame Frame
18 | ---@return string
19 | function CustomFactionInfobox.run(frame)
20 | local infobox = CustomFactionInfobox(frame)
21 | return infobox:createInfobox()
22 | end
23 |
24 | return CustomFactionInfobox
25 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Infobox/Game/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Infobox/Game/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local Game = Lua.import('Module:Infobox/Game')
13 |
14 | ---@class CustomGameInfobox: GameInfobox
15 | local CustomGame = Class.new(Game)
16 |
17 | ---@param frame Frame
18 | ---@return Html
19 | function CustomGame.run(frame)
20 | local customGame = CustomGame(frame)
21 | return customGame:createInfobox()
22 | end
23 |
24 | return CustomGame
25 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Infobox/League/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Infobox/League/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local League = Lua.import('Module:Infobox/League')
13 |
14 | ---@class CustomInfoboxLeague: InfoboxLeague
15 | local CustomLeague = Class.new(League)
16 |
17 | ---@param frame Frame
18 | ---@return Html
19 | function CustomLeague.run(frame)
20 | local league = CustomLeague(frame)
21 | return league:createInfobox()
22 | end
23 |
24 | return CustomLeague
25 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Infobox/Manufacturer/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Infobox/Manufacturer/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local Manufacturer = Lua.import('Module:Infobox/Manufacturer')
13 |
14 | ---@class CustomManufacturerInfobox: ManufacturerInfobox
15 | local CustomManufacturer = Class.new(Manufacturer)
16 |
17 | ---@param frame Frame
18 | ---@return Html
19 | function CustomManufacturer.run(frame)
20 | local manufacturer = CustomManufacturer(frame)
21 |
22 | -- add custom code here
23 |
24 | return manufacturer:createInfobox()
25 | end
26 |
27 | return CustomManufacturer
28 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Infobox/Mock/League.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Infobox/Mock/League
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 |
11 | local League = Lua.import('Module:Infobox/League')
12 | local Variables = Lua.import('Module:Variables')
13 |
14 | local mockTournament = {}
15 |
16 | function mockTournament.setUp(data)
17 | League:_definePageVariables(data)
18 | end
19 |
20 | function mockTournament.tearDown()
21 | League:_definePageVariables({})
22 | Variables.varDefine('tournament_parent')
23 | end
24 |
25 | return mockTournament
26 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Infobox/Patch/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Infobox/Patch/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local Patch = Lua.import('Module:Infobox/Patch')
13 |
14 | ---@class CustomPatchInfobox: PatchInfobox
15 | local CustomPatch = Class.new(Patch)
16 |
17 | ---@param frame Frame
18 | ---@return Html
19 | function CustomPatch.run(frame)
20 | local customPatch = CustomPatch(frame)
21 | return customPatch:createInfobox()
22 | end
23 |
24 | return CustomPatch
25 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Infobox/Series/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Infobox/Series/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local Series = Lua.import('Module:Infobox/Series')
13 |
14 | ---@class CustomSeriesInfobox: SeriesInfobox
15 | local CustomSeries = Class.new(Series)
16 |
17 | ---@param frame Frame
18 | ---@return string
19 | function CustomSeries.run(frame)
20 | local series = CustomSeries(frame)
21 | return series:createInfobox()
22 | end
23 |
24 | return CustomSeries
25 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Infobox/Show/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Infobox/Show/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local Show = Lua.import('Module:Infobox/Show')
13 |
14 | ---@class CustomShowInfobox: ShowInfobox
15 | local CustomShow = Class.new(Show)
16 |
17 | ---@param frame Frame
18 | ---@return Html
19 | function CustomShow.run(frame)
20 | local customShow = CustomShow(frame)
21 | return customShow:createInfobox()
22 | end
23 |
24 | return CustomShow
25 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Infobox/Strategy/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Infobox/Strategy/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local Strategy = Lua.import('Module:Infobox/Strategy')
13 |
14 | ---@class CustomStrategyInfobox: StrategyInfobox
15 | local CustomStrategy = Class.new(Strategy)
16 |
17 | ---@param frame Frame
18 | ---@return Html
19 | function CustomStrategy.run(frame)
20 | local customStrategy = CustomStrategy(frame)
21 | return customStrategy:createInfobox()
22 | end
23 |
24 | return CustomStrategy
25 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Infobox/Tool/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Infobox/Tool/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 | local InfoboxTool = Lua.import('Module:Infobox/Tool')
11 |
12 | return InfoboxTool
13 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Infobox/UnofficialWorldChampion/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Infobox/UnofficialWorldChampion/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local UnofficialWorldChampion = Lua.import('Module:Infobox/UnofficialWorldChampion')
13 |
14 | ---@class CustomUnofficialWorldChampionInfobox: UnofficialWorldChampionInfobox
15 | local CustomUnofficialWorldChampion = Class.new(UnofficialWorldChampion)
16 |
17 | ---@param frame Frame
18 | ---@return Html
19 | function CustomUnofficialWorldChampion.run(frame)
20 | local unofficialWorldChampion = CustomUnofficialWorldChampion(frame)
21 | return unofficialWorldChampion:createInfobox()
22 | end
23 |
24 | return CustomUnofficialWorldChampion
25 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Infobox/Weapon/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Infobox/Weapon/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local Weapon = Lua.import('Module:Infobox/Weapon')
13 |
14 | ---@class CustomWeaponInfobox: WeaponInfobox
15 | local CustomWeapon = Class.new(Weapon)
16 |
17 | ---@param frame Frame
18 | ---@return Html
19 | function CustomWeapon.run(frame)
20 | local weapon = CustomWeapon(frame)
21 | return weapon:createInfobox()
22 | end
23 |
24 | return CustomWeapon
25 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Infobox/Website/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Infobox/Website/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local Website = Lua.import('Module:Infobox/Website')
13 |
14 | ---@class CustomWebsiteInfobox: WebsiteInfobox
15 | local CustomWebsite = Class.new(Website)
16 |
17 | ---@param frame Frame
18 | ---@return Html
19 | function CustomWebsite.run(frame)
20 | local website = CustomWebsite(frame)
21 | return website:createInfobox()
22 | end
23 |
24 | return CustomWebsite
25 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Links/MatchPriorityGroups.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Links/MatchPriorityGroups
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | return {
10 | -- common
11 | 'vod',
12 | 'preview',
13 | 'interview',
14 | 'review',
15 | 'lrthread',
16 | 'recap',
17 | 'headtohead',
18 |
19 | -- ageofempires
20 | 'mapdraft',
21 | 'civdraft'
22 | }
23 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Lpdb/Injector.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Lpdb/Injector
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 |
11 | --- @class LpdbInjector: BaseClass
12 | local Injector = Class.new()
13 |
14 | function Injector:adjust(lpdbData, ...)
15 | return lpdbData
16 | end
17 |
18 | return Injector
19 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Match/Util.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Match/Util
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Table = require('Module:Table')
10 |
11 | local MatchUtil = {}
12 |
13 | ---@param matchOpponent table
14 | ---@param gameOpponent table
15 | function MatchUtil.enrichGameOpponentFromMatchOpponent(matchOpponent, gameOpponent)
16 | local newGameOpponent = Table.deepMerge(matchOpponent, gameOpponent)
17 | -- These values are only allowed to come from Game and not Match
18 | newGameOpponent.placement = gameOpponent.placement
19 | newGameOpponent.score = gameOpponent.score
20 | newGameOpponent.status = gameOpponent.status
21 |
22 | -- TODO: match2players vs players duplication. Which one to keep? How to merge?
23 |
24 | return newGameOpponent
25 | end
26 |
27 | return MatchUtil
28 |
--------------------------------------------------------------------------------
/lua/wikis/commons/MatchGroup/Legacy/Util.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:MatchGroup/Legacy/Util
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Array = require('Module:Array')
10 |
11 | local MatchLegacyUtil = {}
12 |
13 | MatchLegacyUtil.STATUS = {
14 | SCORE = 'S',
15 | FORFEIT = 'FF',
16 | DISQUALIFIED = 'DQ',
17 | LOSS = 'L',
18 | WIN = 'W',
19 | }
20 |
21 | ---@param opponents table[]
22 | ---@return string?
23 | function MatchLegacyUtil.calculateWalkoverType(opponents)
24 | return (Array.find(opponents or {}, function(opponent)
25 | return opponent.status == MatchLegacyUtil.STATUS.FORFEIT
26 | or opponent.status == MatchLegacyUtil.STATUS.DISQUALIFIED
27 | or opponent.status == MatchLegacyUtil.STATUS.LOSS
28 | end) or {}).status
29 | end
30 |
31 | return MatchLegacyUtil
32 |
--------------------------------------------------------------------------------
/lua/wikis/commons/MatchGroup/Util/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:MatchGroup/Util/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 | local MatchGroupUtil = Lua.import('Module:MatchGroup/Util')
11 |
12 | return MatchGroupUtil
13 |
--------------------------------------------------------------------------------
/lua/wikis/commons/MatchTable/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:MatchTable/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local MatchTable = Lua.import('Module:MatchTable')
13 |
14 | local CustomMatchTable = {}
15 |
16 | ---@param args table
17 | ---@return Html
18 | function CustomMatchTable.results(args)
19 | return MatchTable(args):readConfig():query():build()
20 | end
21 |
22 | return Class.export(CustomMatchTable, {exports = {'results'}})
23 |
--------------------------------------------------------------------------------
/lua/wikis/commons/MatchesScheduleDisplay/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:MatchesScheduleDisplay/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local MatchesTable = Lua.import('Module:MatchesScheduleDisplay')
13 |
14 | local CustomMatchesTable = {}
15 |
16 | function CustomMatchesTable.run(args)
17 | return MatchesTable(args):create()
18 | end
19 |
20 | return Class.export(CustomMatchesTable, {exports = {'run'}})
21 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Medals.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Medals
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 |
11 | local Data = Lua.import('Module:Medals/Data', {loadData = true})
12 | local Image = Lua.import('Module:Image')
13 |
14 | local Medals = {}
15 |
16 | ---@param args {medal: string|integer?, link: string?}?
17 | ---@return Html?
18 | function Medals.display(args)
19 | args = args or {}
20 | local medalData = Medals.getData(args.medal)
21 |
22 | if not medalData then
23 | return
24 | end
25 |
26 | return mw.html.create('span')
27 | :attr('title', medalData.title)
28 | :wikitext(Image.display(medalData.file, nil, {link = args.link or '', alt = medalData.title}))
29 | end
30 |
31 | ---@param input string|integer?
32 | ---@return {title: string, file: string}?
33 | function Medals.getData(input)
34 | return Data[tonumber(input) or input]
35 | end
36 |
37 | return Medals
38 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Medals/Data.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Medals/Data
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | return {
10 | {
11 | title = 'First Place',
12 | file = 'Gold.png',
13 | },
14 | {
15 | title = 'Second Place',
16 | file = 'Silver.png',
17 | },
18 | {
19 | title = 'Third Place',
20 | file = 'Bronze.png',
21 | },
22 | {
23 | title = 'Fourth Place',
24 | file = 'Copper.png',
25 | },
26 | ['3-4'] = {
27 | title = 'Semifinalist(s)',
28 | file = 'SF.png',
29 | },
30 | qualified = {
31 | title = 'Qualified',
32 | file = 'Medal Icon qualified.png',
33 | },
34 | }
35 |
--------------------------------------------------------------------------------
/lua/wikis/commons/MvpTable/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:MvpTable/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 |
11 | local MvpTable = Lua.import('Module:MvpTable')
12 |
13 | -- overwrite functions in this module on your custom wiki
14 | -- e.g. `MvpTable.processData`
15 |
16 | return MvpTable
17 |
--------------------------------------------------------------------------------
/lua/wikis/commons/OpponentLibraries.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:OpponentLibraries
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 |
11 | local Info = Lua.import('Module:Info')
12 |
13 | local Opponent = Lua.import('Module:' .. (Info.opponentLibrary or 'Opponent'))
14 | local OpponentDisplay = Lua.import('Module:' .. (Info.opponentDisplayLibrary or 'OpponentDisplay'))
15 |
16 | return {
17 | Opponent = Opponent, ---@module 'Opponent'
18 | OpponentDisplay = OpponentDisplay, ---@module 'OpponentDisplay'
19 | }
20 |
--------------------------------------------------------------------------------
/lua/wikis/commons/ParticipantTable/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:ParticipantTable/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 | local BaseParticipantTable = Lua.import('Module:ParticipantTable/Base')
11 |
12 | return BaseParticipantTable
13 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Player/Display/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Player/Display/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 | local PlayerDisplay = Lua.import('Module:Player/Display')
11 | return PlayerDisplay
12 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Player/Ext/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Player/Ext/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 | local PlayerExt = Lua.import('Module:Player/Ext')
11 |
12 | return PlayerExt
13 |
--------------------------------------------------------------------------------
/lua/wikis/commons/PlayerIntroduction/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:PlayerIntroduction/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 | local PlayerIntroduction = Lua.import('Module:PlayerIntroduction')
11 |
12 | return PlayerIntroduction
13 |
--------------------------------------------------------------------------------
/lua/wikis/commons/PortalPlayers/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:PortalPlayers/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Arguments = require('Module:Arguments')
10 | local Lua = require('Module:Lua')
11 |
12 | local PortalPlayers = Lua.import('Module:PortalPlayers')
13 |
14 | local CustomPortalPlayers = {}
15 |
16 | ---Entry Point. Builds the player portal
17 | ---@param frame Frame
18 | ---@return Html
19 | function CustomPortalPlayers.run(frame)
20 | local args = Arguments.getArgs(frame)
21 |
22 | return PortalPlayers(args):create()
23 | end
24 |
25 | return CustomPortalPlayers
26 |
--------------------------------------------------------------------------------
/lua/wikis/commons/PrizePool/Award/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:PrizePool/Award/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Arguments = require('Module:Arguments')
10 | local Lua = require('Module:Lua')
11 |
12 | local AwardPrizePool = Lua.import('Module:PrizePool/Award')
13 |
14 | local CustomAwardPrizePool = {}
15 |
16 | local IS_AWARD = true
17 |
18 | -- Template entry point
19 | ---@param frame Frame
20 | ---@return Html
21 | function CustomAwardPrizePool.run(frame)
22 | local awardsPrizePool = AwardPrizePool(Arguments.getArgs(frame))
23 |
24 | awardsPrizePool:setConfigDefault('prizeSummary', false)
25 | awardsPrizePool:setConfigDefault('syncPlayers', true)
26 |
27 | return awardsPrizePool:create():build(IS_AWARD)
28 | end
29 |
30 | return CustomAwardPrizePool
31 |
--------------------------------------------------------------------------------
/lua/wikis/commons/PrizePool/Legacy/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:PrizePool/Legacy/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 |
11 | local PrizePoolLegacy = Lua.import('Module:PrizePool/Legacy')
12 |
13 | local CustomLegacyPrizePool = {}
14 |
15 | -- Template entry point
16 | function CustomLegacyPrizePool.run()
17 | return PrizePoolLegacy.run()
18 | end
19 |
20 | return CustomLegacyPrizePool
21 |
--------------------------------------------------------------------------------
/lua/wikis/commons/ResultsTable/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:ResultsTable/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local ResultsTable = Lua.import('Module:ResultsTable')
13 | local AwardsTable = Lua.import('Module:ResultsTable/Award')
14 |
15 | local CustomResultsTable = {}
16 |
17 | -- Template entry point for results and achievements tables
18 | ---@param args table
19 | ---@return Html
20 | function CustomResultsTable.results(args)
21 | return ResultsTable(args):create():build()
22 | end
23 |
24 | -- Template entry point for awards tables
25 | ---@param args table
26 | ---@return Html
27 | function CustomResultsTable.awards(args)
28 | return AwardsTable(args):create():build()
29 | end
30 |
31 | return Class.export(CustomResultsTable, {exports = {'results', 'awards'}})
32 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Roles/ContractRoles.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:ContractRoles
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | ---@type PersonRoleData
10 | local contractRoles = {
11 | ['loan'] = {category = 'Players On Loan', display = 'On loan'},
12 | ['standard'] = {category = 'Standard Contracts', display = 'Standard'},
13 | ['standin'] = {category = 'Stand-in Players', display = 'Stand-in'},
14 | ['twoway'] = {category = 'Two-way Contracts', display = 'Two-way'},
15 | }
16 |
17 | return contractRoles
18 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Roles/Roles.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Roles
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 | local Table = require('Module:Table')
11 |
12 | local ContractRoles = Lua.import('Module:ContractRoles', {loadData = true})
13 | local StaffRoles = Lua.import('Module:StaffRoles', {loadData = true})
14 | local InGameRoles = Lua.requireIfExists('Module:InGameRoles', {loadData = true})
15 |
16 | local Roles = {
17 | ContractRoles = ContractRoles,
18 | StaffRoles = StaffRoles,
19 | InGameRoles = InGameRoles,
20 | All = Table.merge(ContractRoles, StaffRoles, InGameRoles)
21 | }
22 |
23 | return Roles
24 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Standings/Tiebreaker/Manual.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Standings/Tiebreaker/Manual
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local TiebreakerInterface = Lua.import('Module:Standings/Tiebreaker/Interface')
13 |
14 | ---@class TiebreakerManual : StandingsTiebreaker
15 | local TiebreakerManual = Class.new(TiebreakerInterface)
16 |
17 | ---@param state TiebreakerOpponent[]
18 | ---@param opponent TiebreakerOpponent
19 | ---@return integer
20 | function TiebreakerManual:valueOf(state, opponent)
21 | return opponent.extradata.tiebreakerpoints
22 | end
23 |
24 | return TiebreakerManual
25 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Standings/Tiebreaker/Match/Count.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Standings/Tiebreaker/Match/Count
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local TiebreakerInterface = Lua.import('Module:Standings/Tiebreaker/Interface')
13 |
14 | ---@class TiebreakerMatchCount : StandingsTiebreaker
15 | local TiebreakerMatchCount = Class.new(TiebreakerInterface)
16 |
17 | ---@param state TiebreakerOpponent[]
18 | ---@param opponent TiebreakerOpponent
19 | ---@return integer
20 | function TiebreakerMatchCount:valueOf(state, opponent)
21 | return opponent.match.w + opponent.match.l + opponent.match.d
22 | end
23 |
24 | return TiebreakerMatchCount
25 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Standings/Tiebreaker/Match/Diff.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Standings/Tiebreaker/Match/Diff
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local TiebreakerInterface = Lua.import('Module:Standings/Tiebreaker/Interface')
13 |
14 | ---@class TiebreakerMatchDiff : StandingsTiebreaker
15 | local TiebreakerMatchDiff = Class.new(TiebreakerInterface)
16 |
17 | ---@param state TiebreakerOpponent[]
18 | ---@param opponent TiebreakerOpponent
19 | ---@return integer
20 | function TiebreakerMatchDiff:valueOf(state, opponent)
21 | return opponent.match.w - opponent.match.l
22 | end
23 |
24 | return TiebreakerMatchDiff
25 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Standings/Tiebreaker/Match/Draws.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Standings/Tiebreaker/Match/Draws
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local TiebreakerInterface = Lua.import('Module:Standings/Tiebreaker/Interface')
13 |
14 | ---@class TiebreakerMatchDraws : StandingsTiebreaker
15 | local TiebreakerMatchDraws = Class.new(TiebreakerInterface)
16 |
17 | ---@param state TiebreakerOpponent[]
18 | ---@param opponent TiebreakerOpponent
19 | ---@return integer
20 | function TiebreakerMatchDraws:valueOf(state, opponent)
21 | return opponent.match.d
22 | end
23 |
24 | return TiebreakerMatchDraws
25 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Standings/Tiebreaker/Match/WinRate.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Standings/Tiebreaker/Match/WinRate
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local TiebreakerInterface = Lua.import('Module:Standings/Tiebreaker/Interface')
13 |
14 | ---@class TiebreakerMatchWinRate : StandingsTiebreaker
15 | local TiebreakerMatchWinRate = Class.new(TiebreakerInterface)
16 |
17 | ---@param state TiebreakerOpponent[]
18 | ---@param opponent TiebreakerOpponent
19 | ---@return integer
20 | function TiebreakerMatchWinRate:valueOf(state, opponent)
21 | local matchCount = opponent.match.w + opponent.match.l + opponent.match.d
22 | return matchCount ~= 0 and (opponent.match.w / matchCount) or 0.5
23 | end
24 |
25 | return TiebreakerMatchWinRate
26 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Standings/Tiebreaker/Match/Wins.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Standings/Tiebreaker/Match/Wins
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local TiebreakerInterface = Lua.import('Module:Standings/Tiebreaker/Interface')
13 |
14 | ---@class TiebreakerMatchWins : StandingsTiebreaker
15 | local TiebreakerMatchWins = Class.new(TiebreakerInterface)
16 |
17 | ---@param state TiebreakerOpponent[]
18 | ---@param opponent TiebreakerOpponent
19 | ---@return integer
20 | function TiebreakerMatchWins:valueOf(state, opponent)
21 | return opponent.match.w
22 | end
23 |
24 | return TiebreakerMatchWins
25 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Standings/Tiebreaker/Points.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Standings/Tiebreaker/Points
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local TiebreakerInterface = Lua.import('Module:Standings/Tiebreaker/Interface')
13 |
14 | ---@class TiebreakerPoints : StandingsTiebreaker
15 | local TiebreakerPoints = Class.new(TiebreakerInterface)
16 |
17 | ---@param state TiebreakerOpponent[]
18 | ---@param opponent TiebreakerOpponent
19 | ---@return integer
20 | function TiebreakerPoints:valueOf(state, opponent)
21 | return opponent.points
22 | end
23 |
24 | return TiebreakerPoints
25 |
--------------------------------------------------------------------------------
/lua/wikis/commons/TextSanitizer.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:TextSanitizer
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 |
8 | local TextSanitizer = {}
9 |
10 | local NAME_SANITIZER = {
11 | ['<.->'] = '', -- All html tags and their attributes
12 | [' '] = ' ', -- Non-breaking space
13 | [''] = '', -- Zero width joiner
14 | ['—'] = '-', -- Non-breaking hyphen
15 | [''] = '', -- Soft hyphen
16 | }
17 |
18 | ---Replaces a set of html entities with ansi characters.
19 | ---Removes all html tags and their attributes.
20 | ---@param name string?
21 | ---@return string?
22 | function TextSanitizer.stripHTML(name)
23 | if not name then
24 | return
25 | end
26 |
27 | local sanitizedName = name
28 | for search, replace in pairs(NAME_SANITIZER) do
29 | sanitizedName = sanitizedName:gsub(search, replace)
30 | end
31 |
32 | return sanitizedName
33 | end
34 |
35 | return TextSanitizer
36 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Tier/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Tier/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 | local TierUtils = Lua.import('Module:Tier/Utils')
11 |
12 | return TierUtils
13 |
--------------------------------------------------------------------------------
/lua/wikis/commons/TournamentsListing/CardList/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:TournamentsListing/CardList/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Arguments = require('Module:Arguments')
10 | local Class = require('Module:Class')
11 | local Lua = require('Module:Lua')
12 |
13 | local TournamentsListing = Lua.import('Module:TournamentsListing/CardList')
14 |
15 | local CustomTournamentsListing = Class.new()
16 |
17 | ---@param frame Frame
18 | ---@return Html?
19 | function CustomTournamentsListing.run(frame)
20 | local tournamentsListing = TournamentsListing(Arguments.getArgs(frame))
21 |
22 | -- you can overwrite certain functions here
23 |
24 | return tournamentsListing:create():build()
25 | end
26 |
27 | return CustomTournamentsListing
28 |
--------------------------------------------------------------------------------
/lua/wikis/commons/TournamentsSummaryTable/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:TournamentsSummaryTable/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 | local TournamentsSummaryTable = Lua.import('Module:TournamentsSummaryTable')
11 |
12 | return TournamentsSummaryTable
13 |
--------------------------------------------------------------------------------
/lua/wikis/commons/TransferRow/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:TransferRow/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Arguments = require('Module:Arguments')
10 | local Class = require('Module:Class')
11 | local Lua = require('Module:Lua')
12 |
13 | local TransferRow = Lua.import('Module:TransferRow')
14 |
15 | ---@class CustomTransferRow: TransferRow
16 | local CustomTransferRow = Class.new(TransferRow)
17 |
18 | ---@param frame Frame
19 | ---@return Html?
20 | function CustomTransferRow.transfer(frame)
21 | return CustomTransferRow(Arguments.getArgs(frame)):read():store():build()
22 | end
23 |
24 | ---@param frame Frame
25 | ---@return Html?
26 | function CustomTransferRow.rumour(frame)
27 | frame.args.isRumour = true
28 | return CustomTransferRow.transfer(frame)
29 | end
30 |
31 | return CustomTransferRow
32 |
--------------------------------------------------------------------------------
/lua/wikis/commons/TreeUtil.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:TreeUtil
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local TreeUtil = {}
10 |
11 | ---@generic V
12 | ---@param getChildren fun(V):V[]
13 | ---@param start V
14 | ---@return fun():V
15 | function TreeUtil.dfs(getChildren, start)
16 | local stack = {start}
17 | return function()
18 | if #stack == 0 then
19 | return nil
20 | end
21 | local node = table.remove(stack)
22 | local children = getChildren(node)
23 | for i = #children, 1, -1 do
24 | table.insert(stack, children[i])
25 | end
26 | return node
27 | end
28 | end
29 |
30 | return TreeUtil
31 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Widget/Builder.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Widget/Builder
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local Widget = Lua.import('Module:Widget')
13 |
14 | ---@class BuilderWidget: Widget
15 | ---@operator call({builder: function}): BuilderWidget
16 | local Builder = Class.new(Widget)
17 |
18 | ---@return Widget[]?
19 | function Builder:render()
20 | return self.props.builder()
21 | end
22 |
23 | return Builder
24 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Widget/CharacterTable/Entry/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Widget/CharacterTable/Entry/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 |
11 | return Lua.import('Module:Widget/CharacterTable/Entry')
12 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Widget/Context.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Widget/Context
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local Widget = Lua.import('Module:Widget')
13 |
14 | ---@class WidgetContext: Widget
15 | local WidgetContext = Class.new(Widget)
16 |
17 | ---@param default any
18 | ---@return any
19 | function WidgetContext:getValue(default)
20 | if type(self.props.value) == 'function' then
21 | return self.props.value(default)
22 | end
23 | return self.props.value
24 | end
25 |
26 | ---@return (Widget|Html|string|number)[]
27 | function WidgetContext:render()
28 | return self.props.children
29 | end
30 |
31 | return WidgetContext
32 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Widget/Contexts/Customizable.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Widget/Contexts/Customizable
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 | local Context = Lua.import('Module:Widget/Context')
12 |
13 | -- Customizable backwards compatibility
14 | return {
15 | LegacyCustomizable = Class.new(Context),
16 | }
17 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Widget/Contexts/Squad.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Widget/Contexts/Squad
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 | local Context = Lua.import('Module:Widget/Context')
12 |
13 | return {
14 | NameSection = Class.new(Context),
15 | RoleTitle = Class.new(Context),
16 | InactiveSection = Class.new(Context),
17 | FormerSection = Class.new(Context),
18 | }
19 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Widget/Customizable.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Widget/Customizable
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local Widget = Lua.import('Module:Widget')
13 | local CustomizableContext = Lua.import('Module:Widget/Contexts/Customizable')
14 |
15 | ---@class CustomizableWidget: Widget
16 | ---@operator call({id: string, children: Widget[]}): CustomizableWidget
17 | ---@field id string
18 | local Customizable = Class.new(
19 | Widget,
20 | function(self, input)
21 | self.id = self:assertExistsAndCopy(input.id)
22 | end
23 | )
24 |
25 | ---@return Widget[]?
26 | function Customizable:render()
27 | local injector = self:useContext(CustomizableContext.LegacyCustomizable)
28 | if injector == nil then
29 | return self.props.children
30 | end
31 | return injector:parse(self.id, self.props.children)
32 | end
33 |
34 | return Customizable
35 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Widget/Factory.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Widget/Factory
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local WidgetFactory = {}
13 |
14 | ---@param args {widget: string, children: ((Widget|Html|string|number)[])|Widget|Html|string|number, [any]:any}
15 | ---@return Widget
16 | function WidgetFactory.fromTemplate(args)
17 | local widgetClass = args.widget
18 | args.widget = nil
19 | args.children = type(args.children) == 'table' and args.children or {args.children}
20 | local WidgetClass = Lua.import('Module:Widget/' .. widgetClass)
21 | return WidgetClass(args)
22 | end
23 |
24 | return Class.export(WidgetFactory, {exports = {'fromTemplate'}})
25 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Widget/Grid.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Widget/Grid
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 |
11 | local GridWidgets = {}
12 |
13 | GridWidgets.Container = Lua.import('Module:Widget/Grid/Container')
14 | GridWidgets.Cell = Lua.import('Module:Widget/Grid/Cell')
15 |
16 | return GridWidgets
17 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Widget/Image/Icon.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Widget/Image/Icon
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local Widget = Lua.import('Module:Widget')
13 |
14 | ---@class IconWidget: Widget
15 | ---@operator call(table): IconWidget
16 | local Icon = Class.new(Widget)
17 |
18 | ---@return (string|Widget)|(string|Widget)[]?
19 | function Icon:render()
20 | error('Widget/Image/Icon is an interface and should not be instantiated directly')
21 | end
22 |
23 | return Icon
24 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Widget/Image/Icon/Fontawesome.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Widget/Image/Icon/Fontawesome
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local Icon = Lua.import('Module:Icon')
13 | local WidgetIcon = Lua.import('Module:Widget/Image/Icon')
14 |
15 | ---@class IconFontawesomeWidget: IconWidget
16 | ---@operator call(IconProps): IconFontawesomeWidget
17 | ---@field props IconProps
18 | local FontawesomeIcon = Class.new(WidgetIcon)
19 |
20 | ---@return string?
21 | function FontawesomeIcon:render()
22 | return Icon.makeIcon(self.props)
23 | end
24 |
25 | return FontawesomeIcon
26 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Widget/Infobox/Center.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Widget/Infobox/Center
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 | local Table = require('Module:Table')
12 |
13 | local Widget = Lua.import('Module:Widget')
14 | local WidgetUtil = Lua.import('Module:Widget/Util')
15 | local HtmlWidgets = Lua.import('Module:Widget/Html/All')
16 |
17 | ---@class CentereWidget: Widget
18 | ---@operator call(table): CentereWidget
19 | ---@field classes string[]
20 | local Center = Class.new(Widget)
21 |
22 | ---@return Widget?
23 | function Center:render()
24 | if Table.isEmpty(self.props.children) then
25 | return nil
26 | end
27 | return HtmlWidgets.Div{children = {HtmlWidgets.Div{
28 | classes = WidgetUtil.collect('infobox-center', self.props.classes),
29 | children = self.props.children
30 | }}}
31 | end
32 |
33 | return Center
34 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Widget/Infobox/Title.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Widget/Infobox/Title
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local Widget = Lua.import('Module:Widget')
13 | local HtmlWidgets = Lua.import('Module:Widget/Html/All')
14 |
15 | ---@class TitleWidget: Widget
16 | ---@operator call(table): TitleWidget
17 | local Title = Class.new(Widget)
18 |
19 | ---@return string?
20 | function Title:render()
21 | return HtmlWidgets.Div{children = {HtmlWidgets.Div{
22 | children = self.props.children,
23 | classes = {'infobox-header', 'wiki-backgroundcolor-light', 'infobox-header-2'}
24 | }}}
25 | end
26 |
27 | return Title
28 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Widget/Infobox/UpcomingTournaments/Header.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Widget/Infobox/UpcomingTournaments/Header
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local Widget = Lua.import('Module:Widget')
13 | local HtmlWidgets = Lua.import('Module:Widget/Html/All')
14 | local Div = HtmlWidgets.Div
15 |
16 | ---@class UpcomingTournamentsHeader: Widget
17 | ---@operator call(table): UpcomingTournamentsHeader
18 | local UpcomingTournamentsHeader = Class.new(Widget)
19 |
20 | ---@return Widget
21 | function UpcomingTournamentsHeader:render()
22 | return Div{
23 | children = Div{
24 | classes = {'infobox-header', 'wiki-backgroundcolor-light'},
25 | children = 'Upcoming Tournaments'
26 | }
27 | }
28 | end
29 |
30 | return UpcomingTournamentsHeader
31 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Widget/Injector.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Widget/Injector
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 |
11 | ---@class WidgetInjector: BaseClass
12 | ---@operator call(table?): WidgetInjector
13 | ---@field caller table?
14 | local Injector = Class.new(
15 | ---@param self self
16 | ---@param caller table?
17 | function(self, caller)
18 | self.caller = caller
19 | end)
20 |
21 | ---Parses the widgets
22 | ---@param id string
23 | ---@param widgets Widget[]
24 | ---@return Widget[]?
25 | function Injector:parse(id, widgets)
26 | return widgets
27 | end
28 |
29 | return Injector
30 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Widget/MainPage/CenterDot.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Widget/MainPage/CenterDot
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local Widget = Lua.import('Module:Widget')
13 | local HtmlWidgets = Lua.import('Module:Widget/Html/All')
14 |
15 | ---@class CenterDot: Widget
16 | ---@operator call(table): CenterDot
17 | local CenterDot = Class.new(Widget)
18 |
19 | function CenterDot:render()
20 | return HtmlWidgets.Span{
21 | css = {
22 | ['font-style'] = 'normal',
23 | padding = '0 5px',
24 | },
25 | children = {'•'},
26 | }
27 | end
28 |
29 | return CenterDot
30 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Widget/MainPage/ThisDay.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Widget/MainPage/ThisDay
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 |
11 | local ThisDayWidgets = {}
12 |
13 | ThisDayWidgets.Title = Lua.import('Module:Widget/MainPage/ThisDay/Title')
14 | ThisDayWidgets.Content = Lua.import('Module:Widget/MainPage/ThisDay/Content')
15 |
16 | return ThisDayWidgets
17 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Widget/Match/Summary/Body.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Widget/Match/Summary/Body
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local Widget = Lua.import('Module:Widget')
13 | local HtmlWidgets = Lua.import('Module:Widget/Html/All')
14 | local Div = HtmlWidgets.Div
15 |
16 | ---@class MatchSummaryBody: Widget
17 | ---@operator call(table): MatchSummaryBody
18 | local MatchSummaryBody = Class.new(Widget)
19 | MatchSummaryBody.defaultProps = {
20 | classes = {},
21 | }
22 |
23 | ---@return Widget
24 | function MatchSummaryBody:render()
25 | return Div{
26 | classes = {'brkts-popup-body', unpack(self.props.classes)},
27 | children = self.props.children,
28 | }
29 | end
30 |
31 | return MatchSummaryBody
32 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Widget/Match/Summary/Break.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Widget/Match/Summary/Break
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local Widget = Lua.import('Module:Widget')
13 | local HtmlWidgets = Lua.import('Module:Widget/Html/All')
14 | local Div = HtmlWidgets.Div
15 |
16 | ---@class MatchSummaryBreak: Widget
17 | ---@operator call(table): MatchSummaryBreak
18 | local MatchSummaryBreak = Class.new(Widget)
19 |
20 | ---@return Widget
21 | function MatchSummaryBreak:render()
22 | return Div{
23 | classes = {'brkts-popup-break'},
24 | }
25 | end
26 |
27 | return MatchSummaryBreak
28 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Widget/Match/Summary/Ffa/Tab.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Widget/Match/Summary/Ffa/Tab
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local Widget = Lua.import('Module:Widget')
13 | local HtmlWidgets = Lua.import('Module:Widget/Html/All')
14 |
15 | ---@class MatchSummaryFfaTab: Widget
16 | ---@operator call(table): MatchSummaryFfaTab
17 | local MatchSummaryFfaTab = Class.new(Widget)
18 |
19 | ---@return Widget
20 | function MatchSummaryFfaTab:render()
21 | return HtmlWidgets.Div{
22 | classes = {'panel-content'},
23 | attributes = {
24 | ['data-js-battle-royale'] = 'panel-content',
25 | id = self.props.matchId .. 'panel' .. self.props.idx,
26 | },
27 | children = self.props.children,
28 | }
29 | end
30 |
31 | return MatchSummaryFfaTab
32 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Widget/Match/Summary/Ffa/Table.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Widget/Match/Summary/Ffa/Table
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local Widget = Lua.import('Module:Widget')
13 | local HtmlWidgets = Lua.import('Module:Widget/Html/All')
14 |
15 | ---@class MatchSummaryFfaTable: Widget
16 | ---@operator call(table): MatchSummaryFfaTable
17 | local MatchSummaryFfaTable = Class.new(Widget)
18 |
19 | ---@return Widget
20 | function MatchSummaryFfaTable:render()
21 | return HtmlWidgets.Div{
22 | classes = {'panel-table'},
23 | attributes = {
24 | ['data-js-battle-royale'] = 'table',
25 | },
26 | children = self.props.children,
27 | }
28 | end
29 |
30 | return MatchSummaryFfaTable
31 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Widget/Match/Summary/Ffa/TableHeader.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Widget/Match/Summary/Ffa/TableHeader
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local Widget = Lua.import('Module:Widget')
13 | local HtmlWidgets = Lua.import('Module:Widget/Html/All')
14 |
15 | ---@class MatchSummaryFfaTableHeader: Widget
16 | ---@operator call(table): MatchSummaryFfaTableHeader
17 | local MatchSummaryFfaTableHeader = Class.new(Widget)
18 |
19 | ---@return Widget
20 | function MatchSummaryFfaTableHeader:render()
21 | return HtmlWidgets.Div{
22 | classes = {'panel-table__row', 'row--header'},
23 | attributes = {
24 | ['data-js-battle-royale'] = 'header-row'
25 | },
26 | children = self.props.children
27 | }
28 | end
29 |
30 | return MatchSummaryFfaTableHeader
31 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Widget/Match/Summary/Ffa/TableRow.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Widget/Match/Summary/Ffa/TableRow
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local Widget = Lua.import('Module:Widget')
13 | local HtmlWidgets = Lua.import('Module:Widget/Html/All')
14 |
15 | ---@class MatchSummaryFfaTableRow: Widget
16 | ---@operator call(table): MatchSummaryFfaTableRow
17 | local MatchSummaryFfaTableRow = Class.new(Widget)
18 |
19 | ---@return Widget
20 | function MatchSummaryFfaTableRow:render()
21 | return HtmlWidgets.Div{
22 | classes = {'panel-table__row'},
23 | attributes = {
24 | ['data-js-battle-royale'] = 'row'
25 | },
26 | children = self.props.children
27 | }
28 | end
29 |
30 | return MatchSummaryFfaTableRow
31 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Widget/Match/Summary/GameCenter.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Widget/Match/Summary/GameCenter
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local Widget = Lua.import('Module:Widget')
13 | local HtmlWidgets = Lua.import('Module:Widget/Html/All')
14 |
15 | ---@class MatchSummaryGameCenter: Widget
16 | ---@operator call(table): MatchSummaryGameCenter
17 | local MatchSummaryGameCenter = Class.new(Widget)
18 |
19 | ---@return Widget?
20 | function MatchSummaryGameCenter:render()
21 | return HtmlWidgets.Div{
22 | classes = {'brkts-popup-spaced'},
23 | css = self.props.css,
24 | children = self.props.children,
25 | }
26 | end
27 |
28 | return MatchSummaryGameCenter
29 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Widget/Match/Summary/Row.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Widget/Match/Summary/Row
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local Widget = Lua.import('Module:Widget')
13 | local HtmlWidgets = Lua.import('Module:Widget/Html/All')
14 | local Div = HtmlWidgets.Div
15 |
16 | ---@class MatchSummaryRow: Widget
17 | ---@operator call(table): MatchSummaryRow
18 | local MatchSummaryRow = Class.new(Widget)
19 | MatchSummaryRow.defaultProps = {
20 | classes = {},
21 | }
22 |
23 | ---@return Widget
24 | function MatchSummaryRow:render()
25 | return Div{
26 | classes = {'brkts-popup-body-element', unpack(self.props.classes)},
27 | css = self.props.css,
28 | children = self.props.children,
29 | }
30 | end
31 |
32 | return MatchSummaryRow
33 |
--------------------------------------------------------------------------------
/lua/wikis/commons/Widget/Util.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:Widget/Util
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Array = require('Module:Array')
10 | local Table = require('Module:Table')
11 |
12 | local Util = {}
13 |
14 | function Util.collect(...)
15 | local elements = Table.pack(...)
16 | local array = {}
17 | for index = 1, elements.n do
18 | local x = elements[index]
19 | if Array.isArray(x) then
20 | for _, y in ipairs(x) do
21 | table.insert(array, y)
22 | end
23 | elseif x ~= nil then
24 | table.insert(array, x)
25 | end
26 | end
27 | return array
28 | end
29 |
30 | return Util
31 |
--------------------------------------------------------------------------------
/lua/wikis/commons/YearsActive.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=commons
4 | -- page=Module:YearsActive
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 |
11 | local CustomActiveYears = Lua.import('Module:YearsActive/Base')
12 |
13 | -- wiki specific settings
14 | CustomActiveYears.defaultNumberOfStoredPlayersPerPlacement = 10
15 | CustomActiveYears.additionalConditions = ''
16 |
17 | return CustomActiveYears
18 |
--------------------------------------------------------------------------------
/lua/wikis/counterstrike/InGameRoles.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=counterstrike
4 | -- page=Module:InGameRoles
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | ---@type PersonRoleData
10 | local inGameRoles = {
11 | ['awper'] = {category = 'AWPers', display = 'AWPer'},
12 | ['igl'] = {category = 'In-game leaders', display = 'In-game leader'},
13 | ['lurker'] = {category = 'Riflers', display = 'Rifler'},
14 | ['support'] = {category = 'Riflers', display = 'Rifler'},
15 | ['entry'] = {category = 'Riflers', display = 'Rifler'},
16 | ['rifler'] = {category = 'Riflers', display = 'Rifler'},
17 | }
18 |
19 | inGameRoles['awp'] = inGameRoles.awper
20 | inGameRoles['lurk'] = inGameRoles.lurker
21 | inGameRoles['entryfragger'] = inGameRoles.entry
22 | inGameRoles['rifle'] = inGameRoles.rifler
23 |
24 | return inGameRoles
25 |
--------------------------------------------------------------------------------
/lua/wikis/counterstrike/Links/CustomData.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=counterstrike
4 | -- page=Module:Links/CustomData
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | return {
10 | prefixes = {
11 | gamersclub = {
12 | 'https://gamersclub.com.br/tournaments/cs/',
13 | team = 'https://gamersclub.com.br/team/',
14 | player = 'https://gamersclub.com.br/player/',
15 | },
16 | faceit = {
17 | 'https://www.faceit.com/en/csgo/tournament/',
18 | team = 'https://www.faceit.com/en/teams/',
19 | player = 'https://www.faceit.com/en/players/',
20 | },
21 | ['faceit-l'] = {
22 | 'https://www.faceit.com/en/-/league/-/a14b8616-45b9-4581-8637-4dfd0b5f6af8/',
23 | },
24 | esl = {
25 | '',
26 | team = 'https://play.eslgaming.com/counterstrike/csgo/team/',
27 | player = 'https://play.eslgaming.com/counterstrike/csgo/player/',
28 | }
29 | },
30 | }
31 |
--------------------------------------------------------------------------------
/lua/wikis/criticalops/Info.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=criticalops
4 | -- page=Module:Info
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | return {
10 | startYear = 2015,
11 | wikiName = 'criticalops',
12 | name = 'Critical Ops',
13 | defaultGame = 'cops',
14 | games = {
15 | cops = {
16 | abbreviation = 'Crit Ops',
17 | name = 'Critical Ops',
18 | link = 'Critical Ops',
19 | logo = {
20 | darkMode = 'Critical Ops allmode.png',
21 | lightMode = 'Critical Ops allmode.png',
22 | },
23 | defaultTeamLogo = {
24 | darkMode = 'Critical Ops allmode.png',
25 | lightMode = 'Critical Ops allmode.png',
26 | },
27 | },
28 | },
29 | config = {
30 | squads = {
31 | hasPosition = false,
32 | hasSpecialTeam = false,
33 | allowManual = true,
34 | },
35 | match2 = {
36 | status = 2,
37 | matchWidth = 180,
38 | gameScoresIfBo1 = true,
39 | },
40 | },
41 | }
42 |
--------------------------------------------------------------------------------
/lua/wikis/deadlock/Info.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=deadlock
4 | -- page=Module:Info
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | return {
10 | startYear = 2024,
11 | wikiName = 'deadlock',
12 | name = 'Deadlock',
13 | defaultGame = 'Deadlock',
14 | games = {
15 | deadlock = {
16 | abbreviation = 'Deadlock',
17 | name = 'Deadlock',
18 | link = 'Deadlock',
19 | logo = {
20 | darkMode = 'Deadlock default allmode.png',
21 | lightMode = 'Deadlock default allmode.png',
22 | },
23 | defaultTeamLogo = {
24 | darkMode = 'Deadlock default allmode.png',
25 | lightMode = 'Deadlock default allmode.png',
26 | },
27 | },
28 | },
29 | config = {
30 | squads = {
31 | hasPosition = false,
32 | hasSpecialTeam = false,
33 | allowManual = false,
34 | },
35 | match2 = {
36 | status = 2,
37 | },
38 | },
39 | defaultRoundPrecision = 0,
40 | }
41 |
--------------------------------------------------------------------------------
/lua/wikis/dota2/Brkts/WikiSpecific.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=dota2
4 | -- page=Module:Brkts/WikiSpecific
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 | local Table = require('Module:Table')
11 |
12 | local BaseWikiSpecific = Lua.import('Module:Brkts/WikiSpecific/Base')
13 |
14 | ---@class Dota2BrktsWikiSpecific: BrktsWikiSpecific
15 | local WikiSpecific = Table.copy(BaseWikiSpecific)
16 |
17 | ---@param match table
18 | ---@return boolean
19 | function WikiSpecific.matchHasDetails(match)
20 | return true
21 | end
22 |
23 | return WikiSpecific
24 |
--------------------------------------------------------------------------------
/lua/wikis/dota2/InGameRoles.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=dota2
4 | -- page=Module:InGameRoles
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | ---@type PersonRoleData
10 | local inGameRoles = {
11 | ['carry'] = {category = 'Carry players', display = 'Carry'},
12 | ['mid'] = {category = 'Solo middle players', display = 'Solo Middle'},
13 | ['offlane'] = {category = 'Offlaners', display = 'Offlaner'},
14 | ['support'] = {category = 'Support players', display = 'Support'},
15 | ['captain'] = {category = 'Captains', display = 'Captain'},
16 | }
17 |
18 | inGameRoles['solo middle'] = inGameRoles.mid
19 | inGameRoles['solomiddle'] = inGameRoles.mid
20 | inGameRoles['offlaner'] = inGameRoles.offlane
21 |
22 | return inGameRoles
23 |
--------------------------------------------------------------------------------
/lua/wikis/dota2/Links/CustomData.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=dota2
4 | -- page=Module:Links/CustomData
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | return {
10 | prefixes = {
11 | faceit = {
12 | '',
13 | team = 'https://www.faceit.com/en/teams/',
14 | player = 'https://www.faceit.com/en/players/',
15 | match = 'https://www.faceit.com/en/dota2/room/',
16 | },
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/lua/wikis/fighters/Brkts/WikiSpecific.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=fighters
4 | -- page=Module:Brkts/WikiSpecific
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Logic = require('Module:Logic')
10 | local Lua = require('Module:Lua')
11 | local Table = require('Module:Table')
12 |
13 | local BaseWikiSpecific = Lua.import('Module:Brkts/WikiSpecific/Base')
14 |
15 | ---@class FightersBrktsWikiSpecific: BrktsWikiSpecific
16 | local WikiSpecific = Table.copy(BaseWikiSpecific)
17 |
18 | ---@param match table
19 | ---@return boolean
20 | function WikiSpecific.matchHasDetails(match)
21 | return match.dateIsExact
22 | or Logic.isNotEmpty(match.vod)
23 | or not Table.isEmpty(match.links)
24 | or Logic.isNotEmpty(match.comment)
25 | or 0 < #match.games
26 | end
27 |
28 | return WikiSpecific
29 |
--------------------------------------------------------------------------------
/lua/wikis/fighters/Earnings.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=fighters
4 | -- page=Module:Earnings
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 |
11 | return Lua.import('Module:Earnings/Legacy')
12 |
--------------------------------------------------------------------------------
/lua/wikis/formula1/Info.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=formula1
4 | -- page=Module:Info
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | return {
10 | startYear = 1950,
11 | wikiName = 'formula1',
12 | name = 'Formula 1',
13 | defaultGame = 'formula1',
14 | games = {
15 | formula1 = {
16 | abbreviation = 'F1',
17 | name = 'Formula 1',
18 | link = 'Formula 1',
19 | logo = {
20 | darkMode = 'F1 2018 allmode.png',
21 | lightMode = 'F1 2018 allmode.png',
22 | },
23 | defaultTeamLogo = {
24 | darkMode = 'Sim Racing default darkmode.png',
25 | lightMode = 'Sim Racing default lightmode.png',
26 | },
27 | },
28 | },
29 | config = {
30 | squads = {
31 | hasPosition = false,
32 | hasSpecialTeam = false,
33 | allowManual = true,
34 | },
35 | match2 = {
36 | status = 0,
37 | },
38 | transfers = {
39 | showTeamName = true,
40 | },
41 | },
42 | }
43 |
--------------------------------------------------------------------------------
/lua/wikis/fortnite/Info.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=fortnite
4 | -- page=Module:Info
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | return {
10 | startYear = 2018,
11 | wikiName = 'fortnite',
12 | name = 'Fortnite',
13 | defaultGame = 'fortnite',
14 | games = {
15 | fortnite = {
16 | abbreviation = 'Fortnite',
17 | name = 'Fortnite',
18 | link = 'Fortnite',
19 | logo = {
20 | darkMode = 'Fortnite default allmode.png',
21 | lightMode = 'Fortnite default allmode.png',
22 | },
23 | defaultTeamLogo = {
24 | darkMode = 'Fortnite default allmode.png',
25 | lightMode = 'Fortnite default allmode.png',
26 | },
27 | },
28 | },
29 | config = {
30 | squads = {
31 | hasPosition = false,
32 | hasSpecialTeam = false,
33 | allowManual = true,
34 | },
35 | match2 = {
36 | status = 1,
37 | },
38 | },
39 | }
40 |
--------------------------------------------------------------------------------
/lua/wikis/fortnite/Infobox/Patch/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=fortnite
4 | -- page=Module:Infobox/Patch/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local Patch = Lua.import('Module:Infobox/Patch')
13 |
14 | --@Class HaloPatchInfobox: PatchInfobox
15 | local CustomPatch = Class.new(Patch)
16 |
17 | ---@param frame Frame
18 | ---@return Html
19 | function CustomPatch.run(frame)
20 | local patch = CustomPatch(frame)
21 |
22 | return patch:createInfobox()
23 | end
24 |
25 | ---@param args table
26 | ---@return {previous: string?, next: string?}
27 | function CustomPatch:getChronologyData(args)
28 | local data = {}
29 | if args.previous then
30 | data.previous = 'Version ' .. args.previous .. '|' .. args.previous
31 | end
32 | if args.next then
33 | data.next = 'Version ' .. args.next .. '|' .. args.next
34 | end
35 | return data
36 | end
37 |
38 | return CustomPatch
39 |
--------------------------------------------------------------------------------
/lua/wikis/fortnite/PrizePool/Award/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=fortnite
4 | -- page=Module:PrizePool/Award/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Arguments = require('Module:Arguments')
10 | local Lua = require('Module:Lua')
11 | local Variables = require('Module:Variables')
12 |
13 | local AwardPrizePool = Lua.import('Module:PrizePool/Award')
14 |
15 | local CustomAwardPrizePool = {}
16 |
17 | local IS_AWARD = true
18 |
19 | -- Template entry point
20 | ---@param frame Frame
21 | ---@return Html
22 | function CustomAwardPrizePool.run(frame)
23 | local args = Arguments.getArgs(frame)
24 | args.localcurrency = args.localcurrency or Variables.varDefault('tournament_currency')
25 |
26 | local awardsPrizePool = AwardPrizePool(args)
27 |
28 | awardsPrizePool:setConfigDefault('prizeSummary', false)
29 | awardsPrizePool:setConfigDefault('syncPlayers', true)
30 |
31 | return awardsPrizePool:create():build(IS_AWARD)
32 | end
33 |
34 | return CustomAwardPrizePool
35 |
--------------------------------------------------------------------------------
/lua/wikis/freefire/InGameRoles.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=freefire
4 | -- page=Module:InGameRoles
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | ---@type PersonRoleData
10 | local inGameRoles = {
11 | ['support'] = {category = 'Support players', display = 'Support'},
12 | ['rusher'] = {category = 'Rusher', display = 'Rusher'},
13 | ['sniper'] = {category = 'Snipers', display = 'Snipers'},
14 | ['granader'] = {category = 'Granader', display = 'Granader'},
15 | ['igl'] = {category = 'In-game leaders', display = 'In-game leaders'},
16 | ['captain'] = {category = 'Captain', display = 'Captain'},
17 | }
18 |
19 | return inGameRoles
20 |
--------------------------------------------------------------------------------
/lua/wikis/freefire/Info.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=freefire
4 | -- page=Module:Info
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | return {
10 | startYear = 2017,
11 | wikiName = 'freefire',
12 | name = 'Free Fire',
13 | defaultGame = 'freefire',
14 | games = {
15 | freefire = {
16 | abbreviation = 'Free Fire',
17 | name = 'Free Fire',
18 | link = 'Free Fire',
19 | logo = {
20 | darkMode = 'Freefire Default Logo.png',
21 | lightMode = 'Freefire Default Logo.png',
22 | },
23 | defaultTeamLogo = {
24 | darkMode = 'Freefire Default Logo.png',
25 | lightMode = 'Freefire Default Logo.png',
26 | },
27 | },
28 | },
29 | config = {
30 | squads = {
31 | hasPosition = false,
32 | hasSpecialTeam = false,
33 | allowManual = true,
34 | },
35 | match2 = {
36 | status = 1,
37 | },
38 | transfers = {
39 | showTeamName = true,
40 | },
41 | },
42 | defaultRoundPrecision = 0,
43 | }
44 |
--------------------------------------------------------------------------------
/lua/wikis/geoguessr/Info.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=geoguessr
4 | -- page=Module:Info
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | return {
10 | startYear = 2013,
11 | wikiName = 'geoguessr',
12 | name = 'GeoGuessr',
13 | defaultGame = 'geoguessr',
14 | games = {
15 | geoguessr = {
16 | abbreviation = 'GeoGuessr',
17 | name = 'GeoGuessr',
18 | link = 'GeoGuessr',
19 | logo = {
20 | darkMode = 'GeoGuessr allmode.png',
21 | lightMode = 'GeoGuessr allmode.png',
22 | },
23 | defaultTeamLogo = {
24 | darkMode = 'GeoGuessr allmode.png',
25 | lightMode = 'GeoGuessr allmode.png',
26 | },
27 | },
28 | },
29 | config = {
30 | squads = {
31 | hasPosition = false,
32 | hasSpecialTeam = false,
33 | allowManual = false,
34 | },
35 | match2 = {
36 | status = 2,
37 | },
38 | transfers = {
39 | showTeamName = true,
40 | },
41 | },
42 | defaultRoundPrecision = 0,
43 | }
44 |
--------------------------------------------------------------------------------
/lua/wikis/goals/Info.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=goals
4 | -- page=Module:Info
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | return {
10 | startYear = 2024,
11 | wikiName = 'goals',
12 | name = 'GOALS',
13 | defaultGame = 'goals',
14 | games = {
15 | goals = {
16 | abbreviation = 'GOALS',
17 | name = 'GOALS',
18 | link = 'GOALS',
19 | logo = {
20 | darkMode = 'GOALS default allmode.png',
21 | lightMode = 'GOALS default allmode.png',
22 | },
23 | defaultTeamLogo = {
24 | darkMode = 'GOALS default allmode.png',
25 | lightMode = 'GOALS default allmode.png',
26 | },
27 | },
28 | },
29 | config = {
30 | squads = {
31 | hasPosition = false,
32 | hasSpecialTeam = false,
33 | allowManual = true,
34 | },
35 | match2 = {
36 | status = 2,
37 | gameScoresIfBo1 = true,
38 | },
39 | },
40 | }
41 |
--------------------------------------------------------------------------------
/lua/wikis/halo/FilterButtons/Config.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=halo
4 | -- page=Module:FilterButtons/Config
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Tier = require('Module:Tier/Utils')
10 | local Config = {}
11 |
12 | ---@type FilterButtonCategory[]
13 | Config.categories = {
14 | {
15 | name = 'liquipediatier',
16 | property = 'liquipediaTier',
17 | load = function(category)
18 | category.items = {}
19 | for _, tier in Tier.iterate('tiers') do
20 | table.insert(category.items, tier.value)
21 | end
22 | end,
23 | defaultItems = {'1', '2', '3', '4'},
24 | transform = function(tier)
25 | return Tier.toName(tier)
26 | end,
27 | },
28 | }
29 |
30 | return Config
31 |
--------------------------------------------------------------------------------
/lua/wikis/halo/Infobox/Team/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=halo
4 | -- page=Module:Infobox/Team/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 | local Region = require('Module:Region')
12 |
13 | local Team = Lua.import('Module:Infobox/Team')
14 |
15 | ---@class HaloInfoboxTeam: InfoboxTeam
16 | local CustomTeam = Class.new(Team)
17 |
18 | ---@param frame Frame
19 | ---@return Html
20 | function CustomTeam.run(frame)
21 | local team = CustomTeam(frame)
22 |
23 | return team:createInfobox()
24 | end
25 |
26 | ---@param region string?
27 | ---@return {display: string?, region: string?}
28 | function CustomTeam:createRegion(region)
29 | return Region.run({region = region, country = self:getStandardLocationValue(self.args.location)})
30 | end
31 |
32 | return CustomTeam
33 |
--------------------------------------------------------------------------------
/lua/wikis/halo/Links/CustomData.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=halo
4 | -- page=Module:Links/CustomData
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | return {
10 | prefixes = {
11 | faceit = {
12 | '',
13 | team = 'https://www.faceit.com/en/teams/',
14 | player = 'https://www.faceit.com/en/players/',
15 | match = 'https://www.faceit.com/en/halo_infinite/room/',
16 | },
17 | },
18 | matchIcons = {
19 | headtohead = {
20 | icon = 'File:Match_Info_Halo_H2H.png',
21 | iconDark = 'File:Match_Info_Halo_H2H_darkmode.png',
22 | text = 'Head-to-head statistics'
23 | },
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/lua/wikis/hearthstone/Info.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=hearthstone
4 | -- page=Module:Info
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | return {
10 | startYear = 2013,
11 | wikiName = 'hearthstone',
12 | name = 'Hearthstone',
13 | defaultGame = 'hs',
14 | games = {
15 | hs = {
16 | abbreviation = 'hs',
17 | name = 'Hearthstone',
18 | link = 'Hearthstone',
19 | logo = {
20 | darkMode = 'Hearthstone default allmode.png',
21 | lightMode = 'Hearthstone default allmode.png',
22 | },
23 | defaultTeamLogo = {
24 | darkMode = 'Hearthstone default allmode.png',
25 | lightMode = 'Hearthstone default allmode.png',
26 | },
27 | },
28 | },
29 | config = {
30 | squads = {
31 | hasPosition = false,
32 | hasSpecialTeam = false,
33 | allowManual = true,
34 | },
35 | match2 = {
36 | status = 2,
37 | },
38 | },
39 | }
40 |
--------------------------------------------------------------------------------
/lua/wikis/heroes/Infobox/Team/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=heroes
4 | -- page=Module:Infobox/Team/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 | local RoleOf = require('Module:RoleOf')
12 |
13 | local Team = Lua.import('Module:Infobox/Team')
14 |
15 | ---@class HeroesInfoboxTeam: InfoboxTeam
16 | local CustomTeam = Class.new(Team)
17 |
18 | function CustomTeam.run(frame)
19 | local team = CustomTeam(frame)
20 |
21 | -- Automatic org people
22 | team.args.coach = RoleOf.get{role = 'Coach'}
23 | team.args.manager = RoleOf.get{role = 'Manager'}
24 | team.args.captain = RoleOf.get{role = 'Captain'}
25 |
26 | return team:createInfobox()
27 | end
28 |
29 | return CustomTeam
30 |
--------------------------------------------------------------------------------
/lua/wikis/heroes/MatchGroup/Legacy/Default.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=heroes
4 | -- page=Module:MatchGroup/Legacy/Default
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local MatchGroupLegacy = Lua.import('Module:MatchGroup/Legacy')
13 |
14 | ---@class HeroesMatchGroupLegacyDefault: MatchGroupLegacy
15 | local MatchGroupLegacyDefault = Class.new(MatchGroupLegacy)
16 |
17 | ---@return table
18 | function MatchGroupLegacyDefault:getMap()
19 | return {
20 | ['$notEmpty$'] = 'map$1$',
21 | ['$parse$'] = 'map$1$'
22 | }
23 | end
24 |
25 | ---@param frame Frame
26 | ---@return string
27 | function MatchGroupLegacyDefault.run(frame)
28 | return MatchGroupLegacyDefault(frame):build()
29 | end
30 |
31 | return MatchGroupLegacyDefault
32 |
33 |
--------------------------------------------------------------------------------
/lua/wikis/leagueoflegends/Brkts/WikiSpecific.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=leagueoflegends
4 | -- page=Module:Brkts/WikiSpecific
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 | local Table = require('Module:Table')
11 |
12 | local BaseWikiSpecific = Lua.import('Module:Brkts/WikiSpecific/Base')
13 |
14 | ---@class LeagueoflegendsBrktsWikiSpecific: BrktsWikiSpecific
15 | local WikiSpecific = Table.copy(BaseWikiSpecific)
16 |
17 | ---@param match table
18 | ---@return boolean
19 | function WikiSpecific.matchHasDetails(match)
20 | return true
21 | end
22 |
23 | return WikiSpecific
24 |
--------------------------------------------------------------------------------
/lua/wikis/leagueoflegends/InGameRoles.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=leagueoflegends
4 | -- page=Module:InGameRoles
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | ---@type PersonRoleData
10 | local inGameRoles = {
11 | ['top'] = {category = 'Top Lane players', display = 'Top'},
12 | ['support'] = {category = 'Support players', display = 'Support'},
13 | ['jungle'] = {category = 'Jungle players', display = 'Jungle'},
14 | ['mid'] = {category = 'Mid Lane players', display = 'Mid'},
15 | ['bottom'] = {category = 'Bot Lane players', display = 'Bot'},
16 | }
17 |
18 | inGameRoles['jgl'] = inGameRoles.jungle
19 | inGameRoles['solomiddle'] = inGameRoles.mid
20 | inGameRoles['carry'] = inGameRoles.bottom
21 | inGameRoles['adc'] = inGameRoles.bottom
22 | inGameRoles['bot'] = inGameRoles.bottom
23 | inGameRoles['ad carry'] = inGameRoles.bottom
24 | inGameRoles['sup'] = inGameRoles.support
25 |
26 | return inGameRoles
27 |
--------------------------------------------------------------------------------
/lua/wikis/marvelrivals/InGameRoles.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=marvelrivals
4 | -- page=Module:InGameRoles
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | ---@type PersonRoleData
10 | local inGameRoles = {
11 | ['duelist'] = {category = 'Duelist Players', display = 'Duelist'},
12 | ['flex'] = {category = 'Flex Players', display = 'Flex'},
13 | ['strategist'] = {category = 'Strategist Players', display = 'Strategist'},
14 | ['vanguard'] = {category = 'Vanguard Players', display = 'Vanguard'},
15 | }
16 |
17 | return inGameRoles
18 |
--------------------------------------------------------------------------------
/lua/wikis/marvelrivals/Info.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=marvelrivals
4 | -- page=Module:Info
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | return {
10 | startYear = 2024,
11 | wikiName = 'marvelrivals',
12 | name = 'Marvel Rivals',
13 | defaultGame = 'marvelrivals',
14 | games = {
15 | marvelrivals = {
16 | abbreviation = 'Marvel Rivals',
17 | name = 'Marvel Rivals',
18 | link = 'Marvel Rivals',
19 | logo = {
20 | darkMode = 'Marvel Rivals darkmode.png',
21 | lightMode = 'Marvel Rivals lightmode.png',
22 | },
23 | defaultTeamLogo = {
24 | darkMode = 'Marvel Rivals darkmode.png',
25 | lightMode = 'Marvel Rivals lightmode.png',
26 | },
27 | },
28 | },
29 | config = {
30 | squads = {
31 | hasPosition = true,
32 | hasSpecialTeam = false,
33 | allowManual = false,
34 | },
35 | match2 = {
36 | status = 2,
37 | matchWidth = 180,
38 | },
39 | },
40 | defaultRoundPrecision = 0,
41 | }
42 |
--------------------------------------------------------------------------------
/lua/wikis/mobilelegends/InGameRoles.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=mobilelegends
4 | -- page=Module:InGameRoles
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | ---@type PersonRoleData
10 | local inGameRoles = {
11 | ['igl'] = {category = 'In-game leaders', display = 'In-game Leader'},
12 | ['exp'] = {category = 'EXP Laner', display = 'EXP Laner'},
13 | ['gold'] = {category = 'Gold Laner', display = 'Gold Laner'},
14 | ['mid'] = {category = 'Mid Laner', display = 'Mid Laner'},
15 | ['jungler'] = {category = 'Jungler', display = 'Jungler'},
16 | ['roamer'] = {category = 'Roamer', display = 'Roamer'},
17 | }
18 |
19 | inGameRoles['jgl'] = inGameRoles.jungler
20 | inGameRoles['jungle'] = inGameRoles.jungler
21 | inGameRoles['roam'] = inGameRoles.roamer
22 | inGameRoles['support'] = inGameRoles.roamer
23 | inGameRoles['top'] = inGameRoles.exp
24 | inGameRoles['mid laner'] = inGameRoles.mid
25 | inGameRoles['bottom'] = inGameRoles.gold
26 |
27 | return inGameRoles
28 |
--------------------------------------------------------------------------------
/lua/wikis/mobilelegends/Infobox/Patch/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=mobilelegends
4 | -- page=Module:Infobox/Patch/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local Patch = Lua.import('Module:Infobox/Patch')
13 |
14 | ---@class MobileLegendsPatchInfobox: PatchInfobox
15 | local CustomPatch = Class.new(Patch)
16 |
17 | ---@param frame Frame
18 | ---@return Html
19 | function CustomPatch.run(frame)
20 | local patch = CustomPatch(frame)
21 |
22 | return patch:createInfobox()
23 | end
24 |
25 | ---@param args table
26 | ---@return {previous: string?, next: string?}
27 | function CustomPatch:getChronologyData(args)
28 | local data = {}
29 | if args.previous then
30 | data.previous = 'Patch ' .. args.previous .. '|' .. args.previous
31 | end
32 | if args.next then
33 | data.next = 'Patch ' .. args.next .. '|' .. args.next
34 | end
35 | return data
36 | end
37 |
38 | return CustomPatch
39 |
--------------------------------------------------------------------------------
/lua/wikis/naraka/Info.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=naraka
4 | -- page=Module:Info
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | return {
10 | startYear = 2021,
11 | wikiName = 'naraka',
12 | name = 'Naraka: Bladepoint',
13 | defaultGame = 'naraka',
14 | games = {
15 | naraka = {
16 | abbreviation = 'Naraka',
17 | name = 'Naraka: Bladepoint',
18 | link = 'Naraka: Bladepoint',
19 | logo = {
20 | darkMode = 'Logo filler event.png',
21 | lightMode = 'Logo filler event.png',
22 | },
23 | defaultTeamLogo = {
24 | darkMode = 'NARAKA darkmode.png',
25 | lightMode = 'NARAKA lightmode.png',
26 | },
27 | },
28 | },
29 | config = {
30 | squads = {
31 | hasPosition = false,
32 | hasSpecialTeam = false,
33 | allowManual = true,
34 | },
35 | match2 = {
36 | status = 1,
37 | },
38 | },
39 | }
40 |
--------------------------------------------------------------------------------
/lua/wikis/omegastrikers/InGameRoles.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=omegastrikers
4 | -- page=Module:InGameRoles
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | ---@type PersonRoleData
10 | local inGameRoles = {
11 | ['forward'] = {category = 'Forwards', display = 'Forward'},
12 | ['goalie'] = {category = 'Goalies', display = 'Goalie'},
13 | ['goalkeeper'] = {category = 'Goalkeepers', display = 'Goalkeeper'},
14 | ['flex'] = {category = 'Flex', display = 'Flex'},
15 | }
16 |
17 | return inGameRoles
18 |
--------------------------------------------------------------------------------
/lua/wikis/osu/InGameRoles.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=osu
4 | -- page=Module:InGameRoles
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | ---@type PersonRoleData
10 | local inGameRoles = {
11 | ['igl'] = {category = 'In-game leaders', display = 'In-game leader'},
12 | ['player'] = {category = 'Players', display = 'Player'},
13 | }
14 |
15 | return inGameRoles
16 |
--------------------------------------------------------------------------------
/lua/wikis/overwatch/HighlightConditions.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=overwatch
4 | -- page=Module:HighlightConditions
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local String = require('Module:StringUtils')
10 |
11 | local HighlightConditions = {}
12 |
13 | --- Check arguments or queryData if the tournament should be highlighted
14 | ---@param data table
15 | ---@param options table?
16 | ---@return boolean
17 | function HighlightConditions.tournament(data, options)
18 | return String.isNotEmpty(data.publishertier) and tonumber(data.liquipediatier) == 1
19 | end
20 |
21 | return HighlightConditions
22 |
--------------------------------------------------------------------------------
/lua/wikis/overwatch/InGameRoles.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=overwatch
4 | -- page=Module:InGameRoles
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | ---@type PersonRoleData
10 | local inGameRoles = {
11 | ['dps'] = {category = 'DPS Players', display = 'DPS'},
12 | ['flex'] = {category = 'Flex Players', display = 'Flex'},
13 | ['support'] = {category = 'Support Players', display = 'Support'},
14 | ['igl'] = {category = 'In-game leaders', display = 'In-game leader'},
15 | ['tank'] = {category = 'Tank Players', display = 'Tank'},
16 | }
17 |
18 | return inGameRoles
19 |
--------------------------------------------------------------------------------
/lua/wikis/overwatch/Links/CustomData.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=overwatch
4 | -- page=Module:Links/CustomData
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | return {
10 | prefixes = {
11 | ['faceit-l'] = {
12 | 'https://www.faceit.com/en/-/league/-/88c7f7ec-4cb8-44d3-a5db-6e808639c232/',
13 | },
14 | faceit = {
15 | '',
16 | team = 'https://www.faceit.com/en/teams/',
17 | player = 'https://www.faceit.com/en/players/',
18 | match = 'https://www.faceit.com/en/ow2/room/',
19 | },
20 | pf = {match = 'http://www.plusforward.net/overwatch/post/'},
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/lua/wikis/overwatch/MatchGroup/Legacy/Default.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=overwatch
4 | -- page=Module:MatchGroup/Legacy/Default
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local MatchGroupLegacy = Lua.import('Module:MatchGroup/Legacy')
13 |
14 | ---@class OverwatchMatchGroupLegacyDefault: MatchGroupLegacy
15 | local MatchGroupLegacyDefault = Class.new(MatchGroupLegacy)
16 |
17 | ---@return table
18 | function MatchGroupLegacyDefault:getMap()
19 | return {
20 | ['$notEmpty$'] = 'map$1$',
21 | map = 'map$1$',
22 | score1 = 'map$1$score1',
23 | score2 = 'map$1$score2',
24 | mode = 'map$1$mode',
25 | winner = 'map$1$winner',
26 | vod = 'map$1$vod',
27 | }
28 | end
29 |
30 | ---@param frame Frame
31 | ---@return string
32 | function MatchGroupLegacyDefault.run(frame)
33 | return MatchGroupLegacyDefault(frame):build()
34 | end
35 |
36 | return MatchGroupLegacyDefault
37 |
--------------------------------------------------------------------------------
/lua/wikis/paladins/Info.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=paladins
4 | -- page=Module:Info
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | return {
10 | startYear = 2016,
11 | wikiName = 'paladins',
12 | name = 'Paladins',
13 | defaultGame = 'paladins',
14 | games = {
15 | paladins = {
16 | abbreviation = 'Paladins',
17 | name = 'Paladins',
18 | link = 'Paladins',
19 | logo = {
20 | darkMode = 'Paladins allmode.png',
21 | lightMode = 'Paladins allmode.png',
22 | },
23 | defaultTeamLogo = {
24 | darkMode = 'Paladins allmode.png',
25 | lightMode = 'Paladins allmode.png',
26 | },
27 | },
28 | },
29 | config = {
30 | squads = {
31 | hasPosition = false,
32 | hasSpecialTeam = false,
33 | allowManual = true,
34 | },
35 | match2 = {
36 | status = 2,
37 | },
38 | },
39 | }
40 |
--------------------------------------------------------------------------------
/lua/wikis/pubg/HiddenDataBox/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=pubg
4 | -- page=Module:HiddenDataBox/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 | local Variables = require('Module:Variables')
12 |
13 | local BasicHiddenDataBox = Lua.import('Module:HiddenDataBox')
14 |
15 | local CustomHiddenDataBox = {}
16 |
17 | ---@param args table
18 | ---@return Html
19 | function CustomHiddenDataBox.run(args)
20 | BasicHiddenDataBox.addCustomVariables = CustomHiddenDataBox.addCustomVariables
21 | return BasicHiddenDataBox.run(args)
22 | end
23 |
24 | ---@param args table
25 | ---@param queryResult table
26 | function CustomHiddenDataBox.addCustomVariables(args, queryResult)
27 | Variables.varDefine('tournament_edate', Variables.varDefault('tournament_enddate'))
28 | end
29 |
30 | return Class.export(CustomHiddenDataBox, {exports = {'run'}})
31 |
--------------------------------------------------------------------------------
/lua/wikis/pubg/InGameRoles.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=pubg
4 | -- page=Module:InGameRoles
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | ---@type PersonRoleData
10 | local inGameRoles = {
11 | ['sniper'] = {category = 'Snipers', display = 'Sniper'},
12 | ['attacker'] = {category = 'Attackers', display = 'ATKs'},
13 | ['igl'] = {category = 'In-game leaders', display = 'In-game leader'},
14 | ['fragger'] = {category = 'Fraggers', display = 'Fragger'},
15 | ['scout'] = {category = 'Scouts', display = 'Scout'},
16 | ['support'] = {category = 'Supports', display = 'Support'},
17 | ['entry fragger'] = {category = 'Entry fraggers', display = 'Entry Fragger'},
18 | ['rifler'] = {category = 'Riflers', display = 'Rifler'},
19 | }
20 |
21 | return inGameRoles
22 |
--------------------------------------------------------------------------------
/lua/wikis/pubg/Info.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=pubg
4 | -- page=Module:Info
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | return {
10 | startYear = 2017,
11 | wikiName = 'pubg',
12 | name = 'PUBG',
13 | defaultGame = 'pubg',
14 | games = {
15 | pubg = {
16 | abbreviation = 'PUBG',
17 | name = 'PUBG BATTLEGROUNDS',
18 | link = 'PUBG BATTLEGROUNDS',
19 | logo = {
20 | darkMode = 'PUBG BATTLEGROUNDS darkmode.png',
21 | lightMode = 'PUBG BATTLEGROUNDS lightmode.png',
22 | },
23 | defaultTeamLogo = {
24 | darkMode = 'PUBG 2021 default allmode.png',
25 | lightMode = 'PUBG 2021 default allmode.png',
26 | },
27 | },
28 | },
29 | config = {
30 | squads = {
31 | hasPosition = false,
32 | hasSpecialTeam = false,
33 | allowManual = true,
34 | },
35 | match2 = {
36 | status = 1,
37 | },
38 | },
39 | defaultRoundPrecision = 0,
40 | }
41 |
--------------------------------------------------------------------------------
/lua/wikis/pubg/PrizePool/Award/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=pubg
4 | -- page=Module:PrizePool/Award/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Arguments = require('Module:Arguments')
10 | local Lua = require('Module:Lua')
11 | local Variables = require('Module:Variables')
12 |
13 | local AwardPrizePool = Lua.import('Module:PrizePool/Award')
14 |
15 | local CustomAwardPrizePool = {}
16 |
17 | local IS_AWARD = true
18 |
19 | -- Template entry point
20 | ---@param frame Frame
21 | ---@return Html
22 | function CustomAwardPrizePool.run(frame)
23 | local args = Arguments.getArgs(frame)
24 | args.localcurrency = args.localcurrency or Variables.varDefault('tournament_currency')
25 |
26 | local awardsPrizePool = AwardPrizePool(args)
27 |
28 | awardsPrizePool:setConfigDefault('prizeSummary', false)
29 | awardsPrizePool:setConfigDefault('syncPlayers', true)
30 |
31 | return awardsPrizePool:create():build(IS_AWARD)
32 | end
33 |
34 | return CustomAwardPrizePool
35 |
--------------------------------------------------------------------------------
/lua/wikis/pubgmobile/HiddenDataBox/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=pubgmobile
4 | -- page=Module:HiddenDataBox/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 | local Variables = require('Module:Variables')
12 |
13 | local BasicHiddenDataBox = Lua.import('Module:HiddenDataBox')
14 |
15 | local CustomHiddenDataBox = {}
16 |
17 | ---@param args table
18 | ---@return Html
19 | function CustomHiddenDataBox.run(args)
20 | BasicHiddenDataBox.addCustomVariables = CustomHiddenDataBox.addCustomVariables
21 | return BasicHiddenDataBox.run(args)
22 | end
23 |
24 | ---@param args table
25 | ---@param queryResult table
26 | function CustomHiddenDataBox.addCustomVariables(args, queryResult)
27 | Variables.varDefine('tournament_edate', Variables.varDefault('tournament_enddate'))
28 | end
29 |
30 | return Class.export(CustomHiddenDataBox, {exports = {'run'}})
31 |
--------------------------------------------------------------------------------
/lua/wikis/rainbowsix/InGameRoles.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=rainbowsix
4 | -- page=Module:InGameRoles
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | ---@type PersonRoleData
10 | local inGameRoles = {
11 | ['entry'] = {category = 'Entry fraggers', display = 'Entry fragger'},
12 | ['support'] = {category = 'Support players', display = 'Support'},
13 | ['flex'] = {category = 'Flex players', display = 'Flex'},
14 | ['igl'] = {category = 'In-game leaders', display = 'In-game leader'},
15 | }
16 |
17 | inGameRoles['entryfragger'] = inGameRoles['entry']
18 |
19 | return inGameRoles
20 |
--------------------------------------------------------------------------------
/lua/wikis/rainbowsix/Links/CustomData.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=rainbowsix
4 | -- page=Module:Links/CustomData
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | return {
10 | prefixes = {
11 | faceit = {
12 | 'https://www.faceit.com/en/championship/',
13 | team = 'https://www.faceit.com/en/teams/',
14 | player = 'https://www.faceit.com/en/players/',
15 | match = 'https://www.faceit.com/en/rainbow_6/room/',
16 | }
17 | },
18 | }
19 |
--------------------------------------------------------------------------------
/lua/wikis/rocketleague/Brkts/WikiSpecific.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=rocketleague
4 | -- page=Module:Brkts/WikiSpecific
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 | local Table = require('Module:Table')
11 |
12 | local BaseWikiSpecific = Lua.import('Module:Brkts/WikiSpecific/Base')
13 |
14 | ---@class RocketleagueBrktsWikiSpecific: BrktsWikiSpecific
15 | local WikiSpecific = Table.copy(BaseWikiSpecific)
16 |
17 | ---@param matchGroupType string
18 | ---@param maxOpponentCount integer
19 | ---@return function
20 | function WikiSpecific.getMatchGroupContainer(matchGroupType, maxOpponentCount)
21 | return matchGroupType == 'matchlist'
22 | and Lua.import('Module:MatchGroup/Display/Matchlist').MatchlistContainer
23 | or Lua.import('Module:MatchGroup/Display/Bracket/Custom').BracketContainer
24 | end
25 |
26 | return WikiSpecific
27 |
--------------------------------------------------------------------------------
/lua/wikis/rocketleague/Links/CustomData.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=rocketleague
4 | -- page=Module:Links/CustomData
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | return {
10 | prefixes = {
11 | steam = {'https://steamcommunity.com/'},
12 | },
13 | }
14 |
--------------------------------------------------------------------------------
/lua/wikis/runeterra/Info.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=runeterra
4 | -- page=Module:Info
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | return {
10 | startYear = 2020,
11 | wikiName = 'runeterra',
12 | name = 'Legends of Runeterra',
13 | defaultGame = 'runeterra',
14 | games = {
15 | runeterra = {
16 | abbreviation = 'Runeterra',
17 | name = 'Legends of Runeterra',
18 | link = 'Legends of Runeterra',
19 | logo = {
20 | darkMode = 'Legends of Runeterra logo.png',
21 | lightMode = 'Legends of Runeterra logo.png',
22 | },
23 | defaultTeamLogo = {
24 | darkMode = 'Legends of Runeterra logo.png',
25 | lightMode = 'Legends of Runeterra logo.png',
26 | },
27 | },
28 | },
29 | config = {
30 | squads = {
31 | hasPosition = false,
32 | hasSpecialTeam = false,
33 | allowManual = true,
34 | },
35 | match2 = {
36 | status = 2,
37 | },
38 | },
39 | }
40 |
--------------------------------------------------------------------------------
/lua/wikis/runeterra/MatchGroup/Legacy/Default.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=runeterra
4 | -- page=Module:MatchGroup/Legacy/Default
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local MatchGroupLegacy = Lua.import('Module:MatchGroup/Legacy')
13 |
14 | ---@class RuneterraMatchGroupLegacyDefault: MatchGroupLegacy
15 | local MatchGroupLegacyDefault = Class.new(MatchGroupLegacy)
16 |
17 | ---@param frame Frame
18 | ---@return string
19 | function MatchGroupLegacyDefault.run(frame)
20 | return MatchGroupLegacyDefault(frame):build()
21 | end
22 |
23 | return MatchGroupLegacyDefault
24 |
--------------------------------------------------------------------------------
/lua/wikis/runeterra/MatchSummary.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=runeterra
4 | -- page=Module:MatchSummary
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 |
11 | local MatchSummary = Lua.import('Module:MatchSummary/Base')
12 |
13 | local CustomMatchSummary = {}
14 |
15 | ---@param args table
16 | ---@return Html
17 | function CustomMatchSummary.getByMatchId(args)
18 | return MatchSummary.defaultGetByMatchId(CustomMatchSummary, args, {teamStyle = 'short'})
19 | end
20 |
21 | ---@param date string
22 | ---@param game MatchGroupUtilGame
23 | ---@param gameIndex integer
24 | ---@return Widget?
25 | function CustomMatchSummary.createGame(date, game, gameIndex)
26 | return nil
27 | end
28 |
29 | return CustomMatchSummary
30 |
--------------------------------------------------------------------------------
/lua/wikis/sideswipe/Info.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=sideswipe
4 | -- page=Module:Info
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | return {
10 | startYear = 2021,
11 | wikiName = 'sideswipe',
12 | name = 'Rocket League Sideswipe',
13 | defaultGame = 'sideswipe',
14 | games = {
15 | sideswipe = {
16 | abbreviation = 'SW',
17 | name = 'Rocket League Sideswipe',
18 | link = 'Rocket League Sideswipe',
19 | logo = {
20 | darkMode = 'Sideswipe allmode.png',
21 | lightMode = 'Sideswipe allmode.png',
22 | },
23 | defaultTeamLogo = {
24 | darkMode = 'Sideswipe allmode.png',
25 | lightMode = 'Sideswipe allmode.png',
26 | },
27 | },
28 | },
29 | config = {
30 | squads = {
31 | hasPosition = false,
32 | hasSpecialTeam = false,
33 | allowManual = true,
34 | },
35 | match2 = {
36 | status = 2,
37 | },
38 | },
39 | }
40 |
--------------------------------------------------------------------------------
/lua/wikis/smash/Earnings.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=smash
4 | -- page=Module:Earnings
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 |
11 | return Lua.import('Module:Earnings/Legacy')
12 |
--------------------------------------------------------------------------------
/lua/wikis/smite/InGameRoles.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=smite
4 | -- page=Module:InGameRoles
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | ---@type PersonRoleData
10 | local inGameRoles = {
11 | ['solo'] = {category = 'Solo players', display = 'Solo'},
12 | ['jungler'] = {category = 'Jungle players', display = 'Jungler'},
13 | ['support'] = {category = 'Support players', display = 'Support'},
14 | ['mid'] = {category = 'Mid Lane players', display = 'Mid'},
15 | ['carry'] = {category = 'Carry players', display = 'Carry'},
16 | }
17 |
18 | return inGameRoles
19 |
--------------------------------------------------------------------------------
/lua/wikis/splatoon/InGameRoles.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=splatoon
4 | -- page=Module:InGameRoles
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | ---@type PersonRoleData
10 | local inGameRoles = {
11 | ['igl'] = {category = 'In-game leaders', display = 'In-game Leader'},
12 | ['frontline'] = {category = 'Frontline', display = 'Frontline'},
13 | ['backline'] = {category = 'Backline', display = 'Backline'},
14 | ['support'] = {category = 'Support', display = 'Support'},
15 | ['flex'] = {category = 'Flex', display = 'Flex'},
16 | }
17 |
18 | inGameRoles['front'] = inGameRoles['frontline']
19 | inGameRoles['sup'] = inGameRoles['support']
20 | inGameRoles['back'] = inGameRoles['backline']
21 |
22 | return inGameRoles
23 |
--------------------------------------------------------------------------------
/lua/wikis/splitgate/Info.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=splitgate
4 | -- page=Module:Info
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | return {
10 | startYear = 2019,
11 | wikiName = 'splitgate',
12 | name = 'Splitgate',
13 | defaultGame = 'splitgate',
14 | games = {
15 | splitgate = {
16 | abbreviation = 'SG',
17 | name = 'Splitgate',
18 | link = 'Splitgate',
19 | logo = {
20 | darkMode = 'Splitgate 2021 darkmode.png',
21 | lightMode = 'Splitgate 2021 lightmode.png',
22 | },
23 | defaultTeamLogo = {
24 | darkMode = 'Splitgate 2021 darkmode.png',
25 | lightMode = 'Splitgate 2021 lightmode.png',
26 | },
27 | },
28 | },
29 | config = {
30 | squads = {
31 | hasPosition = false,
32 | hasSpecialTeam = false,
33 | allowManual = true,
34 | },
35 | match2 = {
36 | status = 2,
37 | },
38 | },
39 | defaultRoundPrecision = 0,
40 | }
41 |
--------------------------------------------------------------------------------
/lua/wikis/squadrons/Info.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=squadrons
4 | -- page=Module:Info
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | return {
10 | startYear = 2020,
11 | wikiName = 'squadrons',
12 | name = 'Star Wars: Squadrons',
13 | defaultGame = 'squadrons',
14 | games = {
15 | squadrons = {
16 | abbreviation = 'Squadrons',
17 | name = 'Star Wars: Squadrons',
18 | link = 'Star Wars: Squadrons',
19 | logo = {
20 | darkMode = 'Star Wars Squadrons allmode.png',
21 | lightMode = 'Star Wars Squadrons allmode.png',
22 | },
23 | defaultTeamLogo = {
24 | darkMode = 'Star Wars Squadrons allmode.png',
25 | lightMode = 'Star Wars Squadrons allmode.png',
26 | },
27 | },
28 | },
29 | config = {
30 | squads = {
31 | hasPosition = false,
32 | hasSpecialTeam = false,
33 | allowManual = true,
34 | },
35 | match2 = {
36 | status = 2,
37 | },
38 | },
39 | }
40 |
--------------------------------------------------------------------------------
/lua/wikis/squadrons/MatchGroup/Legacy/Default.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=squadrons
4 | -- page=Module:MatchGroup/Legacy/Default
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local MatchGroupLegacy = Lua.import('Module:MatchGroup/Legacy')
13 |
14 | ---@class SquadronsMatchGroupLegacyDefault: MatchGroupLegacy
15 | local MatchGroupLegacyDefault = Class.new(MatchGroupLegacy)
16 |
17 | ---@param frame Frame
18 | ---@return string
19 | function MatchGroupLegacyDefault.run(frame)
20 | return MatchGroupLegacyDefault(frame):build()
21 | end
22 |
23 | return MatchGroupLegacyDefault
24 |
--------------------------------------------------------------------------------
/lua/wikis/squadrons/MatchSummary.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=squadrons
4 | -- page=Module:MatchSummary
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 |
11 | local MatchSummary = Lua.import('Module:MatchSummary/Base')
12 |
13 | local CustomMatchSummary = {}
14 |
15 | ---@param args table
16 | ---@return Html
17 | function CustomMatchSummary.getByMatchId(args)
18 | return MatchSummary.defaultGetByMatchId(CustomMatchSummary, args, {teamStyle = 'short'})
19 | end
20 |
21 | ---@param date string
22 | ---@param game MatchGroupUtilGame
23 | ---@param gameIndex integer
24 | ---@return Widget?
25 | function CustomMatchSummary.createGame(date, game, gameIndex)
26 | return nil
27 | end
28 |
29 | return CustomMatchSummary
30 |
--------------------------------------------------------------------------------
/lua/wikis/starcraft/Faction/Data.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=starcraft
4 | -- page=Module:Faction/Data
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | return require('Module:Faction/Data/Starcraft')
10 |
--------------------------------------------------------------------------------
/lua/wikis/starcraft/Faction/IconData.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=starcraft
4 | -- page=Module:Faction/IconData
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Info = mw.loadData('Module:Info')
10 |
11 | local byFaction = {
12 | p = {
13 | altIcon = 'File:ProtossIcon.png',
14 | icon = 'File:Picon small bw.png',
15 | },
16 | t = {
17 | altIcon = 'File:TerranIcon.png',
18 | icon = 'File:Ticon small bw.png',
19 | },
20 | z = {
21 | altIcon = 'File:ZergIcon.png',
22 | icon = 'File:Zicon small bw.png',
23 | },
24 | r = {
25 | altIcon = 'File:RaceIcon Random.png',
26 | icon = 'File:Ricon small bw.png',
27 | },
28 | u = {
29 | icon = 'File:Space filler race.png',
30 | },
31 | }
32 |
33 | local randomIcons = {
34 | ['r(p)'] = 'File:R(P)icon small bw.png',
35 | ['r(t)'] = 'File:R(T)icon small bw.png',
36 | ['r(z)'] = 'File:R(Z)icon small bw.png',
37 | }
38 |
39 | return {byFaction = {[Info.defaultGame] = byFaction}, randomIcons = randomIcons}
40 |
--------------------------------------------------------------------------------
/lua/wikis/starcraft/GameSummary.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=starcraft
4 | -- page=Module:GameSummary
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 |
11 | local StarcraftFfaGameSummary = Lua.import('Module:GameSummary/Starcraft')
12 |
13 | return StarcraftFfaGameSummary
14 |
--------------------------------------------------------------------------------
/lua/wikis/starcraft/GetMatchGroupCopyPaste/wiki.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=starcraft
4 | -- page=Module:GetMatchGroupCopyPaste/wiki
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 | return Lua.import('Module:GetMatchGroupCopyPaste/Starcraft')
11 |
--------------------------------------------------------------------------------
/lua/wikis/starcraft/MatchGroup/Util/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=starcraft
4 | -- page=Module:MatchGroup/Util/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 | local StarcraftMatchGroupUtil = Lua.import('Module:MatchGroup/Util/Starcraft')
11 |
12 | return StarcraftMatchGroupUtil
13 |
--------------------------------------------------------------------------------
/lua/wikis/starcraft/MatchSummary/Ffa.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=starcraft
4 | -- page=Module:MatchSummary/Ffa
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 |
11 | local StarcraftFfaMatchSummary = Lua.import('Module:MatchSummary/Starcraft/Ffa')
12 |
13 | return StarcraftFfaMatchSummary
14 |
--------------------------------------------------------------------------------
/lua/wikis/starcraft/ParticipantTable/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=starcraft
4 | -- page=Module:ParticipantTable/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 |
11 | return Lua.import('Module:ParticipantTable/Starcraft')
12 |
--------------------------------------------------------------------------------
/lua/wikis/starcraft/Player/Display/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=starcraft
4 | -- page=Module:Player/Display/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 |
11 | return Lua.import('Module:Player/Display/Starcraft')
12 |
--------------------------------------------------------------------------------
/lua/wikis/starcraft/Player/Ext/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=starcraft
4 | -- page=Module:Player/Ext/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 |
11 | return Lua.import('Module:Player/Ext/Starcraft')
12 |
--------------------------------------------------------------------------------
/lua/wikis/starcraft/PrizePool/Award/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=starcraft
4 | -- page=Module:PrizePool/Award/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 |
11 | return Lua.import('Module:PrizePool/Award/Starcraft')
12 |
--------------------------------------------------------------------------------
/lua/wikis/starcraft/PrizePool/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=starcraft
4 | -- page=Module:PrizePool/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 |
11 | return Lua.import('Module:PrizePool/Starcraft')
12 |
--------------------------------------------------------------------------------
/lua/wikis/starcraft2/Faction/Data.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=starcraft2
4 | -- page=Module:Faction/Data
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | return require('Module:Faction/Data/Starcraft')
10 |
--------------------------------------------------------------------------------
/lua/wikis/starcraft2/GameSummary.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=starcraft2
4 | -- page=Module:GameSummary
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 |
11 | local StarcraftFfaGameSummary = Lua.import('Module:GameSummary/Starcraft')
12 |
13 | return StarcraftFfaGameSummary
14 |
--------------------------------------------------------------------------------
/lua/wikis/starcraft2/GetMatchGroupCopyPaste/wiki.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=starcraft2
4 | -- page=Module:GetMatchGroupCopyPaste/wiki
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 | return Lua.import('Module:GetMatchGroupCopyPaste/Starcraft')
11 |
--------------------------------------------------------------------------------
/lua/wikis/starcraft2/Infobox/Extension/Achievements/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=starcraft2
4 | -- page=Module:Infobox/Extension/Achievements/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local GSL_ICON = 'GSLLogo_small.png'
10 | local GSL_CODE_A_ICON = 'GSL_CodeA.png'
11 | local CODE_A = 'Code A'
12 |
13 | return {
14 | noTemplate = true,
15 | onlyForFirstPrizePoolOfPage = true,
16 | --sc2 specific icon adjustments for GSL Code A
17 | adjustItem = function(item)
18 | item.icon = string.gsub(item.icon or '', 'File:', '') --just to be safe
19 | if item.icon == GSL_ICON and string.match(item.tournament, CODE_A) then
20 | item.icon = GSL_CODE_A_ICON
21 | item.icondark = GSL_CODE_A_ICON
22 | end
23 |
24 | return item
25 | end,
26 | }
27 |
--------------------------------------------------------------------------------
/lua/wikis/starcraft2/Links/CustomData.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=starcraft2
4 | -- page=Module:Links/CustomData
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | return {
10 | prefixes = {
11 | aligulac = {
12 | 'http://aligulac.com/results/events/',
13 | team = 'http://aligulac.com/teams/',
14 | player = 'http://aligulac.com/players/',
15 | }
16 | },
17 | }
18 |
--------------------------------------------------------------------------------
/lua/wikis/starcraft2/MatchGroup/Util/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=starcraft2
4 | -- page=Module:MatchGroup/Util/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 | local StarcraftMatchGroupUtil = Lua.import('Module:MatchGroup/Util/Starcraft')
11 |
12 | return StarcraftMatchGroupUtil
13 |
--------------------------------------------------------------------------------
/lua/wikis/starcraft2/MatchSummary/Ffa.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=starcraft2
4 | -- page=Module:MatchSummary/Ffa
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 |
11 | local StarcraftFfaMatchSummary = Lua.import('Module:MatchSummary/Starcraft/Ffa')
12 |
13 | return StarcraftFfaMatchSummary
14 |
--------------------------------------------------------------------------------
/lua/wikis/starcraft2/ParticipantTable/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=starcraft2
4 | -- page=Module:ParticipantTable/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 |
11 | return Lua.import('Module:ParticipantTable/Starcraft')
12 |
--------------------------------------------------------------------------------
/lua/wikis/starcraft2/Player/Display/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=starcraft2
4 | -- page=Module:Player/Display/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 |
11 | return Lua.import('Module:Player/Display/Starcraft')
12 |
--------------------------------------------------------------------------------
/lua/wikis/starcraft2/Player/Ext/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=starcraft2
4 | -- page=Module:Player/Ext/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 |
11 | return Lua.import('Module:Player/Ext/Starcraft')
12 |
--------------------------------------------------------------------------------
/lua/wikis/starcraft2/PrizePool/Award/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=starcraft2
4 | -- page=Module:PrizePool/Award/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 |
11 | return Lua.import('Module:PrizePool/Award/Starcraft')
12 |
--------------------------------------------------------------------------------
/lua/wikis/starcraft2/PrizePool/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=starcraft2
4 | -- page=Module:PrizePool/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 |
11 | return Lua.import('Module:PrizePool/Starcraft')
12 |
--------------------------------------------------------------------------------
/lua/wikis/stormgate/Brkts/WikiSpecific.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=stormgate
4 | -- page=Module:Brkts/WikiSpecific
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Array = require('Module:Array')
10 | local Lua = require('Module:Lua')
11 | local Table = require('Module:Table')
12 |
13 | local BaseWikiSpecific = Lua.import('Module:Brkts/WikiSpecific/Base')
14 |
15 | ---@class StormgateBrktsWikiSpecific: BrktsWikiSpecific
16 | local WikiSpecific = Table.copy(BaseWikiSpecific)
17 |
18 | ---Determine if a match has details that should be displayed via popup
19 | ---@param match table
20 | ---@return boolean
21 | function WikiSpecific.matchHasDetails(match)
22 | return match.dateIsExact
23 | or match.vod
24 | or not Table.isEmpty(match.links)
25 | or match.comment
26 | or match.casters
27 | or 0 < #match.vetoes
28 | or Array.any(match.games, function(game)
29 | return game.map and game.map ~= 'TBD'
30 | or game.winner
31 | end)
32 | end
33 |
34 | return WikiSpecific
35 |
--------------------------------------------------------------------------------
/lua/wikis/stormgate/Faction/IconData.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=stormgate
4 | -- page=Module:Faction/IconData
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Info = mw.loadData('Module:Info')
10 |
11 | local byFaction = {
12 | v = {
13 | icon = 'File:Stormgate Human Vanguard default allmode.png',
14 | },
15 | i = {
16 | icon = 'File:Stormgate Infernal Host default allmode.png',
17 | },
18 | c = {
19 | icon = 'File:Stormgate Celestial Armada default allmode.png',
20 | },
21 | r = {
22 | icon = 'File:Random race icon.png',
23 | },
24 | n = {
25 | icon = 'File:Space filler race.png',
26 | },
27 | u = {
28 | icon = 'File:Space filler race.png',
29 | },
30 | }
31 |
32 | return {byFaction = {[Info.defaultGame] = byFaction}, randomIcons = {}}
33 |
--------------------------------------------------------------------------------
/lua/wikis/stormgate/HiddenDataBox/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=stormgate
4 | -- page=Module:HiddenDataBox/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Game = require('Module:Game')
11 | local Lua = require('Module:Lua')
12 |
13 | local BasicHiddenDataBox = Lua.import('Module:HiddenDataBox')
14 | local CustomHiddenDataBox = {}
15 |
16 | ---@param args table
17 | ---@return Html
18 | function CustomHiddenDataBox.run(args)
19 | args = args or {}
20 | args.game = Game.name{game = args.game}
21 |
22 | return BasicHiddenDataBox.run(args)
23 | end
24 |
25 | return Class.export(CustomHiddenDataBox, {exports = {'run'}})
26 |
--------------------------------------------------------------------------------
/lua/wikis/stormgate/Links/CustomData.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=stormgate
4 | -- page=Module:Links/CustomData
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | return {
10 | prefixes = {
11 | untapped = {
12 | '',
13 | player = 'https://stormgate.untapped.gg/en/players/',
14 | },
15 | },
16 | suffixes = {
17 | untapped = {
18 | '',
19 | player = '/a', --completely generic, it just needs `/` and any letter behind it ...
20 | },
21 | },
22 | }
23 |
--------------------------------------------------------------------------------
/lua/wikis/stormgate/PrizePool/Award/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=stormgate
4 | -- page=Module:PrizePool/Award/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 |
11 | return Lua.import('Module:PrizePool/Award/Starcraft')
12 |
--------------------------------------------------------------------------------
/lua/wikis/stormgate/PrizePool/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=stormgate
4 | -- page=Module:PrizePool/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 |
11 | return Lua.import('Module:PrizePool/Starcraft')
12 |
--------------------------------------------------------------------------------
/lua/wikis/tarkovarena/Infobox/Person/Player/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=tarkovarena
4 | -- page=Module:Infobox/Person/Player/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 | local TeamHistoryAuto = require('Module:TeamHistoryAuto')
12 |
13 | local Player = Lua.import('Module:Infobox/Person')
14 |
15 | ---@class TarkovArenaInfoboxPlayer: Person
16 | local CustomPlayer = Class.new(Player)
17 |
18 | ---@param frame Frame
19 | ---@return Html
20 | function CustomPlayer.run(frame)
21 | local player = CustomPlayer(frame)
22 |
23 | player.args.history = TeamHistoryAuto.results{convertrole = true}
24 | player.args.autoTeam = true
25 | return player:createInfobox()
26 | end
27 |
28 | return CustomPlayer
29 |
--------------------------------------------------------------------------------
/lua/wikis/teamfortress/Info.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=teamfortress
4 | -- page=Module:Info
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | return {
10 | startYear = 2007,
11 | wikiName = 'teamfortress',
12 | name = 'Team Fortress',
13 | defaultGame = 'tf2',
14 | games = {
15 | tf2 = {
16 | abbreviation = 'TF2',
17 | name = 'Team Fortress 2',
18 | link = 'Team Fortress 2',
19 | logo = {
20 | darkMode = 'Team Fortress default allmode.png',
21 | lightMode = 'Team Fortress default allmode.png',
22 | },
23 | defaultTeamLogo = {
24 | darkMode = 'Team Fortress default allmode.png',
25 | lightMode = 'Team Fortress default allmode.png',
26 | },
27 | },
28 | },
29 | config = {
30 | squads = {
31 | hasPosition = false,
32 | hasSpecialTeam = false,
33 | allowManual = true,
34 | },
35 | match2 = {
36 | status = 2,
37 | },
38 | },
39 | }
40 |
--------------------------------------------------------------------------------
/lua/wikis/teamfortress/Infobox/Team/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=teamfortress
4 | -- page=Module:Infobox/Team/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 | local RoleOf = require('Module:RoleOf')
12 |
13 | local Team = Lua.import('Module:Infobox/Team')
14 |
15 | ---@class TeamfortressInfoboxTeam: InfoboxTeam
16 | local CustomTeam = Class.new(Team)
17 |
18 | function CustomTeam.run(frame)
19 | local team = CustomTeam(frame)
20 |
21 | -- Automatic org people
22 | team.args.coach = RoleOf.get{role = 'Coach'}
23 | team.args.manager = RoleOf.get{role = 'Manager'}
24 | team.args.captain = RoleOf.get{role = 'Captain'}
25 |
26 |
27 | return team:createInfobox()
28 | end
29 |
30 | return CustomTeam
31 |
--------------------------------------------------------------------------------
/lua/wikis/tetris/Infobox/Person/Player/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=tetris
4 | -- page=Module:Infobox/Person/Player/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local Injector = Lua.import('Module:Widget/Injector')
13 | local Player = Lua.import('Module:Infobox/Person')
14 |
15 | ---@class TetrisInfoboxPlayer: Person
16 | local CustomPlayer = Class.new(Player)
17 | local CustomInjector = Class.new(Injector)
18 |
19 | ---@param frame Frame
20 | ---@return Html
21 | function CustomPlayer.run(frame)
22 | local player = CustomPlayer(frame)
23 | player:setWidgetInjector(CustomInjector(player))
24 |
25 | return player:createInfobox(frame)
26 | end
27 |
28 | ---@param id string
29 | ---@param widgets Widget[]
30 | ---@return Widget[]
31 | function CustomInjector:parse(id, widgets)
32 | return widgets
33 | end
34 |
35 | return CustomPlayer
36 |
--------------------------------------------------------------------------------
/lua/wikis/trackmania/MatchGroup/Legacy/Default.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=trackmania
4 | -- page=Module:MatchGroup/Legacy/Default
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local MatchGroupLegacy = Lua.import('Module:MatchGroup/Legacy')
13 |
14 | ---@class TrackmaniaMatchGroupLegacyDefault: MatchGroupLegacy
15 | local MatchGroupLegacyDefault = Class.new(MatchGroupLegacy)
16 |
17 | ---@return table
18 | function MatchGroupLegacyDefault:getMap()
19 | return {
20 | ['$notEmpty$'] = 'map$1$',
21 | vod = 'vodgame$1$',
22 | map = 'map$1$',
23 | winner = 'map$1$win',
24 | overtime = 'ot$1$',
25 | score1 = 'map$1$t1score',
26 | score2 = 'map$1$t2score',
27 | }
28 | end
29 |
30 | ---@param frame Frame
31 | ---@return string
32 | function MatchGroupLegacyDefault.run(frame)
33 | return MatchGroupLegacyDefault(frame):build()
34 | end
35 |
36 | return MatchGroupLegacyDefault
37 |
--------------------------------------------------------------------------------
/lua/wikis/trackmania/ResultsTable/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=trackmania
4 | -- page=Module:ResultsTable/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local ResultsTable = Lua.import('Module:ResultsTable')
13 | local AwardsTable = Lua.import('Module:ResultsTable/Award')
14 |
15 | local CustomResultsTable = {}
16 |
17 | -- Template entry point for results and achievements tables
18 | function CustomResultsTable.results(args)
19 | args.hideresult = true
20 | return ResultsTable(args):create():build()
21 | end
22 |
23 | -- Template entry point for awards tables
24 | function CustomResultsTable.awards(args)
25 | return AwardsTable(args):create():build()
26 | end
27 |
28 | return Class.export(CustomResultsTable, {exports = {'results', 'awards'}})
29 |
--------------------------------------------------------------------------------
/lua/wikis/underlords/Info.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=underlords
4 | -- page=Module:Info
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | return {
10 | startYear = 2019,
11 | wikiName = 'underlords',
12 | name = 'Dota Underlords',
13 | defaultGame = 'underlords',
14 | games = {
15 | underlords = {
16 | abbreviation = 'Underlords',
17 | name = 'Dota Underlords',
18 | link = 'Dota Underlords',
19 | logo = {
20 | darkMode = 'Dota Underlords darkmode.png',
21 | lightMode = 'Dota Underlords lightmode.png',
22 | },
23 | defaultTeamLogo = {
24 | darkMode = 'Dota Underlords darkmode.png',
25 | lightMode = 'Dota Underlords lightmode.png',
26 | },
27 | },
28 | },
29 | config = {
30 | squads = {
31 | hasPosition = false,
32 | hasSpecialTeam = false,
33 | allowManual = true,
34 | },
35 | match2 = {
36 | status = 2,
37 | },
38 | },
39 | }
40 |
--------------------------------------------------------------------------------
/lua/wikis/valorant/HighlightConditions.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=valorant
4 | -- page=Module:HighlightConditions
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local HighlightConditions = {}
10 |
11 | --- Check arguments or queryData if the tournament should be highlighted
12 | ---@param data table
13 | ---@param options table?
14 | ---@return boolean
15 | function HighlightConditions.tournament(data, options)
16 | return (data.publishertier == 'highlighted')
17 | end
18 |
19 | return HighlightConditions
20 |
--------------------------------------------------------------------------------
/lua/wikis/valorant/InGameRoles.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=valorant
4 | -- page=Module:InGameRoles
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | ---@type PersonRoleData
10 | local inGameRoles = {
11 | ['igl'] = {category = 'In-game leaders', display = 'In-game leader'},
12 | }
13 |
14 | inGameRoles['in-game leader'] = inGameRoles.igl
15 |
16 | return inGameRoles
17 |
--------------------------------------------------------------------------------
/lua/wikis/valorant/Infobox/Patch/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=valorant
4 | -- page=Module:Infobox/Patch/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Class = require('Module:Class')
10 | local Lua = require('Module:Lua')
11 |
12 | local Patch = Lua.import('Module:Infobox/Patch')
13 |
14 | ---@class ValorantPatchInfobox: PatchInfobox
15 | local CustomPatch = Class.new(Patch)
16 |
17 | ---@param frame Frame
18 | ---@return Html
19 | function CustomPatch.run(frame)
20 | local patch = CustomPatch(frame)
21 |
22 | return patch:createInfobox()
23 | end
24 |
25 | ---@param args table
26 | ---@return {previous: string?, next: string?}
27 | function CustomPatch:getChronologyData(args)
28 | local data = {}
29 | if args.previous then
30 | data.previous = 'Patch ' .. args.previous .. '|' .. args.previous
31 | end
32 | if args.next then
33 | data.next = 'Patch ' .. args.next .. '|' .. args.next
34 | end
35 | return data
36 | end
37 |
38 | return CustomPatch
39 |
--------------------------------------------------------------------------------
/lua/wikis/warcraft/Brkts/WikiSpecific.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=warcraft
4 | -- page=Module:Brkts/WikiSpecific
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Array = require('Module:Array')
10 | local Table = require('Module:Table')
11 |
12 | ---@class WarcraftBrktsWikiSpecific: BrktsWikiSpecific
13 | local WikiSpecific = Table.copy(require('Module:Brkts/WikiSpecific/Base'))
14 |
15 | ---Determine if a match has details that should be displayed via popup
16 | ---@param match table
17 | ---@return boolean
18 | function WikiSpecific.matchHasDetails(match)
19 | return match.dateIsExact
20 | or match.vod
21 | or not Table.isEmpty(match.links)
22 | or match.comment
23 | or match.casters
24 | or 0 < #match.vetoes
25 | or Array.any(match.games, function(game)
26 | return game.map and game.map ~= 'TBD'
27 | or game.winner
28 | end)
29 | end
30 |
31 | return WikiSpecific
32 |
--------------------------------------------------------------------------------
/lua/wikis/warcraft/Faction/IconData.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=warcraft
4 | -- page=Module:Faction/IconData
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Info = mw.loadData('Module:Info')
10 |
11 | local byFaction = {
12 | h = {
13 | icon = 'File:Human icon small.png',
14 | },
15 | o = {
16 | icon = 'File:Orc icon small.png',
17 | },
18 | n = {
19 | icon = 'File:Nightelf icon small.png',
20 | },
21 | u = {
22 | icon = 'File:Undead icon small.png',
23 | },
24 | r = {
25 | icon = 'File:Random race icon.png',
26 | },
27 | m = {
28 | icon = 'File:Multiple icon small.png',
29 | },
30 | a = {
31 | icon = 'File:Space filler race.png',
32 | },
33 | }
34 |
35 | return {byFaction = {[Info.defaultGame] = byFaction}, randomIcons = {}}
36 |
--------------------------------------------------------------------------------
/lua/wikis/warcraft/Links/CustomData.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=warcraft
4 | -- page=Module:Links/CustomData
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | return {
10 | prefixes = {
11 | challonge = {
12 | 'https://challonge.com/',
13 | player = 'https://challonge.com/users/',
14 | },
15 | esl = {
16 | 'https://play.eslgaming.com/warcraft/',
17 | team = 'https://play.eslgaming.com/team/',
18 | player = 'https://play.eslgaming.com/player/',
19 | },
20 | },
21 | }
22 |
--------------------------------------------------------------------------------
/lua/wikis/warcraft/PrizePool/Legacy/Award/Custom.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=warcraft
4 | -- page=Module:PrizePool/Legacy/Award/Custom
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 |
11 | local LegacyPrizePool = Lua.import('Module:PrizePool/Legacy')
12 |
13 | local CustomLegacyAwardPrizePool = {}
14 |
15 | -- Template entry point
16 | ---@return Html
17 | function CustomLegacyAwardPrizePool.run()
18 | return LegacyPrizePool.run(CustomLegacyAwardPrizePool)
19 | end
20 |
21 | ---@param opponentData table
22 | ---@param CACHED_DATA table
23 | ---@param slot table
24 | ---@param opponentIndex integer
25 | ---@return table
26 | function CustomLegacyAwardPrizePool.customOpponent(opponentData, CACHED_DATA, slot, opponentIndex)
27 | opponentData.race = slot['race' .. opponentIndex]
28 |
29 | return opponentData
30 | end
31 |
32 | return CustomLegacyAwardPrizePool
33 |
--------------------------------------------------------------------------------
/lua/wikis/warthunder/Info.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=warthunder
4 | -- page=Module:Info
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | return {
10 | startYear = 2012,
11 | wikiName = 'warthunder',
12 | name = 'War Thunder',
13 | defaultGame = 'War Thunder',
14 | games = {
15 | warthunder = {
16 | abbreviation = 'WT',
17 | name = 'War Thunder',
18 | link = 'War Thunder',
19 | logo = {
20 | darkMode = 'War Thunder default allmode.png',
21 | lightMode = 'War Thunder default allmode.png',
22 | },
23 | defaultTeamLogo = {
24 | darkMode = 'War Thunder default allmode.png',
25 | lightMode = 'War Thunder default allmode.png',
26 | },
27 | },
28 | },
29 | config = {
30 | squads = {
31 | hasPosition = false,
32 | hasSpecialTeam = false,
33 | allowManual = false,
34 | },
35 | match2 = {
36 | status = 2,
37 | matchWidth = 180,
38 | },
39 | },
40 | defaultRoundPrecision = 0,
41 | }
42 |
--------------------------------------------------------------------------------
/lua/wikis/wildcard/Info.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=wildcard
4 | -- page=Module:Info
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | return {
10 | startYear = 2024,
11 | wikiName = 'wildcard',
12 | name = 'Wildcard',
13 | defaultGame = 'Wildcard',
14 | games = {
15 | wildcard = {
16 | abbreviation = 'Wildcard',
17 | name = 'Wildcard',
18 | link = 'Wildcard',
19 | logo = {
20 | darkMode = 'Wildcard full darkmode.svg',
21 | lightMode = 'Wildcard full lightmode.svg',
22 | },
23 | defaultTeamLogo = {
24 | darkMode = 'Wildcard full darkmode.svg',
25 | lightMode = 'Wildcard full lightmode.svg',
26 | },
27 | },
28 | },
29 | config = {
30 | squads = {
31 | hasPosition = false,
32 | hasSpecialTeam = false,
33 | allowManual = false,
34 | },
35 | match2 = {
36 | status = 0,
37 | matchWidth = 180,
38 | },
39 | },
40 | defaultRoundPrecision = 0,
41 | }
42 |
--------------------------------------------------------------------------------
/lua/wikis/wildrift/InGameRoles.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=wildrift
4 | -- page=Module:InGameRoles
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | ---@type PersonRoleData
10 | local inGameRoles = {
11 | ['baron'] = {category = 'Baron Lane players', display = 'Baron'},
12 | ['support'] = {category = 'Support players', display = 'Support'},
13 | ['jungle'] = {category = 'Jungle players', display = 'Jungle'},
14 | ['mid'] = {category = 'Mid Lane players', display = 'Mid'},
15 | ['dragon'] = {category = 'Dragon Lane players', display = 'Dragon'},
16 | }
17 |
18 | inGameRoles['jgl'] = inGameRoles.jungle
19 | inGameRoles['solomiddle'] = inGameRoles.mid
20 | inGameRoles['carry'] = inGameRoles.dragon
21 | inGameRoles['adc'] = inGameRoles.dragon
22 | inGameRoles['bot'] = inGameRoles.dragon
23 | inGameRoles['ad carry'] = inGameRoles.dragon
24 | inGameRoles['sup'] = inGameRoles.support
25 |
26 | return inGameRoles
27 |
--------------------------------------------------------------------------------
/lua/wikis/wildrift/Info.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=wildrift
4 | -- page=Module:Info
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | return {
10 | startYear = 2020,
11 | wikiName = 'wildrift',
12 | name = 'Wild Rift',
13 | defaultGame = 'wildrift',
14 | games = {
15 | wildrift = {
16 | abbreviation = 'WR',
17 | name = 'Wild Rift',
18 | link = 'Wild Rift',
19 | logo = {
20 | darkMode = 'Wild Rift Teamcard.png',
21 | lightMode = 'Wild Rift Teamcard.png',
22 | },
23 | defaultTeamLogo = {
24 | darkMode = 'Wild Rift Teamcard.png',
25 | lightMode = 'Wild Rift Teamcard.png',
26 | },
27 | },
28 | },
29 | config = {
30 | squads = {
31 | hasPosition = false,
32 | hasSpecialTeam = false,
33 | allowManual = true,
34 | },
35 | match2 = {
36 | status = 2,
37 | matchWidthMobile = 110,
38 | matchWidth = 200,
39 | },
40 | transfers = {
41 | showTeamName = true,
42 | },
43 | },
44 | }
45 |
--------------------------------------------------------------------------------
/lua/wikis/worldoftanks/Earnings.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=worldoftanks
4 | -- page=Module:Earnings
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | local Lua = require('Module:Lua')
10 |
11 | local CustomEarnings = Lua.import('Module:Earnings/Base')
12 |
13 | CustomEarnings.defaultNumberOfStoredPlayersPerMatch = 21
14 |
15 | return CustomEarnings
16 |
--------------------------------------------------------------------------------
/lua/wikis/worldoftanks/InGameRoles.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=worldoftanks
4 | -- page=Module:InGameRoles
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | ---@type PersonRoleData
10 | local inGameRoles = {
11 | ['igl'] = {category = 'In-game leaders', display = 'In-game leader'},
12 | }
13 |
14 | return inGameRoles
15 |
--------------------------------------------------------------------------------
/lua/wikis/worldofwarcraft/InGameRoles.lua:
--------------------------------------------------------------------------------
1 |
2 | ---
3 | -- @Liquipedia
4 | -- wiki=worldofwarcraft
5 | -- page=Module:InGameRoles
6 | --
7 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
8 | --
9 |
10 | ---@type PersonRoleData
11 | local inGameRoles = {
12 | ['healer'] = {category = 'Healers', display = 'Healer'},
13 | ['dps'] = {category = 'DPS players', display = 'DPS'},
14 | }
15 |
16 | return inGameRoles
17 |
--------------------------------------------------------------------------------
/lua/wikis/worldofwarcraft/Info.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=worldofwarcraft
4 | -- page=Module:Info
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | return {
10 | startYear = 2007,
11 | wikiName = 'worldofwarcraft',
12 | name = 'World of Warcraft',
13 | defaultGame = 'wow',
14 | games = {
15 | wow = {
16 | abbreviation = 'WoW',
17 | name = 'World of Warcraft',
18 | link = 'World of Warcraft',
19 | logo = {
20 | darkMode = 'WoWlogo Default allmode.png',
21 | lightMode = 'WoWlogo Default allmode.png',
22 | },
23 | defaultTeamLogo = {
24 | darkMode = 'WoWlogo Default allmode.png',
25 | lightMode = 'WoWlogo Default allmode.png',
26 | },
27 | },
28 | },
29 | config = {
30 | squads = {
31 | hasPosition = false,
32 | hasSpecialTeam = false,
33 | allowManual = true,
34 | },
35 | match2 = {
36 | status = 1,
37 | },
38 | },
39 | }
40 |
--------------------------------------------------------------------------------
/lua/wikis/zula/InGameRoles.lua:
--------------------------------------------------------------------------------
1 | ---
2 | -- @Liquipedia
3 | -- wiki=zula
4 | -- page=Module:InGameRoles
5 | --
6 | -- Please see https://github.com/Liquipedia/Lua-Modules to contribute
7 | --
8 |
9 | ---@type PersonRoleData
10 | local inGameRoles = {
11 | ['igl'] = {category = 'In-game leaders', display = 'In-game Leader'},
12 | ['rifler'] = {category = 'Riflers', display = 'Rifler'},
13 | }
14 |
15 | inGameRoles['rifle'] = inGameRoles['rifler']
16 |
17 | return inGameRoles
18 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "private": true,
3 | "devDependencies": {
4 | "eslint-config-wikimedia": "*",
5 | "jquery": "*",
6 | "grunt": "*",
7 | "grunt-eslint": "24.x.x",
8 | "grunt-stylelint": "^0.20.x",
9 | "postcss-less": "^6.0.0",
10 | "stylelint": "^16.6.1",
11 | "stylelint-config-wikimedia": "^0.17.0",
12 | "stylelint-less": "^3.0.1",
13 | "@stylistic/stylelint-plugin": "^2.1.2"
14 | },
15 | "scripts": {
16 | "test": "grunt main",
17 | "fix": "grunt main --fix"
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/scripts/protect_templates.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | . ./scripts/protect_page.sh
4 |
5 | readarray filesToProtect < "./templates/templatesToProtect"
6 |
7 | for fileToProtect in "${filesToProtect[@]}"; do
8 | template="Template:${fileToProtect}"
9 | echo "::group::Checking ${WIKI_TO_PROTECT}:${template}"
10 | if [[ "commons" == ${WIKI_TO_PROTECT} ]]; then
11 | protectExistingPage "${template}" ${WIKI_TO_PROTECT}
12 | else
13 | protectNonExistingPage "${template}" ${WIKI_TO_PROTECT}
14 | fi
15 | echo '::endgroup::'
16 | done
17 |
18 | rm -f cookie_*
19 |
20 | if [[ ${#protectErrors[@]} -ne 0 ]]; then
21 | echo "::warning::Some templates could not be protected"
22 | echo ":warning: Some templates could not be protected" >> $GITHUB_STEP_SUMMARY
23 | echo "::group::Failed protections"
24 | for value in "${protectErrors[@]}"; do
25 | echo "... ${value}"
26 | done
27 | echo "::endgroup::"
28 | exit 1
29 | fi
30 |
--------------------------------------------------------------------------------
/stylesheets/README.md:
--------------------------------------------------------------------------------
1 | # New File
2 |
3 | When adding a new stylesheet to the repository, currently, after merge, it must be added to https://liquipedia.net/commons/Special:ResourceLoaderArticles
4 |
--------------------------------------------------------------------------------
/stylesheets/commons/Ambox.less:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | Template(s): Amboxes
3 | Author(s): FO-nTTaX
4 | *******************************************************************************/
5 | .ambox-wrapper {
6 | overflow: hidden;
7 | }
8 |
9 | @media ( max-width: 600px ) {
10 | .ambox-wrapper {
11 | clear: both;
12 | }
13 | }
14 |
15 | .ambox {
16 | margin: 0 auto 5px auto;
17 | width: 100%;
18 | max-width: 600px;
19 | min-width: 250px;
20 | border-width: 0 0 0 5px;
21 | padding: 4px;
22 | border-style: solid;
23 | overflow: hidden;
24 | }
25 |
26 | .ambox-fa-icon {
27 | font-size: 40px;
28 | }
29 |
30 | .ambox-text {
31 | padding: 5px;
32 | }
33 |
--------------------------------------------------------------------------------
/stylesheets/commons/BattleRoyale/NavigationContent.less:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | Template(s): Battle Royale - Navigation content
3 | Author(s): Elysienna
4 | *******************************************************************************/
5 |
6 | .navigation-content {
7 | &.is--hidden {
8 | display: none;
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/stylesheets/commons/Columns.less:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | Template(s): TeamCard Columns
3 | Author(s): FO-nTTaX
4 | *******************************************************************************/
5 | .cols-2 {
6 | max-width: 420px;
7 | }
8 |
9 | @media ( min-width: 840px ) {
10 | .cols-2 {
11 | max-width: 840px;
12 | }
13 | }
14 |
15 | @media ( min-width: 1260px ) {
16 | .cols-2 {
17 | max-width: 1260px;
18 | }
19 | }
20 |
21 | @media ( min-width: 1680px ) {
22 | .cols-2 {
23 | max-width: 1680px;
24 | }
25 | }
26 |
27 | .cols-3 {
28 | max-width: 630px;
29 | }
30 |
31 | @media ( min-width: 1260px ) {
32 | .cols-3 {
33 | max-width: 1260px;
34 | }
35 | }
36 |
37 | @media ( min-width: 1890px ) {
38 | .cols-3 {
39 | max-width: 1890px;
40 | }
41 | }
42 |
43 | .cols-4 {
44 | max-width: 840px;
45 | }
46 |
47 | @media ( min-width: 1680px ) {
48 | .cols-4 {
49 | max-width: 1680px;
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/stylesheets/commons/Selectall.less:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | Template(s): Select all for pre elements
3 | Author(s): Chapatiyaq
4 | *******************************************************************************/
5 | div.selectall-relative {
6 | position: relative;
7 | }
8 |
9 | textarea.selectall-duplicate {
10 | -moz-box-sizing: border-box;
11 | box-sizing: border-box;
12 | background: #ffffff;
13 | border: 1px solid transparent;
14 | position: absolute;
15 | top: 0;
16 | left: 0;
17 | width: 100%;
18 | height: 100%;
19 | overflow: hidden;
20 | white-space: pre;
21 | -moz-tab-size: 13;
22 | tab-size: 13;
23 | }
24 |
--------------------------------------------------------------------------------
/stylesheets/commons/Standings.less:
--------------------------------------------------------------------------------
1 | div.standings-ffa {
2 | & > table > * > tr > th {
3 | padding: 12px;
4 | }
5 |
6 | & > table > * > tr > td {
7 | padding: 8px;
8 | }
9 |
10 | & .btn-new {
11 | width: 120%;
12 | }
13 |
14 | & .tableHeaderRow {
15 | display: flex;
16 | gap: 32px;
17 | align-items: center;
18 | }
19 | }
20 |
--------------------------------------------------------------------------------