Jump to content

Template:Resource highlight card

From HopperWiki
[[File:{{{icon}}}|frameless|link={{{title}}}]]
[[{{{title}}}|{{{title}}}]]

{{{desc}}}

[[{{{title}}}|{{{cta_text}}}]]

Usage

Produces one horizontal image-left/text-right resource card: an icon on the left, a small eyebrow label, a linked title, body text, and a call-to-action link on the right. Place one or more of these inside a {{Resource highlight stack}} wrapper -- see Template:Resource highlight stack for a full example, or Resource navigation for a live one.

{{Resource highlight card
|icon=Instructional guides icon.png
|eyebrow=Learn a task
|title=Instructional guides
|title_link=Guide
|desc=Instructional guides are structured resources that help people learn, follow, or perform a task.

They include [[control manuals]], [[Guideline|guidelines]], and [[Field guide|field guides]].
|cta_text=View the full list of guides on HopperWiki here.
}}

Parameters

  • icon -- required. The uploaded icon file's name, e.g. Instructional guides icon.png (no File: prefix, and no size needed -- the card sizes it automatically to fit the card's height).
  • eyebrow -- optional. A short kicker line above the title, e.g. "Learn a task". Leave this parameter out entirely to omit it.
  • title -- required. The card's heading text.
  • title_link -- optional. The page the title (and the icon) should link to. Defaults to the same text as title if left out.
  • desc -- required. The card's body text. Write it exactly like normal article text -- one paragraph, or several separated by a blank line -- and normal [[links]] work inside it.
  • cta_text -- required. The call-to-action link text at the bottom of the card, e.g. "View the full list of guides on HopperWiki here." Put any trailing period inside this text, not after the template call -- the card automatically adds a small arrow right after whatever you type here, so a period placed outside the template call will land after the arrow and look wrong.
  • cta_link -- optional. Where the call-to-action links to. Defaults to title_link (or title) if left out.
  • icon_link -- optional. Where clicking the icon goes. Defaults to title_link (or title) if left out.
  • id -- optional. An anchor ID so other pages can link straight to this card (e.g. Resource navigation#Media). Defaults to an auto-generated version of title if left out.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.