Module:ConfigRepository: Difference between revisions
// via Wikitext Extension for VSCode |
// via Wikitext Extension for VSCode |
||
| Line 50: | Line 50: | ||
p.templates = { | p.templates = { | ||
------------------------------------------------------------------------------ | |||
-- ANCHOR: EVENT TEMPLATE | -- ANCHOR: EVENT TEMPLATE | ||
------------------------------------------------------------------------------ | |||
Event = { | Event = { | ||
| Line 60: | Line 60: | ||
categories = { | categories = { | ||
base = {"Events"} | base = {"Events"} | ||
}, | }, | ||
| Line 109: | Line 109: | ||
}, | }, | ||
skipProperties = { | skipProperties = { -- Handled separately | ||
["Has country"] = true, | ["Has country"] = true, | ||
["Has ICANN region"] = true, | ["Has ICANN region"] = true, | ||
["Has event subject"] = true -- REVIEW: UNUSED | ["Has event subject"] = true -- REVIEW: UNUSED | ||
} | } | ||
| Line 117: | Line 117: | ||
}, | }, | ||
------------------------------------------------------------------------------ | |||
-- ANCHOR: PERSON TEMPLATE | -- ANCHOR: PERSON TEMPLATE | ||
------------------------------------------------------------------------------ | |||
Person = { | Person = { | ||
| Line 127: | Line 127: | ||
categories = { | categories = { | ||
base = {"Person"} | base = {"Person"} | ||
}, | }, | ||
| Line 181: | Line 181: | ||
patterns = { | patterns = { | ||
itemDelimiter = ";%s*", | itemDelimiter = ";%s*", -- Matches semicolon followed by optional whitespace; used for splitting multi-value fields | ||
websitePattern = "^https?://[^%s]+" | websitePattern = "^https?://[^%s]+" -- Matches URLs starting with http:// or https:// followed by non-whitespace chars | ||
}, | }, | ||
| Line 210: | Line 210: | ||
}, | }, | ||
skipProperties = { | skipProperties = { -- Handled separately | ||
["Has country"] = true, | ["Has country"] = true, | ||
["Has ICANN region"] = true | ["Has ICANN region"] = true | ||
} | } | ||
} | } | ||
}, | }, | ||
------------------------------------------------------------------------------ | |||
-- ANCHOR: TLD TEMPLATE | -- ANCHOR: TLD TEMPLATE | ||
------------------------------------------------------------------------------ | |||
TLD = { | TLD = { | ||
| Line 277: | Line 277: | ||
patterns = { | patterns = { | ||
tldExtension="%.([^%.]+)$", | tldExtension="%.([^%.]+)$", -- Extracts the TLD part after the last dot (e.g., "com" from "example.com") | ||
countryDelimiter="([^;]+)" | countryDelimiter="([^;]+)" -- Matches any sequence of characters not containing semicolons; used for country parsing | ||
}, | }, | ||
| Line 342: | Line 342: | ||
}, | }, | ||
skipProperties = { | skipProperties = { -- Handled separately | ||
["Has country"] = true | ["Has country"] = true | ||
} | } | ||
} | } | ||
}, | }, | ||
------------------------------------------------------------------------------ | |||
-- ANCHOR: LIBRARY INTERVIEW TEMPLATE | -- ANCHOR: LIBRARY INTERVIEW TEMPLATE | ||
------------------------------------------------------------------------------ | |||
LibraryInterview = { | LibraryInterview = { | ||