Difference between revisions of "Template:Infobox CPU"

From blackwiki
Jump to navigation Jump to search
imported>W like wiki
m (variants separate)
imported>W like wiki
(such a long infobox grouped with headers)
Line 3: Line 3:
 
| image  = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=frameless|alt={{{alt|}}}}}
 
| image  = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=frameless|alt={{{alt|}}}}}
 
| caption = {{{caption|}}}
 
| caption = {{{caption|}}}
| label1 = Produced
+
| header1 = {{ #if: {{{produced-end|}}}{{{produced-start|}}}{{{created|}}}{{{soldby|}}}{{{designfirm|}}}{{{manuf1|}}}{{{cpuid|}}}{{{code|}}} | General Info }}
| data1   = {{#if:{{{produced-end|}}}|From {{{produced-start}}} to {{{produced-end}}}|{{{produced-start|}}}}}
+
| label2 = Produced
| label2 = Introduced
+
| data2   = {{#if:{{{produced-end|}}}|From {{{produced-start}}} to {{{produced-end}}}|{{{produced-start|}}}}}
| data2   = {{{created|}}}
+
| label3 = Introduced
| label3 = Marketed by
+
| data3   = {{{created|}}}
| data3   = {{{soldby|}}}
+
| label4 = Marketed by
| label4 = Designed by
+
| data4   = {{{soldby|}}}
| data4   = {{{designfirm|}}}
+
| label5 = Designed by
| label5 = Common manufacturer(s)
+
| data5   = {{{designfirm|}}}
| data5   = {{unbulleted list
+
| label6 = Common manufacturer(s)
 +
| data6   = {{unbulleted list
 
| {{{manuf1|}}}
 
| {{{manuf1|}}}
 
| {{{manuf2|}}}
 
| {{{manuf2|}}}
Line 19: Line 20:
 
| {{{manuf5|}}}
 
| {{{manuf5|}}}
 
}}  
 
}}  
| label10 = Application
 
| data10  = {{{application|}}}
 
 
| label11 = [[CPUID]] code
 
| label11 = [[CPUID]] code
 
| data11  = {{{cpuid|}}}
 
| data11  = {{{cpuid|}}}
 
| label12 = Product code
 
| label12 = Product code
 
| data12  = {{{code|}}}
 
| data12  = {{{code|}}}
 +
| header19 = {{ #if: {{{clock|}}}{{{slowest|}}}{{{fsb|}}}{{{fsb-slowest|}}}{{{hypertransport-slowest|}}}{{{qpi-slowest|}}}{{{dmi-slowest|}}}{{{data-width|}}}{{{address-width|}}}{{{virtual-width|}}} | Performance }}
 
| label20 = Max. [[Central processing unit|CPU]] [[clock rate]]
 
| label20 = Max. [[Central processing unit|CPU]] [[clock rate]]
 
| data20  = {{#if:{{{clock|}}}|{{{clock}}}<!--some pages still using this old parameter-->|{{#if:{{{slowest|}}}|{{{slowest}}}&nbsp;{{{slow-unit|GHz}}}}} {{#if:{{{fastest|}}}| to {{{fastest}}}&nbsp;{{{fast-unit|GHz}}}}}}}
 
| data20  = {{#if:{{{clock|}}}|{{{clock}}}<!--some pages still using this old parameter-->|{{#if:{{{slowest|}}}|{{{slowest}}}&nbsp;{{{slow-unit|GHz}}}}} {{#if:{{{fastest|}}}| to {{{fastest}}}&nbsp;{{{fast-unit|GHz}}}}}}}
Line 41: Line 41:
 
| label27 = Virtual address width
 
| label27 = Virtual address width
 
| data27  = {{{virtual-width|}}}
 
| data27  = {{{virtual-width|}}}
 +
| header29 = {{ #if: {{{l1cache|}}}{{{l2cache|}}}{{{l3cache|}}}{{{l4cache|}}}{{{llcache|}}} | Cache }}
 
| label30 = L1 [[CPU cache|cache]]
 
| label30 = L1 [[CPU cache|cache]]
 
| data30  = {{{l1cache|}}}
 
| data30  = {{{l1cache|}}}
Line 51: Line 52:
 
| label34 = Last level cache
 
| label34 = Last level cache
 
| data34  = {{{llcache|}}}
 
| data34  = {{{llcache|}}}
 +
| header38 = {{ #if: {{{application|}}}{{{size-from|}}}{{{microarch|}}}{{{arch|}}}{{{arch1|}}}{{{instructions|}}}{{{extensions|}}}{{{extensions1|}}} | Architecture and classification }}
 +
| label39 = Application
 +
| data39  = {{{application|}}}
 
| label40 = [[Minimum feature size|Min. feature size]]
 
| label40 = [[Minimum feature size|Min. feature size]]
 
| data40  = {{#if:{{{size-from|}}}|{{{size-from|}}} {{#if:{{{size-to|}}}| to {{{size-to}}}}}}}
 
| data40  = {{#if:{{{size-from|}}}|{{{size-from|}}} {{#if:{{{size-to|}}}| to {{{size-to}}}}}}}
Line 69: Line 73:
 
| {{{extensions3|}}}
 
| {{{extensions3|}}}
 
}}
 
}}
 +
| header49 = {{ #if: {{{transistors|}}}{{{transistors1|}}}{{{numcores|}}}{{{cores|}}}{{{cores1|}}}{{{gpu|}}}{{{co-processor|}}}{{{pack1|}}}{{{socket|}}}{{{sock1|}}} | Physical specifications }}
 
| label50 = [[Transistor count|Transistors]]
 
| label50 = [[Transistor count|Transistors]]
 
| data50  = {{unbulleted list
 
| data50  = {{unbulleted list
Line 116: Line 121:
 
| {{{sock9|}}}
 
| {{{sock9|}}}
 
}}
 
}}
 +
| header59 = {{ #if: {{{core1|}}}{{{pcode1|}}}{{{model|}}}{{{brand1|}}}{{{variant|}}} | Products, models, variants }}
 
| label60 = Core name(s)
 
| label60 = Core name(s)
 
| data60  = {{unbulleted list
 
| data60  = {{unbulleted list
Line 165: Line 171:
 
| {{{brand9|}}}
 
| {{{brand9|}}}
 
}}
 
}}
| label70 = Variant(s)
+
| label69 = Variant(s)
| data70 = {{{variant|}}}
+
| data69 = {{{variant|}}}
 +
| header70 = Succession
 
| label71 = Predecessor
 
| label71 = Predecessor
 
| data71  = {{{predecessor|}}}
 
| data71  = {{{predecessor|}}}

Revision as of 12:40, 30 October 2019

Succession

[[Category:Infobox templates|Template:Remove first word]]

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

This template is for CPUs. For generic hardware components, see Template:Infobox computer hardware. Template:Missing Information

Template:Parameter names example

{{Infobox CPU
| name = 
| image = 
| image_size = 
| alt = 
| caption = 
<!----------------- General Info ----------------->
| produced-start = 
| produced-end = 
| soldby = 
| designfirm = 
| manuf1 = <!-- manuf1..5 -->
| cpuid = 
| code = 
<!----------------- Performance ------------------>
| slowest = 
| fastest = 
| slow-unit = 
| fast-unit = 
| fsb-slowest = 
| fsb-fastest = 
| fsb-slow-unit = 
| fsb-fast-unit = 
| hypertransport-slowest = 
| hypertransport-fastest = 
| hypertransport-slow-unit = 
| hypertransport-fast-unit = 
| qpi-slowest = 
| qpi-fastest = 
| qpi-slow-unit = 
| qpi-fast-unit = 
| dmi-slowest = 
| dmi-fastest = 
| dmi-slow-unit = 
| dmi-fast-unit = 
| data-width = 
| address-width = 
| virtual-width = 
<!-------------------- Cache --------------------->
| l1cache = 
| l2cache = 
| l3cache = 
| l4cache = 
| llcache = 
<!------- Architecture and classification -------->
| application = 
| size-from = 
| size-to = 
| arch1 = 
| microarch = 
| arch = 
| instructions = 
| extensions = 
<!----------- Physical specifications ------------>
| transistors =
| numcores = 
| gpu = 
| co-processor = 
| pack1 = <!-- pack1..9 -->
| sock1 = <!-- sock1..9 -->
<!--------- Products, models, variants ----------->
| core1 = <!-- core1..9 -->
| pcode1 = <!-- pcode1..9 -->
| model1 = <!-- model1..9 -->
| brand1 = <!-- brand1..9 -->
| variant = 
<!------------------  History  ------------------->
| predecessor = 
| successor = 
}}

Usage

{{Infobox CPU
| name                      = Device Name
| image                     = An image to show in the infobox
| image_size                = Size of the image (defaults to 200px)
| alt                       = Mouse over text for the image
| caption                   = A caption for the image
<!----------------- General Info ------------------------------------------------------------------------------------->
| produced-start            = When production began / Launch date                            →see talkpage section #Dates
| produced-end              = When production ended / Discontinued date                      →see talkpage section #Dates
| soldby                    = Often, but not always, the same as the designfirm and/or manuf1
| designfirm                = Often, but not always, the same as manuf1 and/or soldby
| manuf1                    = (1..5) Common manufacturers of the device
| cpuid                     = CPUID or PVR value
| code                      = numerical identifier for the CPU (product code)
<!----------------- Performance -------------------------------------------------------------------------------------->
| slowest                   = Lowest maximum CPU clock
| fastest                   = Highest maximum CPU clock
| slow-unit                 = Unit for slow speed. Default: GHz
| fast-unit                 = Unit for fast speed. Default: GHz
| fsb-slowest               = Slowest FSB speed
| fsb-fastest               = Fastest FSB speed
| fsb-slow-unit             = Unit for slow speed. Default: MHz
| fsb-fast-unit             = Unit for fast speed. Default: MHz
| hypertransport-slowest    = Slowest HyperTransport speed
| hypertransport-fastest    = Fastest HyperTransport speed
| hypertransport-slow-unit  = Unit for slow speed. Default: GT/s
| hypertransport-fast-unit  = Unit for fast speed. Default: GT/s
| qpi-slowest               = Slowest QPI (QuickPath Interconnect) speed
| qpi-fastest               = Fastest QPI speed
| qpi-slow-unit             = Unit for slow speed. Default: GT/s
| qpi-fast-unit             = Unit for fast speed. Default: GT/s
| dmi-slowest               = Slowest DMI (Direct Media Interface) speed
| dmi-fastest               = Fastest DMI speed
| dmi-slow-unit             = Unit for slow speed. Default: GT/s
| dmi-fast-unit             = Unit for fast speed. Default: GT/s
| data-width                = Data bus width in bits
| address-width             = Address bus width in bits
| virtual-width             = Virtual address bus width in bits
<!-------------------- Cache ----------------------------------------------------------------------------------------->
| l1cache                   = Level 1 cache size
| l2cache                   = Level 2 cache size
| l3cache                   = Level 3 cache size
| l4cache                   = Level 4 cache size
| llcache                   = Last Level cache size
<!------- Architecture and classification ---------------------------------------------------------------------------->
| application               = Typical application (Embedded, Mobile, Desktop, Server)
| size-from                 = First fabrication size
| size-to                   = Second fabrication size
| arch1                     = Architecture                                                 →see talkpage section #Architecture
| microarch                 = Microarchitecture of the CPU
| arch                      = Instruction set architecture (ISA) that the CPU implements   →see talkpage section #Architecture
| instructions              = Instruction sets (or number of instructions)                 →see talkpage section #Architecture
| extensions                = Extensions to the instructions
<!----------- Physical specifications -------------------------------------------------------------------------------->
| transistors               = Number of transistors, transistor count
| numcores                  = Number of cores (2 for dual-core)
| gpu                       = Integrated GPU
| co-processor              = A [[co-processor]](s) used together
| pack1                     = (1..5) Names of CPU packages
| sock1                     = (1..9) Names of the sockets that the CPU was made for
<!--------- Products, models, variants ------------------------------------------------------------------------------->
| core1                     = (1..9) Names of the cores                   →see talkpage section "Names (Products, models, variants)"
| pcode1                    = (1..9) Product code names                   →see talkpage section "Names (Products, models, variants)"
| model1                    = (1..9) Model names                          →see talkpage section "Names (Products, models, variants)"
| brand1                    = (1..9) Marketing names of the CPU
| variant                   = Variants in the same family and generation  →see talkpage section "Names (Products, models, variants)"
<!------------------  History  --------------------------------------------------------------------------------------->
| predecessor               = What CPU came before
| successor                 = What CPU came after
}}
  • All fields, except name are optional
  • The following parameters are deprecated:
created →better: produced-start, produced-end
clock →better: slowest, fastest
fsb →better: fsb-slowest, fsb-fastest
cores, cores1 →better: numcores
socket →better: sock1...sock9
  • manuf, core, sock, pack, arch, and microarch are AutoLinks, so you can use plain text or a link for them.
  • The numbered attributes mean that there is allowance for multiples.
  • See the talk page for some examples which show the full usage of this infobox in a few combinations.

Examples

See also