Difference between revisions of "Template:MWband/doc"

From blackwiki
Jump to navigation Jump to search
imported>Sardanaphalus
(example template positioning, formatting updates)
imported>Sardanaphalus
(expanded Generic template demo)
Line 2: Line 2:
 
<!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE -->
 
<!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE -->
 
{{Generic template demo
 
{{Generic template demo
  |name <!--|name2 |title--> |freq |wave |bands <!--|freq2 |wave2 |bands2-->
+
|_display=italics
 +
  |name |name2=(''name2'') |title=''name''<br/>{{smaller|{{nobold|(or}} ''title''{{nobold|)}}}}
 +
|freq_title=Frequency range<br/>{{nobold|(or ''freq_title'')}} |freq  
 +
|wl_title=Wavelength range<br/>{{nobold|(or ''wl_title'')}} |wave
 +
|rb_title=Related bands<br/>{{nobold|(or ''rb_title'')}} |bands
 +
|freq2_title=Frequency range<br/>{{nobold|(or ''freq2_title'')}} |freq2=(''freq2'')
 +
|wl2_title=Wavelength range<br/>{{nobold|(or ''wl2_title'')}} |wave2=(''wave2'')
 +
|rb2_title=Related bands<br/>{{nobold|(or ''rb2_title'')}} |bands2=(''bands2'')
 
}}
 
}}
  

Revision as of 12:30, 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)}}
}}