(Suggested by @Nardog at https://meta.wikimedia.org/wiki/Talk:Community_Wishlist#c-Nardog-20251005135000-Converting_wish_number_to_wish_title )
Create a {{#CommunityRequests: data | id=W123 | field=[field_name] }} parser function that takes a wish or focus area identifier and returns the requested field as a wikitext value. The fields names are status, focus_area, proposer, vote_count, title, title_lang.
Derived Requirement
Provide a new parser function {{#CommunityRequests:entityData|…}} that accepts either a focus-area ID or wish ID (or title) and returns structured metadata for that entity (such as title, status, vote count, creation date, assigned focus area for wishes, etc.). The function must handle both wish and focus-area entities, resolve the appropriate entity type, fetch the data reliably (via the Extension:CommunityRequests store) and output valid HTML (or JSON as configured) that can be embedded in wikitext.
Test Result - Beta|Prod
Status: ✅ PASS / ❓Need More Info / ❌ FAIL
Environment: beta/xyzwiki
OS: macOS Tahoe 26.1
Browser: Chrome 142
Device: MBA
Emulated Device: NA
Test Artifact(s):
Test Steps
Test Case 1: Parser function returns correct data for a wish entity
- On the beta wiki, create or locate a test wish entity (e.g., with ID “W123”).
- Edit a talk page and insert the parser function: {{#CommunityRequests:Data|wish=W26}| field= <field name> }}.
- Save the page and review the rendered output.
- ✅❓❌⬜AC1: Confirm the output shows the correct status, focus_area, proposer, vote_count, title, title_lang of the wish.
Test Case 2: Error handling and invalid input
- Insert the parser function with a non-existent ID: {{#CommunityRequests:Data|wish=W999999}}.
- Save the page and review the rendered output.
- ✅❓❌⬜ AC2: Confirm the output shows a meaningful error or fallback message (e.g., “Wish W999999 not found”).
- Insert the parser function with missing parameters: {{#CommunityRequests:Data}}.
- Save the page and review the output.
- ✅❓❌⬜ AC3: Confirm the output shows a meaningful usage or error message indicating that either ‘wish’ or ‘focusarea’ parameter is required.
Test Case 3: Performance / caching behavior
- On the sandbox page for a wish using the parser function, open browser dev tools and clear cache.
- Reload the page and measure load time for the parser output.
- Modify the underlying wish (e.g., change title or vote count).
- Reload the page again.
- ✅❓❌⬜AC4: Confirm the updated data appears in the parser function output without excessive caching delays (within acceptable thresholds e.g., < 2s).
QA Results - Meta Beta
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T406537#11342546 |
| 2 | ✅ | T406537#11342546 |
| 3 | ✅ | T406537#11342546 |
| 4 | ✅ | T406537#11342546 |










