Difference between revisions of "Template:MWband/doc"

From blackwiki
Jump to navigation Jump to search
imported>Vanisaac
m (→‎With ''name2'' parameter: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
imported>Ketiltrout
(avoid redirect)
 
Line 23: Line 23:
 
| name = Frequency band
 
| name = Frequency band
 
| freq = 75 to 110 [[Hertz|GHz]]
 
| freq = 75 to 110 [[Hertz|GHz]]
| bands = {{hlist |[[V band]] |[[M band]]}}
+
| bands = {{hlist |[[V band]] |[[M band (NATO)|M band]]}}
 
}}
 
}}
 
For example:
 
For example:
Line 30: Line 30:
 
| name = Frequency band
 
| name = Frequency band
 
| freq = 75 to 110 [[Hertz|GHz]]
 
| freq = 75 to 110 [[Hertz|GHz]]
| bands = {{hlist |[[V band]] |[[M band]]}}
+
| bands = {{hlist |[[V band]] |[[M band (NATO)|M band]]}}
 
}}
 
}}
 
</pre>
 
</pre>

Latest revision as of 20:04, 10 May 2020

  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 = 75 to 110 [[Hertz|GHz]]
| bands = {{hlist |[[V band]] |[[M band (NATO)|M band]]}}
}}

If a list (e.g. of bands) consists of more than a couple of items,

{{ublist|class=nowrap |...}}

is likely to produce a more reader-friendly result than

{{hlist(|item_style=white-space:nowrap;) |...}}.

Note: As entries for frequency and wavelength ranges include spaces (between numbers, ndashes, units), these fields do not word/linewrap. If, therefore, a newline/carriage-return is required in one of these fields, use e.g. <br/> or format the field with {{br list}} or {{ublist}}.

With name2 parameter

Frequency band
NATO frequency band
Frequency range
40 – 60 GHz
Related bands
Template:Ublist
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 also used and the template's overall heading is now specified by title rather than name. For example:

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