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

No edit summary
No edit summary
Line 2: Line 2:
This template defines a single row in the [[Template:Startup/Funding history table]].  
This template defines a single row in the [[Template:Startup/Funding history table]].  


It handles two tasks:
== Storage Logic: Main Page Only ==
# **Display:** Renders a table row with the Investor name and Round.
This template uses a conditional check to ensure Semantic Data is attached to the **Main Page**, not the data subpage.
# **Data Storage:** Stores a Semantic MediaWiki subobject with the funding details.
* **On Subpage:** When viewing `Startup/Funding_history`, the data is visible but **NOT** stored in SMW.
 
* **On Main Page:** When transcluded onto `Startup Name`, the template runs and attaches the subobjects directly to the Main Page.
== ⚠️ Important: Subpage Logic ==
To prevent duplicate data, this template includes a conditional check:
* It **only stores** the subobject if the page name ends in <code style="background:#eee">/Funding_history</code>.
* This allows you to transclude the Funding History table onto a main Startup page without creating a second, duplicate set of semantic data.


== Usage ==
== Usage ==