Difference between revisions of "Template:Cpulist"
(PCIe is official abbreviation) |
imported>Frietjes (try plainlist here to allow for * markup, will revert if this causes a noticeable format change) |
||
| Line 16: | Line 16: | ||
|sspec={{#switch: {{{2}}} | |sspec={{#switch: {{{2}}} | ||
| head = sSpec<br/>number | | head = sSpec<br/>number | ||
| − | | {{#if:{{{sspec1|}}}{{{sspec2|}}}{{{sspec3|}}}{{{sspec4|}}}{{{sspec5|}}}{{{sspec6|}}}{{{sspec7|}}}{{{sspec8|}}}{{{sspec|}}}| | + | | {{#if:{{{sspec1|}}}{{{sspec2|}}}{{{sspec3|}}}{{{sspec4|}}}{{{sspec5|}}}{{{sspec6|}}}{{{sspec7|}}}{{{sspec8|}}}{{{sspec|}}}|{{plainlist|<!-- |
| − | -->{{#if:{{{sspec1|}}}| | + | -->{{#if:{{{sspec1|}}}|* {{{sspec1}}}{{#if:{{{step1|}}}| ({{{step1}}})}} }}<!-- |
| − | -->{{#if:{{{sspec2|}}}| | + | -->{{#if:{{{sspec2|}}}|* {{{sspec2}}}{{#if:{{{step2|}}}| ({{{step2}}})}} }}<!-- |
| − | -->{{#if:{{{sspec3|}}}| | + | -->{{#if:{{{sspec3|}}}|* {{{sspec3}}}{{#if:{{{step3|}}}| ({{{step3}}})}} }}<!-- |
| − | -->{{#if:{{{sspec4|}}}| | + | -->{{#if:{{{sspec4|}}}|* {{{sspec4}}}{{#if:{{{step4|}}}| ({{{step4}}})}} }}<!-- |
| − | -->{{#if:{{{sspec5|}}}| | + | -->{{#if:{{{sspec5|}}}|* {{{sspec5}}}{{#if:{{{step5|}}}| ({{{step5}}})}} }}<!-- |
| − | -->{{#if:{{{sspec6|}}}| | + | -->{{#if:{{{sspec6|}}}|* {{{sspec6}}}{{#if:{{{step6|}}}| ({{{step6}}})}} }}<!-- |
| − | -->{{#if:{{{sspec7|}}}| | + | -->{{#if:{{{sspec7|}}}|* {{{sspec7}}}{{#if:{{{step7|}}}| ({{{step7}}})}} }}<!-- |
| − | -->{{#if:{{{sspec8|}}}| | + | -->{{#if:{{{sspec8|}}}|* {{{sspec8}}}{{#if:{{{step8|}}}| ({{{step8}}})}} }}<!-- |
-->{{#if:{{{sspec|}}}|{{{sspec}}}}}<!-- | -->{{#if:{{{sspec|}}}|{{{sspec}}}}}<!-- | ||
| − | --> | + | -->}} }} |
}} | }} | ||
| Line 390: | Line 390: | ||
|tdp = {{#if:{{{tdp1|}}}{{{tdp2|}}}{{{tdp3|}}}{{{tdp4|}}}{{{tdp5|}}}{{{tdp6|}}}{{{tdp7|}}}{{{tdp8|}}}{{{tdp|}}}|<ul style="list-style:none; padding:0px; margin: 0 0 0 2em"><!-- | |tdp = {{#if:{{{tdp1|}}}{{{tdp2|}}}{{{tdp3|}}}{{{tdp4|}}}{{{tdp5|}}}{{{tdp6|}}}{{{tdp7|}}}{{{tdp8|}}}{{{tdp|}}}|<ul style="list-style:none; padding:0px; margin: 0 0 0 2em"><!-- | ||
| − | -->{{#if:{{{tdp1|}}}| | + | -->{{#if:{{{tdp1|}}}|* {{{tdp1}}} W }}<!-- |
| − | -->{{#if:{{{tdp2|}}}| | + | -->{{#if:{{{tdp2|}}}|* {{{tdp2}}} W }}<!-- |
| − | -->{{#if:{{{tdp3|}}}| | + | -->{{#if:{{{tdp3|}}}|* {{{tdp3}}} W }}<!-- |
| − | -->{{#if:{{{tdp4|}}}| | + | -->{{#if:{{{tdp4|}}}|* {{{tdp4}}} W }}<!-- |
| − | -->{{#if:{{{tdp5|}}}| | + | -->{{#if:{{{tdp5|}}}|* {{{tdp5}}} W }}<!-- |
| − | -->{{#if:{{{tdp6|}}}| | + | -->{{#if:{{{tdp6|}}}|* {{{tdp6}}} W }}<!-- |
| − | -->{{#if:{{{tdp7|}}}| | + | -->{{#if:{{{tdp7|}}}|* {{{tdp7}}} W }}<!-- |
| − | -->{{#if:{{{tdp8|}}}| | + | -->{{#if:{{{tdp8|}}}|* {{{tdp8}}} W }}<!-- |
-->{{#if:{{{tdp|}}}|{{{tdp}}} W}}<!-- | -->{{#if:{{{tdp|}}}|{{{tdp}}} W}}<!-- | ||
| − | --> | + | -->}} |{{#switch: {{{2}}} |
| head = [[Thermal design power|TDP]] | | head = [[Thermal design power|TDP]] | ||
| lynnfield = {{{tdp|95}}} W | | lynnfield = {{{tdp|95}}} W | ||
| Line 426: | Line 426: | ||
}} | }} | ||
| − | |sock = {{#if:{{{sock1|}}}{{{sock2|}}}{{{sock3|}}}{{{sock4|}}}{{{sock5|}}}{{{sock6|}}}{{{sock7|}}}{{{sock8|}}}| | + | |sock = {{#if:{{{sock1|}}}{{{sock2|}}}{{{sock3|}}}{{{sock4|}}}{{{sock5|}}}{{{sock6|}}}{{{sock7|}}}{{{sock8|}}}|{{plainlist|<!-- |
| − | -->{{#if:{{{sock1|}}}| | + | -->{{#if:{{{sock1|}}}|* {{{sock1}}} }}<!-- when sock1...sock8 are specified show sock1...sock8 and sock |
| − | -->{{#if:{{{sock2|}}}| | + | -->{{#if:{{{sock2|}}}|* {{{sock2}}} }}<!-- |
| − | -->{{#if:{{{sock3|}}}| | + | -->{{#if:{{{sock3|}}}|* {{{sock3}}} }}<!-- |
| − | -->{{#if:{{{sock4|}}}| | + | -->{{#if:{{{sock4|}}}|* {{{sock4}}} }}<!-- |
| − | -->{{#if:{{{sock5|}}}| | + | -->{{#if:{{{sock5|}}}|* {{{sock5}}} }}<!-- |
| − | -->{{#if:{{{sock6|}}}| | + | -->{{#if:{{{sock6|}}}|* {{{sock6}}} }}<!-- |
| − | -->{{#if:{{{sock7|}}}| | + | -->{{#if:{{{sock7|}}}|* {{{sock7}}} }}<!-- |
| − | -->{{#if:{{{sock8|}}}| | + | -->{{#if:{{{sock8|}}}|* {{{sock8}}} }}<!-- |
-->{{#if:{{{sock|}}}|{{{sock}}}}}<!-- otherwise, take a guess with just sock | -->{{#if:{{{sock|}}}|{{{sock}}}}}<!-- otherwise, take a guess with just sock | ||
| − | --> | + | -->}} |{{#switch: {{{2}}} |
| head = [[CPU socket|Socket]] | | head = [[CPU socket|Socket]] | ||
| haswell = {{#switch: {{{sock}}} | | haswell = {{#switch: {{{sock}}} | ||
| Line 568: | Line 568: | ||
|part = {{#switch: {{{2}}} | |part = {{#switch: {{{2}}} | ||
| head = Part<br/>number(s) | | head = Part<br/>number(s) | ||
| − | | {{#if:{{{part1|}}}{{{part2|}}}{{{part3|}}}{{{part4|}}}{{{part5|}}}{{{part6|}}}{{{part7|}}}{{{part8|}}}{{{part|}}}| | + | | {{#if:{{{part1|}}}{{{part2|}}}{{{part3|}}}{{{part4|}}}{{{part5|}}}{{{part6|}}}{{{part7|}}}{{{part8|}}}{{{part|}}}|{{plainlist|<!-- |
| − | -->{{#if:{{{part1|}}}| | + | -->{{#if:{{{part1|}}}|* {{{part1}}} }}<!-- |
| − | -->{{#if:{{{part2|}}}| | + | -->{{#if:{{{part2|}}}|* {{{part2}}} }}<!-- |
| − | -->{{#if:{{{part3|}}}| | + | -->{{#if:{{{part3|}}}|* {{{part3}}} }}<!-- |
| − | -->{{#if:{{{part4|}}}| | + | -->{{#if:{{{part4|}}}|* {{{part4}}} }}<!-- |
| − | -->{{#if:{{{part5|}}}| | + | -->{{#if:{{{part5|}}}|* {{{part5}}} }}<!-- |
| − | -->{{#if:{{{part6|}}}| | + | -->{{#if:{{{part6|}}}|* {{{part6}}} }}<!-- |
| − | -->{{#if:{{{part7|}}}| | + | -->{{#if:{{{part7|}}}|* {{{part7}}} }}<!-- |
| − | -->{{#if:{{{part8|}}}| | + | -->{{#if:{{{part8|}}}|* {{{part8}}} }}<!-- |
-->{{#if:{{{part|}}}|{{{part}}}}}<!-- | -->{{#if:{{{part|}}}|{{{part}}}}}<!-- | ||
| − | --> | + | -->}} }} |
}} | }} | ||
Revision as of 20:30, 20 November 2013
cpulist is a template for maintaining lists of microprocessors with separate content and markup. Please help to convert the lists of microprocessors from Template:Intel processors to this template, in order to give them all a consistent appearance.
As a simple example,
{{cpulist|nehalem|head}}
{{cpulist|nehalem|gainestown|model=Xeon E5502
|l3=4|qpi=4.8|mult=14|memspeed=800|vmin=0.75|vmax=1.35|tdp=80|date=March 30, 2009|price=$188|links=1
|sspec1=SLBEZ|step1=D0|part1=AT80602000804AA}}
{{cpulist|nehalem|end}}
results in a table like
| Model number |
sSpec number |
Frequency | Turbo | Cores | L2 cache |
L3 cache |
I/O bus | Mult. | Memory | Voltage | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| sock = Socket | gfxmodel = GPU model |
date = Release date | part = Part number(s) |
price = Release price (USD) }}
|
Xeon E5502 |
|
1.87 GHz | N/A | 4 | 4 × 256 KB | 4 MB | 2 × 4.8 GT/s QPI | 14× | 3 × DDR3-800 | 0.75–1.35 V |
|
|||||
| sock = LGA 1366 | N/A | date = March 30, 2009 | part =
|
price = $188
}}
|
N/A | ||||||||||||||||
| sock = | N/A | date = | part = | price =
}} Making changes to the cpulist template affects all articles using it, see Special:WhatLinksHere/Template:Cpulist for a list. Here is the list of cpulist sub-templates: Template argumentsThe first argument to the cpulist template, nehalem in the example, defines the layout of the table. Currently, valid arguments here are
The second argument is the type of processor, defining default contents for many fields that are identical throughout a series of processors. This argument is optional, valid arguments are currently:
Other arguments are
A special argument is
|
N/A | ||||||||||||||||
| sock = | N/A | date = | part = | price =
}} |