Difference between revisions of "Template:MWband"
imported>Sardanaphalus (includeonly (examples handled by /doc)) |
imported>Sardanaphalus (copy-paste error) |
||
| Line 1: | Line 1: | ||
<includeonly><table style="background:transparent; float:right;"> | <includeonly><table style="background:transparent; float:right;"> | ||
| − | {{#if:{{{freq | + | {{#if:{{{freq|}}} |
| <tr><td> | | <tr><td> | ||
{{Infobox | {{Infobox | ||
| Line 6: | Line 6: | ||
| bodystyle = width:100%; | | bodystyle = width:100%; | ||
| title = <span class="fn">{{#if: | | title = <span class="fn">{{#if: | ||
| − | {{{name2 | + | {{{name2|}}} |
| − | | {{{title | + | | {{{title|{{PAGENAME}}}}} |
| − | | {{{name | + | | {{{name|{{PAGENAME}}}}} |
}}</span> | }}</span> | ||
| titleclass = fn | | titleclass = fn | ||
| header1 ={{#if: | | header1 ={{#if: | ||
| − | {{{name2 | + | {{{name2|}}} |
| − | | {{{name | + | | {{{name|}}} |
}} | }} | ||
| label2 = {{{freq_title|Frequency range}}} | | label2 = {{{freq_title|Frequency range}}} | ||
| − | | data2 = {{{freq | + | | data2 = {{{freq|}}} |
| label3 = {{{wl_title|Wavelength range}}} | | label3 = {{{wl_title|Wavelength range}}} | ||
| − | | data3 = {{{wave | + | | data3 = {{{wave|}}} |
| label4 = {{{rb_title|Related bands}}} | | label4 = {{{rb_title|Related bands}}} | ||
| − | | data4 = {{{bands | + | | data4 = {{{bands|}}} |
| − | | header5 = {{{name2 | + | | header5 = {{{name2|}}} |
| label6 = {{{freq2_title|Frequency range}}} | | label6 = {{{freq2_title|Frequency range}}} | ||
| − | | data6 = {{{freq2 | + | | data6 = {{{freq2|}}} |
| label7 = {{{wl2_title|Wavelength range}}} | | label7 = {{{wl2_title|Wavelength range}}} | ||
| − | | data7 = {{{wave2 | + | | data7 = {{{wave2|}}} |
| label8 = {{{rb2_title|Related bands}}} | | label8 = {{{rb2_title|Related bands}}} | ||
| − | | data8 = {{{bands2 | + | | data8 = {{{bands2|}}} |
}}</td></tr> | }}</td></tr> | ||
}}<tr><td> | }}<tr><td> | ||
Revision as of 21:01, 23 December 2014
- 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
| ||||||||||
|
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
| ||||||||||||
|
||||||||||||
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)}}
}}
| The above documentation is transcluded from Template:MWband/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |