Template:AV device input row: Difference between revisions
Move label to its own line above signal/connector info for better scannability (via update-page on MediaWiki MCP Server) |
Link signal formats, connectors, and audio connectors to wiki pages (via update-page on MediaWiki MCP Server) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{#if:{{{label|}}}|<strong>{{{label}}}</strong><br/>}}{{#if:{{{count|}}}|{{{count}}}× }}{{{signal|}}} ({{{connector|}}}{{#if:{{{audio|}}}|{{#ifeq:{{{audio}}}|None||, {{{audio}}} audio{{#if:{{{audio_connector|}}}| via {{{audio_connector}}}}}}}}}{{#if:{{{audio_shared|}}}|, audio shared w/ {{{audio_shared}}}}}){{#if:{{{notes|}}}|<div style="font-size:0.85em; color:#666; margin-left:1em; margin-top:0.1em;">{{{notes}}}</div>}}< | <includeonly><div style="margin-bottom:0.3em;">{{#if:{{{label|}}}|<strong>{{{label}}}</strong><br/>}}{{#if:{{{count|}}}|{{{count}}}× }}[[{{{signal|}}}]] ([[{{{connector|}}}]]{{#if:{{{audio|}}}|{{#ifeq:{{{audio}}}|None||, {{{audio}}} audio{{#if:{{{audio_connector|}}}| via [[{{{audio_connector|}}}]]}}}}}}{{#if:{{{audio_shared|}}}|, audio shared w/ {{{audio_shared}}}}}){{#if:{{{notes|}}}|<div style="font-size:0.85em; color:#666; margin-left:1em; margin-top:0.1em;">{{{notes}}}</div>}}</div> | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
Helper template used by [[Module:AVDevice]] to format input rows in the infobox. | Helper template used by [[Module:AVDevice]] to format input rows in the infobox. | ||
| Line 7: | Line 7: | ||
* label - Input label (e.g., "GENLOCK", "Line 1") — displayed on its own line above signal info | * label - Input label (e.g., "GENLOCK", "Line 1") — displayed on its own line above signal info | ||
* count - Number of this input type | * count - Number of this input type | ||
* signal - Video signal format | * signal - Video signal format (linked to wiki page) | ||
* connector - Connector type | * connector - Connector type (linked to wiki page) | ||
* audio - Audio type (None, Mono, Stereo) | * audio - Audio type (None, Mono, Stereo) | ||
* audio_connector - Audio connector type | * audio_connector - Audio connector type (linked to wiki page) | ||
* audio_shared - Label of input this shares audio with | * audio_shared - Label of input this shares audio with | ||
* notes - Additional notes about this input | * notes - Additional notes about this input | ||
Latest revision as of 17:35, 10 February 2026
Helper template used by Module:AVDevice to format input rows in the infobox.
Parameters
These are passed automatically by the semantic query:
- label - Input label (e.g., "GENLOCK", "Line 1") — displayed on its own line above signal info
- count - Number of this input type
- signal - Video signal format (linked to wiki page)
- connector - Connector type (linked to wiki page)
- audio - Audio type (None, Mono, Stereo)
- audio_connector - Audio connector type (linked to wiki page)
- audio_shared - Label of input this shares audio with
- notes - Additional notes about this input
Example outputs
GENLOCK 2× Composite (BNC) Y/C In (S-VHS) 1× S-Video (Y/C) (Hirose 7-pin DUB)