Template:Startup/Funding entry/doc: Difference between revisions

No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 7: Line 7:
* **On Subpage:** When viewing `Startup Name/Funding_history`, the template detects the subpage context (via `{{#titleparts}}`) and **CREATES** the SMW subobjects.
* **On Subpage:** When viewing `Startup Name/Funding_history`, the template detects the subpage context (via `{{#titleparts}}`) and **CREATES** the SMW subobjects.
* **On Main Page:** When transcluded onto `Startup Name`, the template renders the visual table row but **SUPPRESSES** subobject creation to prevent "double counting" or duplicate database entries.
* **On Main Page:** When transcluded onto `Startup Name`, the template renders the visual table row but **SUPPRESSES** subobject creation to prevent "double counting" or duplicate database entries.
This ensures that:
# Data integrity is maintained (3 rows = 3 database entries, not 6).
# The Main Page's metadata remains uncluttered.
# Queries work correctly by filtering on `[[Is part of startup::{{PAGENAME}}]]`.


== Usage ==
== Usage ==