Template:AV device output row: Difference between revisions

Create helper template for formatting output rows in AV device infobox (via create-page on MediaWiki MCP Server)
 
Link signal formats and connectors to wiki pages (via update-page on MediaWiki MCP Server)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{Has output count|}}}|{{{Has output count}}}× }}{{{Has output signal format|}}} ({{{Has output connector|}}}){{#if:{{{Has output location|}}}|, {{{Has output location|}}}|}}<br/></includeonly><noinclude>
<includeonly><div style="margin-bottom:0.3em;">{{#if:{{{label|}}}|<strong>{{{label}}}</strong><br/>}}{{#if:{{{count|}}}|{{{count}}}× }}[[{{{signal|}}}]] ([[{{{connector|}}}]]){{#if:{{{notes|}}}|<div style="font-size:0.85em; color:#666; margin-left:1em; margin-top:0.1em;">{{{notes}}}</div>}}</div>
</includeonly><noinclude>
Helper template used by [[Module:AVDevice]] to format output rows in the infobox.
Helper template used by [[Module:AVDevice]] to format output rows in the infobox.


== Parameters ==
== Parameters ==
These are passed automatically by the semantic query:
These are passed automatically by the semantic query:
* Has output count
* label - Output label (e.g., "REF BB", "Monitor Out") — displayed on its own line above signal info
* Has output signal format
* count - Number of this output type
* Has output connector
* signal - Signal format (linked to wiki page)
* Has output location
* connector - Connector type (linked to wiki page)
* notes - Additional notes about this output
 
== Example outputs ==
<pre>
REF BB
Composite (CVBS) (BNC)
 
Composite Out
2× Composite (CVBS) (RCA)
</pre>


[[Category:AV device templates]]
[[Category:AV device templates]]
</noinclude>
</noinclude>
MediaWiki Appliance - Powered by TurnKey Linux