Jump to content

Template:OTW Hero: Difference between revisions

From OnTrackWorld
Import from live site
 
No edit summary
 
Line 21: Line 21:
* '''cta_target''' (optional, default "#open-inquiries"): page or anchor the primary button links to
* '''cta_target''' (optional, default "#open-inquiries"): page or anchor the primary button links to
* '''secondary_label''' (optional, default "See how it works"): text for the plain secondary button
* '''secondary_label''' (optional, default "See how it works"): text for the plain secondary button
* '''secondary_target''' (optional, default "OTNA Curriculum"): page the secondary button links to. Set it to an empty value (<code><nowiki>|secondary_target=</nowiki></code>) to omit the secondary button entirely
* '''secondary_target''' (optional, default "OTW Curriculum"): page the secondary button links to. Set it to an empty value (<code><nowiki>|secondary_target=</nowiki></code>) to omit the secondary button entirely
* '''aside_title''' (optional, default "Right now"): heading of the stat box
* '''aside_title''' (optional, default "Right now"): heading of the stat box
* '''stats''' (optional): one or more [[Template:OTW Stat|OTW Stat]] calls, one per line — see that template for how to add or remove a stat line
* '''stats''' (optional): one or more [[Template:OTW Stat|OTW Stat]] calls, one per line — see that template for how to add or remove a stat line

Latest revision as of 14:53, 16 September 2026

Top hero section of the Welcome to OnTrackWorld: kicker line, heading, lede paragraph, one or two call-to-action buttons, and the "Right now" stat aside.

Parameters:

  • kicker (optional): small text above the heading, e.g. "Canada · United States · Mexico"
  • heading (required): the main heading, rendered as a level-1 heading
  • lede (optional): the paragraph under the heading
  • cta_label (optional, default "Join an open inquiry"): text for the primary button
  • cta_target (optional, default "#open-inquiries"): page or anchor the primary button links to
  • secondary_label (optional, default "See how it works"): text for the plain secondary button
  • secondary_target (optional, default "OTW Curriculum"): page the secondary button links to. Set it to an empty value (|secondary_target=) to omit the secondary button entirely
  • aside_title (optional, default "Right now"): heading of the stat box
  • stats (optional): one or more OTW Stat calls, one per line — see that template for how to add or remove a stat line
  • aside_foot (optional): small text/links under the stat box

The spec this template was built from only listed a single CTA; the source page actually has two buttons (a primary "Join" button and a plain "See how it works" link), so secondary_label/secondary_target were added to keep the visual output identical.

Example:

{{OTW Hero
|kicker=Canada · United States · Mexico
|heading=Where stakeholders think, plan, and act together on the industrial systems that shape a continent.
|lede=Our industrial systems are not optimized for sustainability or profitability.
|stats={{OTW Stat|num=4|text=open inquiries taking responses}}
{{OTW Stat|num=TBD|text=participating stakeholders this round}}
{{OTW Stat|text=Next live session: '''TBA'''}}
|aside_foot=[[#recent-activity|Recent activity]] · [[Participation Options|Ways to take part]]
}}