Template:CRT input inline: Difference between revisions
Fix syntax error in template - proper nested conditionals for location display (via update-page on MediaWiki MCP Server) |
Fix whitespace trimming: use entities for spaces before "via" and before "–" to prevent MediaWiki parser function trimming (via update-page on MediaWiki MCP Server) |
||
| (2 intermediate revisions by the same user 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|}}}| | <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. | This template formats input entries for inline display in the CRT model infobox. | ||
| Line 9: | Line 9: | ||
* '''audio_connector''' - Audio connector type | * '''audio_connector''' - Audio connector type | ||
* '''audio_shared''' - Label of input this shares audio with | * '''audio_shared''' - Label of input this shares audio with | ||
* '''location''' - Location on the unit ( | * '''location''' - Location on the unit (rear, front, side, or custom value like "rear/front") | ||
== Example outputs == | == Example outputs == | ||
* <code>3× Composite (CVBS) (RCA (connector)), Stereo audio via RCA (connector)</code> | * <code>3× Composite (CVBS)(RCA (connector)), Stereo audio via RCA (connector) – rear</code> | ||
* <code>S-Video (Y/C) (Mini-DIN-4), audio shared w/ | * <code>S-Video (Y/C)(Mini-DIN-4), audio shared w/ AV1 – rear</code> | ||
* <code>RF (RF (F-type))</code> | * <code>RF(RF (F-type)) – rear</code> | ||
* <code>3× Composite (CVBS) (RCA (connector)) – | * <code>3× Composite (CVBS)(RCA (connector)) – rear/front</code> | ||
[[Category:CRT templates]] | [[Category:CRT templates]] | ||
</noinclude> | </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