Template:Startup/Funding entry: Difference between revisions
Appearance
Created page with "<noinclude> This template is part of a multiple-instance form on Startup pages. </noinclude> <includeonly> |- | [[{{{investor|}}}]] {{#set: HasInvestor={{{investor|}}} }} | {{{round|}}} {{#set: HasFunding_Round={{{round|}}} }} {{#set: HasInvestor_Round={{{investor|}}};{{{round|}}} }} </includeonly>" |
No edit summary |
||
| (19 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{Documentation}} | |||
</noinclude> | </noinclude><includeonly> | ||
<includeonly> | |||
|- | |- | ||
| [[{{{investor|}}}]] {{# | | [[{{{investor|}}}]] | ||
| {{{ | {{#ifeq:{{#titleparts:{{PAGENAME}}|1|-1}}|Funding history| | ||
{{# | {{#subobject: | ||
|HasInvestor={{{investor|}}} | |||
|HasFunding Round={{{round|}}} | |||
|Is part of startup={{#titleparts:{{PAGENAME}}|1}} | |||
}} | |||
|}} | |||
| {{{round|}}} | |||
</includeonly> | </includeonly> | ||
Latest revision as of 13:36, 2 December 2025
Description
This template defines a single row in the Template:Startup/Funding history table. It is designed to handle Semantic MediaWiki (SMW) subobject creation intelligently, ensuring data is not duplicated when pages are transcluded.
Storage Logic: Subpage Only
This template uses a conditional check to ensure Semantic Data is physically attached to the **Funding History Subpage**, while semantically linking back to the Main Startup Page.
- **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.
Usage
This template is usually called automatically by the generic Template:Startup/Funding history table.
{{Startup/Funding entry
| investor = Sequoia Capital
| round = Series A
}}
Parameters
| Parameter | Description | Type |
|---|---|---|
| investor | The name of the investor (e.g., Sequoia Capital). | Page Link |
| round | The funding round (e.g., Seed, Series A). | String |