Difference between revisions of "Template:Cpulist"

From blackwiki
Jump to navigation Jump to search
(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|}}}|<ul style="list-style:none; padding:0px; margin:0px"><!--
+
  | {{#if:{{{sspec1|}}}{{{sspec2|}}}{{{sspec3|}}}{{{sspec4|}}}{{{sspec5|}}}{{{sspec6|}}}{{{sspec7|}}}{{{sspec8|}}}{{{sspec|}}}|{{plainlist|<!--
   -->{{#if:{{{sspec1|}}}|<li>{{{sspec1}}}{{#if:{{{step1|}}}|&nbsp;({{{step1}}})}}</li>}}<!--
+
   -->{{#if:{{{sspec1|}}}|* {{{sspec1}}}{{#if:{{{step1|}}}|&nbsp;({{{step1}}})}} }}<!--
   -->{{#if:{{{sspec2|}}}|<li>{{{sspec2}}}{{#if:{{{step2|}}}|&nbsp;({{{step2}}})}}</li>}}<!--
+
   -->{{#if:{{{sspec2|}}}|* {{{sspec2}}}{{#if:{{{step2|}}}|&nbsp;({{{step2}}})}} }}<!--
   -->{{#if:{{{sspec3|}}}|<li>{{{sspec3}}}{{#if:{{{step3|}}}|&nbsp;({{{step3}}})}}</li>}}<!--
+
   -->{{#if:{{{sspec3|}}}|* {{{sspec3}}}{{#if:{{{step3|}}}|&nbsp;({{{step3}}})}} }}<!--
   -->{{#if:{{{sspec4|}}}|<li>{{{sspec4}}}{{#if:{{{step4|}}}|&nbsp;({{{step4}}})}}</li>}}<!--
+
   -->{{#if:{{{sspec4|}}}|* {{{sspec4}}}{{#if:{{{step4|}}}|&nbsp;({{{step4}}})}} }}<!--
   -->{{#if:{{{sspec5|}}}|<li>{{{sspec5}}}{{#if:{{{step5|}}}|&nbsp;({{{step5}}})}}</li>}}<!--
+
   -->{{#if:{{{sspec5|}}}|* {{{sspec5}}}{{#if:{{{step5|}}}|&nbsp;({{{step5}}})}} }}<!--
   -->{{#if:{{{sspec6|}}}|<li>{{{sspec6}}}{{#if:{{{step6|}}}|&nbsp;({{{step6}}})}}</li>}}<!--
+
   -->{{#if:{{{sspec6|}}}|* {{{sspec6}}}{{#if:{{{step6|}}}|&nbsp;({{{step6}}})}} }}<!--
   -->{{#if:{{{sspec7|}}}|<li>{{{sspec7}}}{{#if:{{{step7|}}}|&nbsp;({{{step7}}})}}</li>}}<!--
+
   -->{{#if:{{{sspec7|}}}|* {{{sspec7}}}{{#if:{{{step7|}}}|&nbsp;({{{step7}}})}} }}<!--
   -->{{#if:{{{sspec8|}}}|<li>{{{sspec8}}}{{#if:{{{step8|}}}|&nbsp;({{{step8}}})}}</li>}}<!--
+
   -->{{#if:{{{sspec8|}}}|* {{{sspec8}}}{{#if:{{{step8|}}}|&nbsp;({{{step8}}})}} }}<!--
 
   -->{{#if:{{{sspec|}}}|{{{sspec}}}}}<!--
 
   -->{{#if:{{{sspec|}}}|{{{sspec}}}}}<!--
   --></ul>}}
+
   -->}} }}
 
}}
 
}}
  
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|}}}|<li>{{{tdp1}}} W</li>}}<!--  
+
   -->{{#if:{{{tdp1|}}}|* {{{tdp1}}} W }}<!--  
   -->{{#if:{{{tdp2|}}}|<li>{{{tdp2}}} W</li>}}<!--
+
   -->{{#if:{{{tdp2|}}}|* {{{tdp2}}} W }}<!--
   -->{{#if:{{{tdp3|}}}|<li>{{{tdp3}}} W</li>}}<!--
+
   -->{{#if:{{{tdp3|}}}|* {{{tdp3}}} W }}<!--
   -->{{#if:{{{tdp4|}}}|<li>{{{tdp4}}} W</li>}}<!--
+
   -->{{#if:{{{tdp4|}}}|* {{{tdp4}}} W }}<!--
   -->{{#if:{{{tdp5|}}}|<li>{{{tdp5}}} W</li>}}<!--
+
   -->{{#if:{{{tdp5|}}}|* {{{tdp5}}} W }}<!--
   -->{{#if:{{{tdp6|}}}|<li>{{{tdp6}}} W</li>}}<!--
+
   -->{{#if:{{{tdp6|}}}|* {{{tdp6}}} W }}<!--
   -->{{#if:{{{tdp7|}}}|<li>{{{tdp7}}} W</li>}}<!--
+
   -->{{#if:{{{tdp7|}}}|* {{{tdp7}}} W }}<!--
   -->{{#if:{{{tdp8|}}}|<li>{{{tdp8}}} W</li>}}<!--
+
   -->{{#if:{{{tdp8|}}}|* {{{tdp8}}} W }}<!--
 
   -->{{#if:{{{tdp|}}}|{{{tdp}}} W}}<!--  
 
   -->{{#if:{{{tdp|}}}|{{{tdp}}} W}}<!--  
   --></ul>|{{#switch: {{{2}}}
+
   -->}} |{{#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|}}}|<ul style="list-style:none; padding:0px; margin:0px"><!--
+
|sock = {{#if:{{{sock1|}}}{{{sock2|}}}{{{sock3|}}}{{{sock4|}}}{{{sock5|}}}{{{sock6|}}}{{{sock7|}}}{{{sock8|}}}|{{plainlist|<!--
   -->{{#if:{{{sock1|}}}|<li>{{{sock1}}}</li>}}<!-- when sock1...sock8 are specified show sock1...sock8 and sock
+
   -->{{#if:{{{sock1|}}}|* {{{sock1}}} }}<!-- when sock1...sock8 are specified show sock1...sock8 and sock
   -->{{#if:{{{sock2|}}}|<li>{{{sock2}}}</li>}}<!--
+
   -->{{#if:{{{sock2|}}}|* {{{sock2}}} }}<!--
   -->{{#if:{{{sock3|}}}|<li>{{{sock3}}}</li>}}<!--
+
   -->{{#if:{{{sock3|}}}|* {{{sock3}}} }}<!--
   -->{{#if:{{{sock4|}}}|<li>{{{sock4}}}</li>}}<!--
+
   -->{{#if:{{{sock4|}}}|* {{{sock4}}} }}<!--
   -->{{#if:{{{sock5|}}}|<li>{{{sock5}}}</li>}}<!--
+
   -->{{#if:{{{sock5|}}}|* {{{sock5}}} }}<!--
   -->{{#if:{{{sock6|}}}|<li>{{{sock6}}}</li>}}<!--
+
   -->{{#if:{{{sock6|}}}|* {{{sock6}}} }}<!--
   -->{{#if:{{{sock7|}}}|<li>{{{sock7}}}</li>}}<!--
+
   -->{{#if:{{{sock7|}}}|* {{{sock7}}} }}<!--
   -->{{#if:{{{sock8|}}}|<li>{{{sock8}}}</li>}}<!--
+
   -->{{#if:{{{sock8|}}}|* {{{sock8}}} }}<!--
 
   -->{{#if:{{{sock|}}}|{{{sock}}}}}<!--  otherwise, take a guess with just sock
 
   -->{{#if:{{{sock|}}}|{{{sock}}}}}<!--  otherwise, take a guess with just sock
   --></ul>|{{#switch: {{{2}}}
+
   -->}} |{{#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|}}}|<ul style="list-style:none; padding:0px; margin:0px"><!--
+
  | {{#if:{{{part1|}}}{{{part2|}}}{{{part3|}}}{{{part4|}}}{{{part5|}}}{{{part6|}}}{{{part7|}}}{{{part8|}}}{{{part|}}}|{{plainlist|<!--
   -->{{#if:{{{part1|}}}|<li>{{{part1}}}</li>}}<!--
+
   -->{{#if:{{{part1|}}}|* {{{part1}}} }}<!--
   -->{{#if:{{{part2|}}}|<li>{{{part2}}}</li>}}<!--
+
   -->{{#if:{{{part2|}}}|* {{{part2}}} }}<!--
   -->{{#if:{{{part3|}}}|<li>{{{part3}}}</li>}}<!--
+
   -->{{#if:{{{part3|}}}|* {{{part3}}} }}<!--
   -->{{#if:{{{part4|}}}|<li>{{{part4}}}</li>}}<!--
+
   -->{{#if:{{{part4|}}}|* {{{part4}}} }}<!--
   -->{{#if:{{{part5|}}}|<li>{{{part5}}}</li>}}<!--
+
   -->{{#if:{{{part5|}}}|* {{{part5}}} }}<!--
   -->{{#if:{{{part6|}}}|<li>{{{part6}}}</li>}}<!--
+
   -->{{#if:{{{part6|}}}|* {{{part6}}} }}<!--
   -->{{#if:{{{part7|}}}|<li>{{{part7}}}</li>}}<!--
+
   -->{{#if:{{{part7|}}}|* {{{part7}}} }}<!--
   -->{{#if:{{{part8|}}}|<li>{{{part8}}}</li>}}<!--
+
   -->{{#if:{{{part8|}}}|* {{{part8}}} }}<!--
 
   -->{{#if:{{{part|}}}|{{{part}}}}}<!--
 
   -->{{#if:{{{part|}}}|{{{part}}}}}<!--
   --></ul>}}
+
   -->}} }}
 
}}
 
}}
  

Revision as of 20:30, 20 November 2013

Template documentation[view] [edit] [history] [purge]

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
  • SLBEZ (D0)
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
    80 W
sock = LGA 1366 N/A date = March 30, 2009 part =
  • AT80602000804AA
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 arguments

The first argument to the cpulist template, nehalem in the example, defines the layout of the table. Currently, valid arguments here are

  • lake-e For lists of the (Skylake-SP/F/W/X and Kaby Lake-X) generation of processors, including fields for burst frequency
  • skylake For lists of the Skylake, Kabylake, Coffeelake, etc generation of processors, including GPU field
  • silvermont For lists of the latest (Silvermont/Airmont) generation of low-power processors, including fields for sdp and burst frequency
  • haswell: For lists of the latest (Haswell/Broadwell) generation of processors, showing only the fields that are known to date
  • bridge-e: For lists of the previous (Sandy Bridge/Ivy Bridge) generation of processors, showing only the fields that are known to date
  • bridge: For lists of the previous (Sandy Bridge/Ivy Bridge) generation of processors, showing only the fields that are known to date
  • sandybridge: For lists of the previous Sandy Bridge processors, currently same format as bridge
  • nehalem: For lists of Intel's previous (Nehalem/Westmere) generation of processors, including fields for 'Turbo' mode, L3 cache and Memory Controller
  • nehgfx: like nehalem, but for chips with integrated graphics capability
  • atom: For lists of low-end Atom processors, currently same format as core
  • atomx3: For lists of Atom processors
  • atomgfx: For lists of Atom processors with integrated graphics
  • core: For lists of Intel's previous generation of processors
  • p6: For lists of Intel's p6 generation of processors
  • p5: For lists of Intel's p5 generation of processors

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

  • |anchor=: An arbitrary HTML anchor that can be assigned to an entry
  • |model=: The name of the processor
  • |sspec= or |sspec1=|sspec8=: up to 8 Intel sSpec numbers
    • |step1=|step8=: up to 8 stepping names for the above sSpec numbers
  • |freq=: Core frequency, can often be determined by fsb and mult arguments, in MHz or GHz
  • |uncore=: Uncore frequency, in MHz or GHz
  • |turbo=: Turbo frequencies , as increments in clock multiplier
  • |burst=: Burst frequencies , in GHz
  • |igp=: Model of integrated graphics processor
  • |gfxfreq=: clock frequency of the integrated graphics, if applicable
  • |cores=: number of processor cores
    • |threads=: number of processor threads
  • |l1=: size of the Level 1 Cache, in KB
  • |l2=: size of the Level 2 Cache, in KB or MB
  • |l3=: size of the Level 3 Cache, in MB
  • |iobus=: Type and speed of I/O bus interface, may be expressed as one of
    • |fsb=: performance of Front-side bus in MT/s, if applicable
    • |ht=: performance of Hypertransport in MT/s, if applicable
    • |qpi=: performance of Quickpath interface in MT/s, if applicable
    • |dmi=: set to 1 if Direct media interface is in use
  • |mult=: clock multiplier of fsb or base frequency
  • |mem=: memory interface of integrated memory controller, may be expressed as
    • |memspeed=: data rate of integrated memory controller
  • |volt=: core voltage range, usually given as
    • |vmin=: minimum voltage in volts
    • |vmax=: maximum voltage (optional) in volts
  • |tdp= or |tdp1=|tdp8=: Thermal design power in watts
  • |sdp=: Scenario design power in watts
  • |sock= or |sock1=|sock8=: Socket, one of 1567, 1366, 1156, 775, 771, M, P, 956, 478, 479, 603, 604 or some others
  • |date=: release date
  • |part= or |part1=|part8=: part numbers
  • |price=: price in USD at the time of release

A special argument is

  • |links=: If set to any string, wikilinks are added to various units in the table row, usually this is used in the first row of a table


N/A
sock = N/A date = part = price =

}}