Difference between revisions of "Template:Infobox CPU"

From blackwiki
Jump to navigation Jump to search
(use Unbulleted list instead of brs (to fix extra gap at end of lists))
imported>Bumm13
m (formatting fix)
 
(128 intermediate revisions by 34 users not shown)
Line 1: Line 1:
{{infobox
+
{{Infobox
| title  = {{{name|<includeonly>{{PAGENAME}}</includeonly>}}}
+
| title  = {{{name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}}
| image  = {{#if:{{{image|}}}|[[Image:{{{image}}}|{{{image_size|200px}}}]]}}
+
| image  = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=frameless|alt={{{alt|}}}}}
 
| caption = {{{caption|}}}
 
| caption = {{{caption|}}}
 
+
| header1 = {{ #if: {{{produced-end|}}}{{{produced-start|}}}{{{created|}}}{{{soldby|}}}{{{designfirm|}}}{{{manuf1|}}}{{{cpuid|}}}{{{code|}}} | General information }}
| label1  = Produced
+
| label2 = Launched
| data1  = {{#if:{{{produced-end|}}}|From {{{produced-start}}} to {{{produced-end}}}|{{{produced-start|}}}}}
+
| data2   = {{{produced-start|}}}{{{created|}}}<!--some pages still using created-parameter-->
| label2  = Marketed by
+
| label3  = Discontinued
| data2  = {{{soldby|}}}
+
| data3  = {{{produced-end|}}}
| label3 = Designed by
+
| label4  = Marketed by
| data3   = {{{designfirm|}}}
+
| data4  = {{{soldby|}}}
| label4  = {{#if:{{{manuf1|}}}{{{manuf2|}}}{{{manuf3|}}}{{{manuf4|}}}{{{manuf5|}}}|Common manufacturer(s)}}
+
| label5  = Designed by
| data4   = {{Unbulleted list|{{{manuf1|}}}|{{{manuf2|}}}|{{{manuf3|}}}|{{{manuf4|}}}|{{{manuf5|}}}}}
+
| data5  = {{{designfirm|}}}
| label5  = Max. [[Central processing unit|CPU]] [[clock rate]]
+
| label6  = Common manufacturer(s)
| data5  = {{#if:{{{slowest|}}}|{{{slowest}}}&nbsp;{{{slow-unit|GHz}}}}} {{#if:{{{fastest|}}}| to {{{fastest}}}&nbsp;{{{fast-unit|GHz}}}}}
+
| data6   = {{unbulleted list
| label6  = [[Front side bus|FSB]] speeds
+
| {{{manuf1|}}}
| data6  = {{#if:{{{fsb-slowest|}}}|{{{fsb-slowest}}}&nbsp;{{{fsb-slow-unit|GHz}}}}} {{#if:{{{fsb-fastest|}}}| to {{{fsb-fastest}}}&nbsp;{{{fsb-fast-unit|GHz}}}}}
+
| {{{manuf2|}}}
| label7  = [[HyperTransport]] speeds
+
| {{{manuf3|}}}
| data7  = {{#if:{{{hypertransport-slowest|}}}|{{{hypertransport-slowest}}}&nbsp;{{{hypertransport-slow-unit|GT/s}}}}} {{#if:{{{hypertransport-fastest|}}}| to {{{hypertransport-fastest}}}&nbsp;{{{hypertransport-fast-unit|GT/s}}}}}
+
| {{{manuf4|}}}
| label8  = [[Intel QuickPath Interconnect|QPI]] speeds
+
| {{{manuf5|}}}
| data8  = {{#if:{{{qpi-slowest|}}}|{{{qpi-slowest}}}&nbsp;{{{qpi-slow-unit|GT/s}}}}} {{#if:{{{qpi-fastest|}}}| to {{{qpi-fastest}}}&nbsp;{{{qpi-fast-unit|GT/s}}}}}
+
}}  
| label9  = [[Direct Media Interface|DMI]] speeds
+
| label11 = [[CPUID]] code
| data9  = {{#if:{{{dmi-slowest|}}}|{{{dmi-slowest}}}&nbsp;{{{dmi-slow-unit|GT/s}}}}} {{#if:{{{dmi-fastest|}}}| to {{{dmi-fastest}}}&nbsp;{{{dmi-fast-unit|GT/s}}}}}
+
| data11  = {{{cpuid|}}}
| label10 = Min. feature size
+
| label12 = Product code
| data10  = {{#if:{{{size-from|}}}|{{{size-from|}}} {{#if:{{{size-to|}}}| to {{{size-to}}}}}}}
+
| data12  = {{{code|}}}
| label11 = [[Instruction set]]
+
| header19 = {{ #if: {{{clock|}}}{{{slowest|}}}{{{fsb|}}}{{{fsb-slowest|}}}{{{hypertransport-slowest|}}}{{{qpi-slowest|}}}{{{dmi-slowest|}}}{{{data-width|}}}{{{address-width|}}}{{{virtual-width|}}} | Performance }}
| data11 = {{{arch|}}}
+
| label20 = Max. [[Central processing unit|CPU]] [[clock rate]]
| label12  = [[Microarchitecture]]
+
| 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}}}}}}}
| data12  = {{{microarch|}}}
+
| label21 = [[Front-side bus|FSB]] speeds
| label13 = CPUID code
+
| data21  = {{#if:{{{fsb|}}}|{{{fsb}}}<!--some pages still using this old parameter-->|{{#if:{{{fsb-slowest|}}}|{{{fsb-slowest}}}&nbsp;{{{fsb-slow-unit|GHz}}}}} {{#if:{{{fsb-fastest|}}}| to {{{fsb-fastest}}}&nbsp;{{{fsb-fast-unit|GHz}}}}}}}
| data13  = {{{cpuid|}}}
+
| label22 = [[HyperTransport]] speeds
| label14 = Product code
+
| data22  = {{#if:{{{hypertransport-slowest|}}}|{{{hypertransport-slowest}}}&nbsp;{{{hypertransport-slow-unit|GT/s}}}}} {{#if:{{{hypertransport-fastest|}}}| to {{{hypertransport-fastest}}}&nbsp;{{{hypertransport-fast-unit|GT/s}}}}}
| data14  = {{{code|}}}
+
| label23 = [[Intel QuickPath Interconnect|QPI]] speeds
| label15 = [[Multi-core (computing)|Cores]]
+
| data23 = {{#if:{{{qpi-slowest|}}}|{{{qpi-slowest}}}&nbsp;{{{qpi-slow-unit|GT/s}}}}} {{#if:{{{qpi-fastest|}}}| to {{{qpi-fastest}}}&nbsp;{{{qpi-fast-unit|GT/s}}}}}
| data15 = {{{numcores|}}}
+
| label24 = [[Direct Media Interface|DMI]] speeds
| label16 = L1 [[CPU cache|cache]]
+
| data24 = {{#if:{{{dmi-slowest|}}}|{{{dmi-slowest}}}&nbsp;{{{dmi-slow-unit|GT/s}}}}} {{#if:{{{dmi-fastest|}}}| to {{{dmi-fastest}}}&nbsp;{{{dmi-fast-unit|GT/s}}}}}
| data16  = {{{l1cache|}}}
+
| label25 = Data width
| label17 = L2 cache
+
| data25 = {{{data-width|}}}
| data17  = {{{l2cache|}}}
+
| label26 = Address width
| label18 = L3 cache
+
| data26  = {{{address-width|}}}
| data18  = {{{l3cache|}}}
+
| label27 = Virtual address width
| label19 = Application
+
| data27  = {{{virtual-width|}}}
| data19 = {{{application|}}}
+
| header29 = {{ #if: {{{l1cache|}}}{{{l2cache|}}}{{{l3cache|}}}{{{l4cache|}}}{{{llcache|}}} | Cache }}
| label20 = {{#if:{{{sock1|}}}{{{sock2|}}}{{{sock3|}}}{{{sock4|}}}{{{sock5|}}}{{{sock6|}}}|Socket(s)}}
+
| label30 = L1 [[CPU cache|cache]]
| data20 = {{Unbulleted list|{{{sock1|}}}|{{{sock2|}}}|{{{sock3|}}}|{{{sock4|}}}|{{{sock5|}}}|{{{sock6|}}}}}
+
| data30 = {{{l1cache|}}}
| label21 = {{#if:{{{pack1|}}}{{{pack2|}}}{{{pack3|}}}{{{pack4|}}}{{{pack5|}}}|Package(s)}}
+
| label31 = L2 cache
| data21  = {{Unbulleted list|{{{pack1|}}}|{{{pack2|}}}|{{{pack3|}}}|{{{pack4|}}}|{{{pack5|}}}}}
+
| data31  = {{{l2cache|}}}
| label22 = {{#if:{{{core1|}}}{{{core2|}}}{{{core3|}}}{{{core4|}}}{{{core5|}}}{{{core6|}}}{{{core7|}}}{{{core8|}}}{{{core9|}}}|Core name(s)}}
+
| label32 = L3 cache
| data22 = {{Unbulleted list|{{{core1|}}}|{{{core2|}}}|{{{core3|}}}|{{{core4|}}}|{{{core5|}}}|{{{core6|}}}|{{{core7|}}}|{{{core8|}}}|{{{core9|}}}}}
+
| data32  = {{{l3cache|}}}
| label23 = {{#if:{{{brand1|}}}{{{brand2|}}}{{{brand3|}}}{{{brand4|}}}{{{brand5|}}}{{{brand6|}}}{{{brand7|}}}{{{brand8|}}}{{{brand9|}}}|Brand name(s)}}
+
| label33 = L4 cache
| data23  = {{Unbulleted list|{{{brand1|}}}|{{{brand2|}}}|{{{brand3|}}}|{{{brand4|}}}|{{{brand5|}}}|{{{brand6|}}}|{{{brand7|}}}|{{{brand8|}}}|{{{brand9|}}}}}
+
| data33  = {{{l4cache|}}}
 +
| label34 = Last level cache
 +
| data34  = {{{llcache|}}}
 +
| header38 = {{ #if: {{{application|}}}{{{size-from|}}}{{{microarch|}}}{{{arch|}}}{{{arch1|}}}{{{instructions|}}}{{{extensions|}}}{{{extensions1|}}} | Architecture and classification }}
 +
| label39 = Application
 +
| data39  = {{{application|}}}
 +
| label40 = [[Technology node|Min.&nbsp;feature&nbsp;size]]
 +
| data40  = {{#if:{{{size-from|}}}|{{{size-from|}}} {{#if:{{{size-to|}}}| to {{{size-to}}}}}}}
 +
| label41 = Architecture
 +
| data41  = {{{arch1|}}}
 +
| label42 = [[Microarchitecture]]
 +
| data42  = {{{microarch|}}}
 +
| label43 = [[Instruction set architecture|Instruction&nbsp;set]]
 +
| data43  = {{{arch|}}}
 +
| label44 = Instructions
 +
| data44  = {{{instructions|}}}
 +
| label45 = Extensions
 +
| data45 = {{unbulleted list
 +
| {{{extensions|}}} <!-- some pages using just "extensions", some "extensions1", "extensions2", ... -->
 +
| {{{extensions1|}}}
 +
| {{{extensions2|}}}
 +
| {{{extensions3|}}}
 +
}}
 +
| header49 = {{ #if: {{{transistors|}}}{{{transistors1|}}}{{{numcores|}}}{{{cores|}}}{{{cores1|}}}{{{gpu|}}}{{{co-processor|}}}{{{pack1|}}}{{{socket|}}}{{{sock1|}}} | Physical specifications }}
 +
| label50 = [[Transistor count|Transistors]]
 +
| data50  = {{unbulleted list
 +
| {{{transistors|}}} <!-- some pages using just "transistors", some "transistors1", "transistors2", ... -->
 +
| {{{transistors1|}}}
 +
| {{{transistors2|}}}
 +
| {{{transistors3|}}}
 +
| {{{transistors4|}}}
 +
| {{{transistors5|}}}
 +
| {{{transistors6|}}}
 +
| {{{transistors7|}}}
 +
| {{{transistors8|}}}
 +
}}
 +
| label51 = [[Multi-core processor|Cores]]
 +
| data51  = {{unbulleted list
 +
| {{{numcores|}}}
 +
| {{{cores|}}}  <!-- some pages using just "cores", some "cores1", "cores2", ... -->
 +
| {{{cores1|}}}
 +
| {{{cores2|}}}
 +
| {{{cores3|}}}
 +
| {{{cores4|}}}
 +
| {{{cores5|}}}
 +
}}
 +
| label53 = [[Graphics processing unit|GPU(s)]]
 +
| data53  = {{{gpu|}}}
 +
| label54 = [[Co-processor]]
 +
| data54  = {{{co-processor|}}}
 +
| label55 = Package(s)
 +
| data55  = {{unbulleted list
 +
| {{{pack1|}}}
 +
| {{{pack2|}}}
 +
| {{{pack3|}}}
 +
| {{{pack4|}}}
 +
| {{{pack5|}}}
 +
}}
 +
| label56 = Socket(s)
 +
| data56  = {{unbulleted list
 +
| {{{socket|}}} <!-- some pages using just "socket", some "sock1", "sock2", ... -->
 +
| {{{sock1|}}}
 +
| {{{sock2|}}}
 +
| {{{sock3|}}}
 +
| {{{sock4|}}}
 +
| {{{sock5|}}}
 +
| {{{sock6|}}}
 +
| {{{sock7|}}}
 +
| {{{sock8|}}}
 +
| {{{sock9|}}}
 +
}}
 +
| header59 = {{ #if: {{{core1|}}}{{{pcode1|}}}{{{model|}}}{{{brand1|}}}{{{variant|}}} | Products, models, variants }}
 +
| label60 = Core&nbsp;name(s)
 +
| data60  = {{unbulleted list
 +
| {{{core1|}}}
 +
| {{{core2|}}}
 +
| {{{core3|}}}
 +
| {{{core4|}}}
 +
| {{{core5|}}}
 +
| {{{core6|}}}
 +
| {{{core7|}}}
 +
| {{{core8|}}}
 +
| {{{core9|}}}
 +
}}
 +
| label61 = Product code name(s)
 +
| data61  = {{unbulleted list
 +
| {{{pcode1|}}}
 +
| {{{pcode2|}}}
 +
| {{{pcode3|}}}
 +
| {{{pcode4|}}}
 +
| {{{pcode5|}}}
 +
| {{{pcode6|}}}
 +
| {{{pcode7|}}}
 +
| {{{pcode8|}}}
 +
| {{{pcode9|}}}
 +
}}
 +
| label62 = Model(s)
 +
| data62  = {{unbulleted list
 +
| {{{model|}}} <!-- some pages using just "model", some "model1", "model2", ... -->
 +
| {{{model1|}}}
 +
| {{{model2|}}}
 +
| {{{model3|}}}
 +
| {{{model4|}}}
 +
| {{{model5|}}}
 +
| {{{model6|}}}
 +
| {{{model7|}}}
 +
| {{{model8|}}}
 +
| {{{model9|}}}
 +
}}
 +
| label63 = Brand&nbsp;name(s)
 +
| data63  = {{unbulleted list
 +
| {{{brand1|}}}
 +
| {{{brand2|}}}
 +
| {{{brand3|}}}
 +
| {{{brand4|}}}
 +
| {{{brand5|}}}
 +
| {{{brand6|}}}
 +
| {{{brand7|}}}
 +
| {{{brand8|}}}
 +
| {{{brand9|}}}
 +
}}
 +
| label69 = Variant(s)
 +
| data69  = {{{variant|}}}
 +
| header70 = {{ #if: {{{predecessor|}}}{{{successor|}}} | History }}
 +
| label71 = Predecessor
 +
| data71  = {{{predecessor|}}}
 +
| label72 = Successor
 +
| data72  = {{{successor|}}}
 
}}<noinclude>{{documentation}}</noinclude>
 
}}<noinclude>{{documentation}}</noinclude>

Latest revision as of 02:21, 8 December 2020

[[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