Difference between revisions of "Template:Protocol"

From VideoLAN Wiki
Jump to navigation Jump to search
m (Simplify wikicode)
(Change layout visibly, eliminating unreachable code. I added protocol usage too)
Line 3: Line 3:
 
|id={{{1|??}}}
 
|id={{{1|??}}}
 
|text=<!--
 
|text=<!--
Line 1: -->VLC uses this [[protocol]] (or [[access module]]) to read data from a device or network. {{{info|}}}<!--
+
Line 1:               -->VLC uses this [[protocol]] (or [[access module]]) to read data from a device or network{{#if:{{{mod|{{lc:{{{1|}}}}}}}}|&#32;with '''<code>{{{mod|{{lc:{{{1}}}}}}}}</code><nowiki>://</nowiki></code>'''}}. {{{info|}}}<!--
Line 2: --><br />The [[module]] name to use at the [[command line]] is {{#if:{{{1|}}}|'''{{docmod|{{{mod|{{lc:{{{1}}}}}}}}}}'''|unknown}}<!--
+
Line 2: (conditional) -->{{#if:{{{mod|{{lc:{{{1|}}}}}}}}|<br />This protocol is handled by '''{{docmod|{{{mod|{{lc:{{{1}}}}}}}}}}'''.}}<!--
                -->{{#if:{{{altid|}}}<!--
+
Line 3: (conditional) -->{{#if:{{{altid|}}}<!--
                  -->|, but you can also use '''{{{altid}}}'''<!--
+
                        -->|The [[module]] name to use at the [[command line]] is '''{{{altid}}}'''<!--
                    -->{{#if:{{{altid2|}}}<!--
+
                        -->{{#if:{{{altid2|}}}<!--
                      -->|, or '''{{{altid2}}}'''<!--
+
                          -->|, but you can also use '''{{{altid2}}}'''<!--
                      -->{{#if:{{{altid3|}}}<!--
+
                            -->{{#if:{{{altid3|}}}<!--
                        -->|, or '''{{{altid3}}}'''<!--
+
                              -->|, or '''{{{altid3}}}'''<!--
                          -->{{#if:{{{altid4|}}}<!--
+
                              -->{{#if:{{{altid4|}}}<!--
                            -->|, or '''{{{altid4}}}'''<!--
+
                                -->|, or '''{{{altid4}}}'''<!--
                          -->}}<!--
+
                              -->}}<!--
                      -->}}<!--
+
                            -->}}<!--
                    -->}}<!--
+
                        -->}}.<!--
                -->}}.
+
                      -->}}
 
|bgcol=#ffe0e0
 
|bgcol=#ffe0e0
 
|brcol=#e0c0c0<!--
 
|brcol=#e0c0c0<!--

Revision as of 05:04, 19 April 2019

??
VLC uses this protocol (or access module) to read data from a device or network.

Usage

{{protocol |<protocol> |info= |altid= |altid2= |altid3= |altid4= |mod= }}

It will add it to Category:Protocols

Info is for extra text in the box.

mod will link to a particular module while displaying the <protocol> given. Use this when altid would not make sense.

Examples

Example, http

{{protocol|HTTP|altid=https}}

See also