Template:Instrument Sidebar: Difference between revisions

From TekWiki
Jump to navigation Jump to search
No edit summary
No edit summary
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude><pre>{{Instrument Sidebar |
<noinclude>
manufacturer={{{manufacturer}}} |
'''This is the "Instrument Sidebar" template.'''
model={{{model}}} |
 
summary={{{summary}}} |
: ''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. ''
image={{{image}}} |
: ''Instead, please go back to the instrument's page and edit that.''
caption={{{caption}}} |
 
introduced={{{introduced}}} |
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.
discontinued={{{discontinued}}} |
 
manuals={{{manuals}}}
{| cellpadding="5"
|-
!This template should be invoked in the following format:
!Example:
|-  valign="top"
|
<pre>{{Instrument Sidebar  
|manufacturer=
|model=
|class=
|series=
|summary=
|image=
|caption=
|introduced=
|discontinued=
|designers=
|manuals=
}}
</pre>
|
<pre>
{{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]] (PDF)
}}
}}
</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
}}
}}
</pre>
 
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 21: Line 63:
|-
|-
|
|
<center>'''{{{summary}}}'''</center>
<center><span style="text-transform:capitalize;font-weight:bold;">{{{summary}}}</span></center>
[[Image:{{{image}}}|thumb|center|250px|{{{caption}}}]]
[[Image:{{{image}}}|thumb|center|250px|{{{caption}}}]]
<center>
<center>
Line 27: Line 69:
</center>
</center>
<div style="background-color:rgb(240,240,255); width: 100%; text-align:center;padding-bottom:3px;">
<div style="background-color:rgb(240,240,255); width: 100%; text-align:center;padding-bottom:3px;">
<span id="Manuals" style="font-size:110%; padding-top:3px;">'''Manuals'''</span></div><div style="padding-left: 1em;">
<span id="Manuals" style="font-size:110%; padding-top:3px;">'''Manuals'''</span></div><div style="padding-left: 0.5em;font-size:90%;">
{{{manuals}}}
{{{manuals}}}
:<small>(All files in PDF format unless noted otherwise)</small>
</div>[[Category:Introduced in {{{introduced}}}]]
</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; 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>
{{#cargo_store:_table=Products
{{#if:{{NAMESPACE}}||{{#cargo_store:_table=Products
|Manufacturer={{{Manufacturer|}}}
|Manufacturer={{{manufacturer|}}}
|Model={{{Model|}}}
|Model={{{model|}}}
|Class={{{Class|}}}
|Class={{{class|}}}
|Description={{{Description|}}}
|Description={{{summary|}}}
|Series={{{Series|}}}
|Series={{{series|}}}
|Affiliations={{{Affiliations|}}}
|Introduced={{{introduced|}}}
|Introduced={{{Introduced|}}}
|Discontinued={{{discontinued|}}}
|Discontinued={{{Discontinued|}}}
|Designers={{{designers|}}}
}}</includeonly>
}}}}</includeonly>

Revision as of 02:50, 23 October 2021

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]] (PDF)
}}

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.