Difference between revisions of "Template:Infobox bug/sandbox/doc"

From blackwiki
Jump to navigation Jump to search
imported>BrandonXLF
imported>BrandonXLF
Line 132: Line 132:
 
|}
 
|}
 
{{clear}}
 
{{clear}}
 +
 +
== Template data ==
 +
 +
<templatedata>
 +
{
 +
  "description": "Used to add an infobox to article about software bugs, vulnerabilities and security bugs.",
 +
  "format": "\n{{_\n|_ = _\n}}\n",
 +
  "params": {
 +
    "name": {
 +
      "label": "Name",
 +
      "description": "The name of the bug",
 +
      "example": "Shellshock",
 +
      "autovalue": "{{BASEPAGENAME}}"
 +
    },
 +
    "logo": {
 +
      "label": "Logo",
 +
      "description": "The logo of the bug",
 +
      "example": "example.png"
 +
    },
 +
    "logo size": {
 +
      "label": "Logo size",
 +
      "description": "The size of the logo",
 +
      "example": "180px"
 +
    },
 +
    "logo alt": {
 +
      "label": "Logo alt",
 +
      "description": "Alternate text for the logo"
 +
    },
 +
    "logo caption": {
 +
      "label": "Logo alt",
 +
      "description": "Caption for the logo",
 +
      "example": "A simple Shellshock logo, similar to the [[Heartbleed]] bug logo"
 +
    },
 +
    "image": {
 +
      "label": "Image",
 +
      "description": "The image of the bug",
 +
      "example": "example.png"
 +
    },
 +
    "image size": {
 +
      "label": "Image size",
 +
      "description": "The size of the image",
 +
      "example": "180px"
 +
    },
 +
    "image alt": {
 +
      "label": "Image alt",
 +
      "description": "Alternate text for the image"
 +
    },
 +
    "image caption": {
 +
      "label": "Image alt",
 +
      "description": "Caption for the image"
 +
    },
 +
    "screenshot": {
 +
      "label": "Screenshot",
 +
      "description": "The screenshot of the bug",
 +
      "example": "example.png"
 +
    },
 +
    "screenshot size": {
 +
      "label": "Screenshot size",
 +
      "description": "The size of the screenshot",
 +
      "example": "180px"
 +
    },
 +
    "screenshot alt": {
 +
      "label": "Screenshot alt",
 +
      "description": "Alternate text for the screenshot"
 +
    },
 +
    "screenshot caption": {
 +
      "label": "Screenshot alt",
 +
      "description": "Caption for the screenshot"
 +
    },
 +
    "CVE": {
 +
      "aliases": ["cve"],
 +
      "label": "Common identification(s)",
 +
      "description": "Common Vulnerabilities and Exposures (CVE) identification(s) for the bug",
 +
      "example": "CVE-XXXX-YYYY"
 +
    },
 +
    "discovered": {
 +
      "label": "Discovery date",
 +
      "description": "Year and/or date of discovery",
 +
      "example": "{{Start date and age|2019|1|20}}"
 +
    },
 +
    "patched": {
 +
      "label": "patch date",
 +
      "description": "Year and/or date of patch release",
 +
      "example": "{{Start date and age|2019|1|21}}"
 +
    },
 +
    "discovered by": {
 +
      "label": "Discovered by",
 +
      "description": "Discoverer of the bug",
 +
      "example": "[[John Smith]]"
 +
    },
 +
    "affected hardware": {
 +
      "label": "Affected hardware",
 +
      "description": "Hardware affected by the bug",
 +
      "example": "[[Qualcomm Snapdragon]]"
 +
    },
 +
    "affected software": {
 +
      "label": "Affected software",
 +
      "description": "Software affected by the bug" ,
 +
      "example": "[[macOS]]"
 +
    },
 +
    "used by": {
 +
      "label": "Used by",
 +
      "description": "Know groups/people who use(d) the exploit"
 +
    },
 +
    "website": {
 +
      "label": "Website",
 +
      "description": "Website for the bug",
 +
      "example": "{{URL|http://heartbleed.com/}}"
 +
    }
 +
  }
 +
}
 +
</templatedata>
  
 
== Tracking category ==
 
== Tracking category ==

Revision as of 01:02, 22 February 2019

This infobox is used to add an infobox to article about software bugs, vulnerabilities and security bugs.

Parameters

Template:Parameter names example

Template:Pre2 Template:Pre2

Examples

Heartbleed
CVE identifier(s)CVE-2014-0160
Date discoveredTemplate:Start date and age
Date patchedTemplate:Start date and age
Affected softwareOpenSSL (1.0.1)
WebsiteTemplate:URL
Template:Pre2
Shellshock
CVE identifier(s)CVE-2014-6271

CVE-2014-6277 CVE-2014-6278 CVE-2014-7169 CVE-2014-7186

CVE-2014-7187
Date discoveredTemplate:Start date and age
Date patchedTemplate:Start date and age
Affected softwareGNU Bash (1.0.3–2.05b)
Template:Pre2

Template data

Used to add an infobox to article about software bugs, vulnerabilities and security bugs.

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
Namename

The name of the bug

Example
Shellshock
Auto value
{{BASEPAGENAME}}
Unknownoptional
Logologo

The logo of the bug

Example
example.png
Unknownoptional
Logo sizelogo size

The size of the logo

Example
180px
Unknownoptional
Logo altlogo alt

Alternate text for the logo

Unknownoptional
Logo altlogo caption

Caption for the logo

Example
A simple Shellshock logo, similar to the [[Heartbleed]] bug logo
Unknownoptional
Imageimage

The image of the bug

Example
example.png
Unknownoptional
Image sizeimage size

The size of the image

Example
180px
Unknownoptional
Image altimage alt

Alternate text for the image

Unknownoptional
Image altimage caption

Caption for the image

Unknownoptional
Screenshotscreenshot

The screenshot of the bug

Example
example.png
Unknownoptional
Screenshot sizescreenshot size

The size of the screenshot

Example
180px
Unknownoptional
Screenshot altscreenshot alt

Alternate text for the screenshot

Unknownoptional
Screenshot altscreenshot caption

Caption for the screenshot

Unknownoptional
Common identification(s)CVE cve

Common Vulnerabilities and Exposures (CVE) identification(s) for the bug

Example
CVE-XXXX-YYYY
Unknownoptional
Discovery datediscovered

Year and/or date of discovery

Example
{{Start date and age|2019|1|20}}
Unknownoptional
patch datepatched

Year and/or date of patch release

Example
{{Start date and age|2019|1|21}}
Unknownoptional
Discovered bydiscovered by

Discoverer of the bug

Example
[[John Smith]]
Unknownoptional
Affected hardwareaffected hardware

Hardware affected by the bug

Example
[[Qualcomm Snapdragon]]
Unknownoptional
Affected softwareaffected software

Software affected by the bug

Example
[[macOS]]
Unknownoptional
Used byused by

Know groups/people who use(d) the exploit

Unknownoptional
Websitewebsite

Website for the bug

Example
{{URL|http://heartbleed.com/}}
Unknownoptional

Tracking category

See also