Zones/QuickFacts

* unlink quick facts from articles and store per-row
 * new system allows generic and manual QuickFacts to coexist
 * fill new table with data for zones
 * if someone used static quickFacts .. uh .. good luck?
This commit is contained in:
Sarjuuk
2025-07-27 23:33:21 +02:00
parent ceec228718
commit 112acb2216
14 changed files with 348 additions and 116 deletions

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,160 @@
ALTER TABLE `aowow_articles`
DROP COLUMN `quickInfo`;
DROP TABLE IF EXISTS `aowow_quickfacts`;
CREATE TABLE `aowow_quickfacts` (
`type` smallint unsigned NOT NULL,
`typeId` mediumint signed NOT NULL,
`orderIdx` tinyint signed NOT NULL COMMENT '<0: prepend to generic list; >0: append to generic list',
`row` varchar(200) NOT NULL COMMENT 'Markdown formated',
UNIQUE KEY `row` (`type`, `typeId`, `orderIdx`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=COMPACT;
INSERT INTO `aowow_quickfacts` VALUES
-- Dungeons
(7, 206, 1, '|L:zone:boss|[icon preset=boss][npc=23954][/icon]'),
(7, 209, 1, '|L:zone:boss|[icon preset=boss][npc=4275][/icon]'),
(7, 491, 1, '|L:zone:boss|[icon preset=boss][npc=4421][/icon]'),
(7, 717, 1, '|L:zone:boss|[icon preset=boss][npc=1716][/icon]'),
(7, 718, 1, '|L:zone:boss|[icon preset=boss][npc=5775][/icon]'),
(7, 719, 1, '|L:zone:boss|[icon preset=boss][npc=4829][/icon]'),
(7, 721, 1, '|L:zone:boss|[icon preset=boss][npc=7800][/icon]'),
(7, 722, 1, '|L:zone:boss|[icon preset=boss][npc=7358][/icon]'),
(7, 796, 1, '|L:zone:key:0|[item=7146]'),
(7, 796, 2, '|L:zone:boss|[icon preset=boss][npc=3976][/icon]'),
(7, 1176, 1, '|L:zone:boss|[icon preset=boss][npc=7267][/icon]'),
(7, 1196, 1, '|L:zone:boss|[icon preset=boss][npc=26861][/icon]'),
(7, 1337, 1, '|L:zone:boss|[icon preset=boss][npc=2748][/icon]'),
(7, 1477, 1, '|L:zone:boss|[icon preset=boss][npc=5709][/icon]'),
(7, 1581, 1, '|L:zone:boss|[icon preset=boss][npc=639][/icon]'),
(7, 1583, 1, '|L:zone:boss|[icon preset=boss][npc=10363][/icon]'),
(7, 1584, 1, '|L:zone:boss|[icon preset=boss][npc=9019][/icon]'),
(7, 2017, 1, '|L:zone:boss|[icon preset=boss][npc=10440][/icon]'),
(7, 2057, 1, '|L:zone:key:0|[item=13704]'),
(7, 2057, 2, '|L:zone:boss|[icon preset=boss][npc=1853][/icon]'),
(7, 2100, 1, '|L:zone:boss|[icon preset=boss][npc=12201][/icon]'),
(7, 2366, 1, '|L:zone:faction|[faction=989]'),
(7, 2366, 2, '|L:zone:boss|[icon preset=boss][npc=17881][/icon]'),
(7, 2367, 1, '|L:zone:faction|[faction=989]'),
(7, 2367, 2, '|L:zone:boss|[icon preset=boss][npc=18096][/icon]'),
(7, 2437, 1, '|L:zone:boss|[icon preset=boss][npc=11520][/icon]'),
(7, 3562, 1, '|L:zone:faction|[icon name=side_alliance][faction=946][/icon] / [icon name=side_horde][faction=947][/icon]'),
(7, 3562, 2, '|L:zone:boss|[icon preset=boss][npc=17536][/icon]'),
(7, 3713, 1, '|L:zone:faction|[icon name=side_alliance][faction=946][/icon] / [icon name=side_horde][faction=947][/icon]'),
(7, 3713, 2, '|L:zone:boss|[icon preset=boss][npc=17377][/icon]'),
(7, 3714, 1, '|L:zone:key:0|[item=28395]'),
(7, 3714, 2, '|L:zone:faction|[icon name=side_alliance][faction=946][/icon] / [icon name=side_horde][faction=947][/icon]'),
(7, 3714, 3, '|L:zone:boss|[icon preset=boss][npc=16808][/icon]'),
(7, 3715, 1, '|L:zone:faction|[faction=942]'),
(7, 3715, 2, '|L:zone:boss|[icon preset=boss][npc=17798][/icon]'),
(7, 3716, 1, '|L:zone:faction|[faction=942]'),
(7, 3716, 2, '|L:zone:boss|[icon preset=boss][npc=17882][/icon]'),
(7, 3717, 1, '|L:zone:faction|[faction=942]'),
(7, 3717, 2, '|L:zone:boss|[icon preset=boss][npc=17942][/icon]'),
(7, 3789, 1, '|L:zone:key:0|[item=27991]'),
(7, 3789, 2, '|L:zone:faction|[faction=1011]'),
(7, 3789, 3, '|L:zone:boss|[icon preset=boss][npc=18708][/icon]'),
(7, 3790, 1, '|L:zone:faction|[faction=1011]'),
(7, 3790, 2, '|L:zone:boss|[icon preset=boss][npc=18373][/icon]'),
(7, 3791, 1, '|L:zone:faction|[faction=1011]'),
(7, 3791, 2, '|L:zone:boss|[icon preset=boss][npc=18473][/icon]'),
(7, 3792, 1, '|L:zone:faction|[faction=933]'),
(7, 3792, 2, '|L:zone:boss|[icon preset=boss][npc=18344][/icon]'),
(7, 3847, 1, '|L:zone:faction|[faction=935]'),
(7, 3847, 2, '|L:zone:boss|[icon preset=boss][npc=17977][/icon]'),
(7, 3848, 1, '|L:zone:key:0|[item=31084]'),
(7, 3848, 2, '|L:zone:faction|[faction=935]'),
(7, 3848, 3, '|L:zone:boss|[icon preset=boss][npc=20912][/icon]'),
(7, 3849, 1, '|L:zone:faction|[faction=935]'),
(7, 3849, 2, '|L:zone:boss|[icon preset=boss][npc=19220][/icon]'),
(7, 4100, 1, '|L:zone:boss|[icon preset=boss][npc=26533][/icon]'),
(7, 4131, 1, '|L:zone:faction|[faction=1077]'),
(7, 4131, 2, '|L:zone:boss|[icon preset=boss][npc=24664][/icon]'),
(7, 4196, 1, '|L:zone:boss|[icon preset=boss][npc=26632][/icon]'),
(7, 4228, 1, '|L:zone:boss|[icon preset=boss][npc=27656][/icon]'),
(7, 4264, 1, '|L:zone:boss|[icon preset=boss][npc=27978][/icon]'),
(7, 4265, 1, '|L:zone:boss|[icon preset=boss][npc=26723][/icon]'),
(7, 4272, 1, '|L:zone:boss|[icon preset=boss][npc=28923][/icon]'),
(7, 4277, 1, '|L:zone:boss|[icon preset=boss][npc=29120][/icon]'),
(7, 4415, 1, '|L:zone:boss|[icon preset=boss][npc=31134][/icon]'),
(7, 4416, 1, '|L:zone:boss|[icon preset=boss][npc=29306][/icon]'),
(7, 4494, 1, '|L:zone:boss|[icon preset=boss][npc=29311][/icon]'),
(7, 4723, 1, '|L:zone:boss|[icon preset=boss][npc=35451][/icon]'),
(7, 4809, 1, '|L:zone:boss|[icon preset=boss][npc=36502][/icon]'),
(7, 4813, 1, '|L:zone:boss|[icon preset=boss][npc=36658][/icon]'),
(7, 4820, 1, '|L:zone:boss|[icon preset=boss][npc=36954][/icon]'),
-- Raids
(7, 1977, 1, '|L:zone:raidFaction|[faction=270]'),
(7, 1977, 2, '|L:zone:boss|[icon preset=boss][npc=14834][/icon]'),
(7, 2677, 1, '|L:zone:attunement:0|[quest=7761]'),
(7, 2677, 2, '|L:zone:boss|[icon preset=boss][npc=11583][/icon]'),
(7, 2717, 1, '|L:zone:attunement:0|[quest=7487]'),
(7, 2717, 2, '|L:zone:raidFaction|[faction=749]'),
(7, 2717, 3, '|L:zone:boss|[icon preset=boss][npc=11502][/icon]'),
(7, 3428, 1, '|L:zone:raidFaction|[faction=910]'),
(7, 3428, 2, '|L:zone:boss|[icon preset=boss][npc=15727][/icon]'),
(7, 3429, 1, '|L:zone:raidFaction|[faction=609]'),
(7, 3429, 2, '|L:zone:boss|[icon preset=boss][npc=15339][/icon]'),
(7, 3457, 1, '|L:zone:attunement:0|[quest=9837]'),
(7, 3457, 2, '|L:zone:key:0|[item=24490]'),
(7, 3457, 3, '|L:zone:raidFaction|[faction=967]'),
(7, 3457, 4, '|L:zone:boss|[icon preset=boss][npc=15690][/icon]'),
(7, 3606, 1, '|L:zone:raidFaction|[faction=990]'),
(7, 3606, 2, '|L:zone:boss|[icon preset=boss][npc=17968][/icon]'),
(7, 3607, 1, '|L:zone:boss|[icon preset=boss][npc=21212][/icon]'),
(7, 3805, 1, '|L:zone:boss|[icon preset=boss][npc=23863][/icon]'),
(7, 3836, 1, '|L:zone:boss|[icon preset=boss][npc=17257][/icon]'),
(7, 3845, 1, '|L:zone:boss|[icon preset=boss][npc=19622][/icon]'),
(7, 3923, 1, '|L:zone:boss|[icon preset=boss][npc=19044][/icon]'),
(7, 3959, 1, '|L:zone:raidFaction|[faction=1012]'),
(7, 3959, 2, '|L:zone:boss|[icon preset=boss][npc=22917][/icon]'),
(7, 4075, 1, '|L:zone:boss|[icon preset=boss][npc=25315][/icon]'),
-- Zones
(7, 1, 1, '|L:zone:city||L:main:colon|[zone=1537]'),
(7, 12, 1, '|L:zone:city||L:main:colon|[zone=1519]'),
(7, 14, 1, '|L:zone:city||L:main:colon|[zone=1637]'),
(7, 65, 1, '|L:zone:reputationHub|[faction=1091]'),
(7, 67, 1, '|L:zone:reputationHub|[faction=1119]'),
(7, 85, 1, '|L:zone:city||L:main:colon|[zone=1497]'),
(7, 139, 1, '|L:zone:reputationHub|[faction=529]'),
(7, 141, 1, '|L:zone:city||L:main:colon|[zone=1657]'),
(7, 210, 1, '|L:zone:reputationHub|[faction=1106]\n[faction=1098]'),
(7, 215, 1, '|L:zone:city||L:main:colon|[zone=1638]'),
(7, 361, 1, '|L:zone:reputationHub|[faction=576]'),
(7, 405, 1, '|L:zone:reputationHub|[faction=92]\n[faction=93]'),
(7, 440, 1, '|L:zone:reputationHub|[faction=989]'),
(7, 493, 1, '|L:game:class||L:main:colon|[class=11]'),
(7, 618, 1, '|L:zone:reputationHub|[faction=589]'),
(7, 1377, 1, '|L:zone:reputationHub|[faction=609]'),
(7, 1497, 1, '|L:zone:location|[zone=85]'),
(7, 1497, 2, '|L:zone:reputationHub|[faction=68]'),
(7, 1519, 1, '|L:zone:location|[zone=12]'),
(7, 1519, 2, '|L:zone:reputationHub|[faction=72]'),
(7, 1537, 1, '|L:zone:location|[zone=1]'),
(7, 1537, 2, '|L:zone:reputationHub|[faction=47]\n[faction=54]'),
(7, 1637, 1, '|L:zone:location|[zone=14]'),
(7, 1637, 2, '|L:zone:reputationHub|[faction=76]'),
(7, 1638, 1, '|L:zone:location|[zone=215]'),
(7, 1638, 2, '|L:zone:reputationHub|[faction=81]'),
(7, 1657, 1, '|L:zone:location|[zone=141]'),
(7, 1657, 2, '|L:zone:reputationHub|[faction=69]'),
(7, 3430, 1, '|L:zone:city||L:main:colon|[zone=3487]'),
(7, 3433, 1, '|L:zone:reputationHub|[faction=922]'),
(7, 3483, 1, '|L:zone:reputationHub|[icon name=side_alliance][faction=946][/icon]\n[icon name=side_horde][faction=947][/icon]'),
(7, 3487, 1, '|L:zone:location|[zone=3430]'),
(7, 3487, 2, '|L:zone:reputationHub|[faction=911]'),
(7, 3518, 1, '|L:zone:reputationHub|[icon name=side_alliance][faction=978][/icon]\n[icon name=side_horde][faction=941][/icon]'),
(7, 3519, 1, '|L:zone:reputationHub|[faction=1031]'),
(7, 3519, 2, '|L:zone:city||L:main:colon|[zone=3703]'),
(7, 3520, 1, '|L:zone:reputationHub|[faction=1015]'),
(7, 3521, 1, '|L:zone:reputationHub|[faction=942]\n[faction=970]'),
(7, 3522, 1, '|L:zone:reputationHub|[faction=1038]'),
(7, 3523, 1, '|L:zone:reputationHub|[faction=933]'),
(7, 3557, 1, '|L:zone:location|[zone=3524]'),
(7, 3557, 2, '|L:zone:reputationHub|[faction=930]'),
(7, 3711, 1, '|L:zone:reputationHub|[faction=1105]\n[faction=1104]'),
(7, 3703, 1, '|L:zone:location|[zone=3519]'),
(7, 3703, 2, '|L:zone:reputationHub|[faction=932]\n[faction=934]\n[faction=1011]'),
(7, 4080, 1, '|L:zone:reputationHub|[faction=1077]'),
(7, 4395, 1, '|L:zone:location|[zone=2817]'),
(7, 4395, 2, '|L:zone:reputationHub|[faction=1090]');