Difference between revisions of "Template:MWband/doc"

From blackwiki
Jump to navigation Jump to search
imported>Sardanaphalus
imported>Sardanaphalus
(example template positioning, formatting updates)
Line 13: Line 13:
  
 
===With parameters===
 
===With parameters===
For example:
 
 
{{MWband
 
{{MWband
| name = Frequency band
+
| name = Frequency band
| freq = 75 to 110 [[Hertz|GHz]]
+
| freq = {{nowrap|75 to 110 [[Hertz|GHz]]}}
 
| bands = {{hlist |[[V band]] |[[M band]]}}
 
| bands = {{hlist |[[V band]] |[[M band]]}}
 
}}
 
}}
 +
For example:
 
<pre>
 
<pre>
 
{{MWband
 
{{MWband
 
| name = Frequency band
 
| name = Frequency band
| freq = 75 to 110&nbsp;[[Hertz|GHz]]
+
| freq = {{nowrap|75 to 110 [[Hertz|GHz]]}}
 
| bands = {{hlist |[[V band]] |[[M band]]}}
 
| bands = {{hlist |[[V band]] |[[M band]]}}
 
}}
 
}}
Line 32: Line 32:
  
 
===With ''name2'' parameter===
 
===With ''name2'' parameter===
If the {{mono|name2}} parameter is passed, the second set of parameters is used. Also, the infobox title is now specified by {{mono|title}} rather than by {{mono|name}}. For example:
 
 
{{MWband
 
{{MWband
 
| title = Frequency band
 
| title = Frequency band
 
| name = NATO frequency band
 
| name = NATO frequency band
| freq = 40–60&nbsp;[[Hertz|GHz]]
+
| freq = {{nowrap|40 – 60 [[Hertz|GHz]]}}
 
| bands = {{hlist |[[V band]]&nbsp;(IEEE) |[[Extremely high frequency|EHF]]&nbsp;(ITU)}}
 
| bands = {{hlist |[[V band]]&nbsp;(IEEE) |[[Extremely high frequency|EHF]]&nbsp;(ITU)}}
 
| name2 = IEEE frequency band
 
| name2 = IEEE frequency band
| freq2 = 1–2&nbsp;GHz
+
| freq2 = 1 – 2 GHz
 
| bands2 = {{ublist |[[D band]]&nbsp;(NATO) |[[Super high frequency|SHF]]&nbsp;(ITU)}}
 
| bands2 = {{ublist |[[D band]]&nbsp;(NATO) |[[Super high frequency|SHF]]&nbsp;(ITU)}}
 
}}
 
}}
 +
If the {{mono|name2}} parameter is passed, the second set of parameters is used. Also, the infobox title is now specified by {{mono|title}} rather than by {{mono|name}}. For example:
 
<pre>
 
<pre>
 
{{MWband
 
{{MWband
 
| title = Frequency band
 
| title = Frequency band
 
| name = NATO frequency band
 
| name = NATO frequency band
| freq = 40–60&nbsp;[[Hertz|GHz]]
+
| freq = {{nowrap|40 – 60 [[Hertz|GHz]]}}
| bands = {{hlist |[[V band]]&amp;nbsp;(IEEE) |[[Extremely high frequency|EHF]]&amp;nbsp;(ITU)}}
+
| bands = {{hlist |[[V band]]&nbsp;(IEEE) |[[Extremely high frequency|EHF]]&nbsp;(ITU)}}
 
| name2 = IEEE frequency band
 
| name2 = IEEE frequency band
| freq2 = 1–2&nbsp;GHz
+
| freq2 = 1 – 2 GHz
 
| bands2 = {{ublist |[[D band]]&amp;nbsp;(NATO) |[[Super high frequency|SHF]]&amp;nbsp;(ITU)}}
 
| bands2 = {{ublist |[[D band]]&amp;nbsp;(NATO) |[[Super high frequency|SHF]]&amp;nbsp;(ITU)}}
 
}}
 
}}

Revision as of 02:20, 24 December 2014

  1. redirect Template:Parameter names example

Usage

Without parameters

For the sake of backward compatibility, the upper infobox opposite only appears if |freq= is passed. If freq is not passed, only the lower radio-bands sidebar will be shown.

With parameters

Frequency band
Frequency range
75 to 110 GHz
Related bands

Template:Radio bands sidebar For example:

{{MWband
| name = Frequency band
| freq = {{nowrap|75 to 110 [[Hertz|GHz]]}}
| bands = {{hlist |[[V band]] |[[M band]]}}
}}

If a list (e.g. of bands) consists of more than a couple of items, {{ublist}} is likely to produce a more reader-friendly result than {{hlist}}.

With name2 parameter

Frequency band
NATO frequency band
Frequency range
40 – 60 GHz
Related bands
IEEE frequency band
Frequency range
1 – 2 GHz
Related bands
Template:Ublist

Template:Radio bands sidebar If the name2 parameter is passed, the second set of parameters is used. Also, the infobox title is now specified by title rather than by name. For example:

{{MWband
| title = Frequency band
| name = NATO frequency band
| freq = {{nowrap|40 – 60 [[Hertz|GHz]]}}
| bands = {{hlist |[[V band]] (IEEE) |[[Extremely high frequency|EHF]] (ITU)}}
| name2 = IEEE frequency band
| freq2 = 1 – 2 GHz
| bands2 = {{ublist |[[D band]]&nbsp;(NATO) |[[Super high frequency|SHF]]&nbsp;(ITU)}}
}}