Template:Species call
This template renders the "Call" section as one connected card -- a collapsible hearing-safety warning fused directly to a captioned, credited audio player -- instead of
and
sitting stacked as separate, disconnected pieces.===
How to use it
On a species page, replaces this:
{{Hearing safety warning}}
{{Audio player}}
with this:
{{Species call|title=Male advertisement call|attribution=Recording courtesy of the Pasch Lab (Kobrina et al. 2022).}}
Same file/width defaults and overrides as
: file defaults to {{PAGENAME}}.opus, width falls through to the widget's own default. title and attribution are both optional -- omit either for no caption / no credit line. attribution is plain wikitext, so it can carry italics, links, or a citation.
{{Species call|title=Alarm call|attribution=See Riede et al. (2023).|file=Some other file.opus|width=350px}}
The warning starts collapsed and expands on click -- see MediaWiki:Common.css (whisker-call-card / whisker-call-warning / whisker-audio-player-wrapper / whisker-audio-attribution classes) and MediaWiki:Common.js (the click handler that toggles .whisker-call-warning's is-open class) for the implementation. The warning text itself is duplicated here rather than reusing
/Module:Message_box, since that module always renders its own fixed box markup with no compact/collapsible mode -- this template needs different markup around the same message, not the same markup.
