diff --git a/tooling/db/wiki_sync.py b/tooling/db/wiki_sync.py index dfe069ac6..12a03c6b2 100755 --- a/tooling/db/wiki_sync.py +++ b/tooling/db/wiki_sync.py @@ -451,6 +451,16 @@ def generate_infobox(conn, sid: str) -> str: lines.append(f"| **Population** | {pop} |") lines.append(f"| **Economy** | {tier} · {base} |") + # Specialization (D-237 authored layer) — surface the generator-input enums + # on the wiki face. NULL = unauthored (heuristic fallback / corridor default). + if e: + es = e["economic_specialization"] if "economic_specialization" in e.keys() else None + cs = e["cultural_specialization"] if "cultural_specialization" in e.keys() else None + if es: + lines.append(f"| **Specialization** | {es} |") + if cs: + lines.append(f"| **Cultural Register** | {cs} |") + # Governance if f and (f["governance_type"] or f["dominant_faction"]): gov = f["governance_type"] or "~"