Template:AV device input row: Difference between revisions
Add notes display (collapsible small text) (via update-page on MediaWiki MCP Server) |
Add label display (bold, before signal info) (via update-page on MediaWiki MCP Server) |
||
| Line 1: | Line 1: | ||
<includeonly>{{#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>}}<br/> | <includeonly>{{#if:{{{label|}}}|'''{{{label}}}''': }}{{#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>}}<br/> | ||
</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 5: | Line 5: | ||
== Parameters == | == Parameters == | ||
These are passed automatically by the semantic query: | These are passed automatically by the semantic query: | ||
* label - Input label (e.g., "GENLOCK", "Line 1") | |||
* count - Number of this input type | * count - Number of this input type | ||
* signal - Video signal format | * signal - Video signal format | ||
| Line 14: | Line 15: | ||
== Example outputs == | == Example outputs == | ||
* <code>'''GENLOCK''': 2× Composite (BNC)</code> | |||
* <code>1× Composite (RCA, Stereo audio via RCA)</code> | * <code>1× Composite (RCA, Stereo audio via RCA)</code> | ||
* <code>S-Video (Mini-DIN-4, audio shared w/ Front)</code> | * <code>S-Video (Mini-DIN-4, audio shared w/ Front)</code> | ||