Template:Startup/Funding entry/doc: Difference between revisions
Created page with "== Description == This template defines a single row in the Template:Startup/Funding history table. It also stores Semantic MediaWiki subobject data for the funding event. == Usage == <pre> {{Startup/Funding entry | investor = Sequoia | round = Series A }} </pre>" |
No edit summary |
||
| Line 1: | Line 1: | ||
== Description == | == Description == | ||
This template defines a single row in the [[Template:Startup/Funding history table]]. It | This template defines a single row in the [[Template:Startup/Funding history table]]. | ||
It handles two tasks: | |||
# **Display:** Renders a table row with the Investor name and Round. | |||
# **Data Storage:** Stores a Semantic MediaWiki subobject with the funding details. | |||
== ⚠️ 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 == | ||