Template:Probe Sidebar: Difference between revisions

From TekWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<noinclude>'''This is the "Probe" template.'''
<noinclude>
 
This is the "Probe Sidebar" template.
:If you have come here looking to edit the page for a particular instrument, you took a wrong turn – please do not edit this template; please go back to the instrument's page and edit that.
It should be called in the following format:
 
<pre>
'''This template is specific to probes''', and should be invoked in the following format:
{{Probe Sidebar
<pre>{{Probe Sidebar  
|manufacturer=
|manufacturer=
|for=
|type=
|model=
|summary=
|summary=
|image=
|image=
|caption=
|caption=
|for=
|introduced=
|introduced=
|discontinued=
|discontinued=
|manuals=
}}
}}
</pre>
</pre>
Example:
Example:
<pre>
<pre>
{{Probe Sidebar
{{Probe Sidebar
|manufacturer=Tektronix
|manufacturer=Tektronix
|type=XYZ
|summary=Amplifier
|image=Picture of XYZ Plugin.jpg
|caption=Description of the above picture
|for=50 Ω scope inputs
|for=50 Ω scope inputs
|model=XY699
|introduced=1966
|summary=1.4 MHZ wireless probe
|image=Picture of Tek 699 probe.jpg
|caption=Description of the above picture
|series=690-series probes
|introduced=1996
|discontinued=(?)
|discontinued=(?)
|manuals=<nowiki>
* [[Media:070-8765-43.pdf|Tek 699 Manual]] (PDF)
</nowiki>
}}
}}
</pre>
</pre>
<code><nowiki>manufacturer=</nowiki></code> and <code><nowiki>series=</nowiki></code> should be page names, <code><nowiki>designers=</nowiki></code> a semicolon-delimited list of page names.
{{#cargo_attach:
 
_table = Products
The template adds <code><nowiki>[[Category:Introduced in (year)]]</nowiki></code> to the article.
}}
If the introduction or discontinuation year is unknown, please use (?) in its place, e.g. <code><nowiki>introduced=(?)</nowiki></code>.
Edit the page to see the template text.
</noinclude><includeonly><div class="noprint" width="255" style="float:right; margin-left: 1em; margin-bottom: 1em; border: 1px #aaaaaa solid; border-collapse: collapse; max-width:255px;">
{| border="0" cellpadding="2" cellspacing="0"
|-
!colspan=2 style="background-color: rgb(184, 200, 255); font-size: 120%;"|{{{manufacturer}}} {{{type}}}
|-
|
<center>'''{{{summary}}}'''</center>
[[Image:{{{image}}}|thumb|center|220px|{{{caption}}}]]
<center>
'''Compatible with [[{{{series}}}]]'''


</noinclude><includeonly>{{Instrument Sidebar
'''Produced from ''' {{{introduced}}} to {{{discontinued}}}
|manufacturer={{#if: {{{manufacturer}}} | {{{manufacturer}}} | Tektronix}}
</center>
|model={{{model}}}
<div style="background-color:rgb(240,240,255); width: 100%; text-align:center;padding-bottom:3px;">
|class=Probe
<span id="Manuals" style="font-size:110%; padding-top:3px;">'''Manuals'''</span></div><div style="padding-left: 1em;">
|series={{{series}}}
</div><div style="padding-left: 1em;">
|summary={{{summary}}}
{{{manuals}}}
|image={{{image}}}
</div>[[Category:Introduced in {{{introduced}}}]]
|caption={{{caption}}}
|}
|introduced={{{introduced}}}
{{#if:{{NAMESPACE}}||{{#cargo_store:_table=Products
|discontinued={{{discontinued}}}
|Manufacturer={{{manufacturer|}}}
|designers=|manuals={{{manuals}}}
|Model={{{type|}}}
}}</includeonly>
|Class=Probe
|Description={{{summary|}}}
|Series={{{for|}}}
|Introduced={{{introduced|}}}
|Discontinued={{{discontinued|}}}
}}}}
__NOEDITSECTION__
</div>
<div style="background-color:rgb(240,240,255);font-style:italic; width: 50em; text-align:center;margin-bottom:12px;">[[#Manuals|Manuals]]&nbsp;&ndash;&nbsp;[[#Specifications|Specifications]]&nbsp;&ndash;&nbsp;[[#Links|Links]]&nbsp;&ndash;&nbsp;[[#Pictures|Pictures]]</div></includeonly>

Revision as of 10:08, 12 August 2021

This is the "Probe Sidebar" template. It should be called in the following format:

{{Probe Sidebar
|manufacturer=
|type=
|summary=
|image=
|caption=
|for=
|introduced=
|discontinued=
}}

Example:

{{Probe Sidebar
|manufacturer=Tektronix
|type=XYZ
|summary=Amplifier
|image=Picture of XYZ Plugin.jpg
|caption=Description of the above picture
|for=50 Ω scope inputs
|introduced=1966
|discontinued=(?)
}}

This template adds rows to the table "Products", which is declared by the template Product. View table. Edit the page to see the template text.