Template:CRT input inline: Difference between revisions
Created page with "* {{{Has signal}}} {{#if:{{{Has connector|}}}| ({{{Has connector}}})}} {{#if:{{{Has input count|}}}| ×{{{Has input count}}}}} {{#if:{{{Has input location|}}}| – {{{Has input location}}}}}" Tag: visualeditor-wikitext |
Fix whitespace trimming: use entities for spaces before "via" and before "–" to prevent MediaWiki parser function trimming (via update-page on MediaWiki MCP Server) |
||
| (9 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><span>{{#if:{{{count|}}}|{{#ifeq:{{{count}}}|1||{{{count}}}× }}}}[[{{{signal}}}]]{{#if:{{{connector|}}}|([[{{{connector}}}]])}}{{#if:{{{audio|}}}|{{#ifeq:{{{audio}}}|None||, {{{audio}}} audio{{#if:{{{audio_connector|}}}| via [[{{{audio_connector}}}]]}}}}}}{{#if:{{{audio_shared|}}}|, audio shared w/ {{{audio_shared}}}}}{{#if:{{{location|}}}| – {{{location}}}}}</span></includeonly><noinclude> | |||
This template formats input entries for inline display in the CRT model infobox. | |||
== Parameters == | |||
* '''signal''' - Signal format (e.g., Composite (CVBS), S-Video (Y/C)) | |||
* '''connector''' - Connector type (e.g., RCA (connector), Mini-DIN-4) | |||
* '''count''' - Number of inputs (only shown if > 1) | |||
* '''audio''' - Audio type (None, Mono, Stereo) | |||
* '''audio_connector''' - Audio connector type | |||
* '''audio_shared''' - Label of input this shares audio with | |||
* '''location''' - Location on the unit (rear, front, side, or custom value like "rear/front") | |||
== Example outputs == | |||
* <code>3× Composite (CVBS)(RCA (connector)), Stereo audio via RCA (connector) – rear</code> | |||
* <code>S-Video (Y/C)(Mini-DIN-4), audio shared w/ AV1 – rear</code> | |||
* <code>RF(RF (F-type)) – rear</code> | |||
* <code>3× Composite (CVBS)(RCA (connector)) – rear/front</code> | |||
[[Category:CRT templates]] | |||
</noinclude> | |||
Latest revision as of 04:46, 6 February 2026
This template formats input entries for inline display in the CRT model infobox.
Parameters
- signal - Signal format (e.g., Composite (CVBS), S-Video (Y/C))
- connector - Connector type (e.g., RCA (connector), Mini-DIN-4)
- count - Number of inputs (only shown if > 1)
- audio - Audio type (None, Mono, Stereo)
- audio_connector - Audio connector type
- audio_shared - Label of input this shares audio with
- location - Location on the unit (rear, front, side, or custom value like "rear/front")
Example outputs
3× Composite (CVBS)(RCA (connector)), Stereo audio via RCA (connector) – rearS-Video (Y/C)(Mini-DIN-4), audio shared w/ AV1 – rearRF(RF (F-type)) – rear3× Composite (CVBS)(RCA (connector)) – rear/front