Template:Instrument Sidebar: Difference between revisions

From TekWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(23 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
'''This is the "Instrument" template.'''
'''This is the "Instrument 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. ''
: ''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. ''
: ''Instead, please go back to the instrument's page and edit that.''
: ''Instead, please go back to the instrument's page and edit that.''


This template is for generic instruments.  We have specialized templates based on this one for [[:Template:Oscilloscope Sidebar|Oscilloscopes]], [[:Template:Probe Sidebar|Probes]].  
This template is for generic instruments.  We have specialized templates [[:Template:Oscilloscope Sidebar|Template:Oscilloscope Sidebar]] and [[:Template:Probe Sidebar|Template:Probe Sidebar]] based on this one for the respective product groups. Where applicable, please use these specialized templates instead.
Where applicable, please use these specialized templates instead.


'''This template should be invoked in the following format:'''
{| cellpadding="5"
|-
!This template should be invoked in the following format:
!Example:
|-  valign="top"
|
<pre>{{Instrument Sidebar  
<pre>{{Instrument Sidebar  
|manufacturer=
|manufacturer=
Line 23: Line 27:
}}
}}
</pre>
</pre>
Example:
|
<pre>
<pre>
{{Instrument Sidebar
{{Instrument Sidebar
Line 29: Line 33:
|model=XYZ
|model=XYZ
|class=Oscilloscope
|class=Oscilloscope
|summary=700 MHZ Oscilloscope
|summary=700 MHz Oscilloscope
|image=Picture of XYZ scope.jpg
|image=Picture of XYZ scope.jpg
|caption=Description of the above picture
|caption=Description of the above picture
|series=96000-series scopes
|series=96000-series scopes
|introduced=1996
|introduced=1996
|discontinued=(?)
|designers=John Doe;Alice Bob
|designers=John Doe;Alice Bob
|discontinued=(?)
|manuals=
* [[070-1234-56.pdf|Tektronix XYZ Operator Manual]]
}}
}}
</pre>
</pre>
|}
<code><nowiki>manufacturer=</nowiki></code> should be a page name, <code><nowiki>designers=</nowiki></code> a semicolon-delimited list of page names.  For <code><nowiki>class=</nowiki></code> please align with existing values in the [[Special:CargoTables/Products|Products table]] where applicable.
This 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>.
{{#cargo_attach:
{{#cargo_attach:
_table = Products
_table = Products
}}
}}
Edit the page to see the template text.
 
'''See [[Article templates]] for details on other templates available in TekWiki.'''
</noinclude><includeonly>
</noinclude><includeonly>
<div class="noprint" style="width:265px; max-width:265px; float:right; margin-left: 1em; margin-bottom: 1em; border: 1px #aaaaaa solid; border-collapse: collapse;">
<div class="noprint" style="width:265px; max-width:265px; float:right; margin-left: 1em; margin-bottom: 1em; border: 1px #aaaaaa solid; border-collapse: collapse;">
Line 57: Line 71:
<span id="Manuals" style="font-size:110%; padding-top:3px;">'''Manuals'''</span></div><div style="padding-left: 0.5em;font-size:90%;">
<span id="Manuals" style="font-size:110%; padding-top:3px;">'''Manuals'''</span></div><div style="padding-left: 0.5em;font-size:90%;">
{{{manuals}}}
{{{manuals}}}
</div>[[Category:Introduced in {{{introduced}}}]]
<div style="margin-top:12px;padding-bottom:1px;padding-top:1px;background-color:#F0F0F8;">
:<small>(All manuals in PDF format unless noted otherwise)</small>
</div></div>[[Category:Introduced in {{{introduced}}}]]
|}
|}
</div>
</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>
<div style="background-color:rgb(240,240,255);font-style:italic; padding-left:10px; padding-right: 10px; text-align:center;margin-bottom:12px;">[[#Manuals|Manuals]]&nbsp;&ndash;&nbsp;[[#Key_Specifications|Specifications]]&nbsp;&ndash;&nbsp;[[#Links|Links]]&nbsp;&ndash;&nbsp;[[#Pictures|Pictures]]</div>
{{#if:{{NAMESPACE}}||{{#cargo_store:_table=Products
{{#if:{{NAMESPACE}}||{{#cargo_store:_table=Products
|Manufacturer={{{manufacturer|}}}
|Manufacturer={{{manufacturer|}}}

Latest revision as of 08:08, 15 November 2023

This is the "Instrument 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.
Instead, please go back to the instrument's page and edit that.

This template is for generic instruments. We have specialized templates Template:Oscilloscope Sidebar and Template:Probe Sidebar based on this one for the respective product groups. Where applicable, please use these specialized templates instead.

This template should be invoked in the following format: Example:
{{Instrument Sidebar 
|manufacturer=
|model=
|class=
|series=
|summary=
|image=
|caption=
|introduced=
|discontinued=
|designers=
|manuals=
}}
{{Instrument Sidebar
|manufacturer=Tektronix
|model=XYZ
|class=Oscilloscope
|summary=700 MHz Oscilloscope
|image=Picture of XYZ scope.jpg
|caption=Description of the above picture
|series=96000-series scopes
|introduced=1996
|discontinued=(?)
|designers=John Doe;Alice Bob
|manuals=
* [[070-1234-56.pdf|Tektronix XYZ Operator Manual]]
}}

manufacturer= should be a page name, designers= a semicolon-delimited list of page names. For class= please align with existing values in the Products table where applicable.

This template adds [[Category:Introduced in (year)]] to the article. If the introduction or discontinuation year is unknown, please use (?) in its place, e.g. introduced=(?).

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

See Article templates for details on other templates available in TekWiki.