Template:CRT input inline: Difference between revisions
No edit summary |
Fix whitespace trimming: use entities for spaces before "via" and before "–" to prevent MediaWiki parser function trimming (via update-page on MediaWiki MCP Server) |
||
| (7 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><span>{{{signal}}}{{#if:{{{connector|}}}| ({{{connector}}})}}{{#if:{{{ | <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> | |||