Difference between revisions of "Template:Green NCAP/doc"

From blackwiki
Jump to navigation Jump to search
imported>SkywalkerPL
(Created)
 
imported>SkywalkerPL
(→‎Usage: Added version, fixed year, added example)
Line 11: Line 11:
 
* [[File:Brown medal icon blank.svg |10px]] weak
 
* [[File:Brown medal icon blank.svg |10px]] weak
 
* [[File:Red medal icon blank.svg |10px]] poor
 
* [[File:Red medal icon blank.svg |10px]] poor
 +
 +
===Example===
 +
{{Aligned table
 +
|class=wikitable
 +
|col1style=width:5.0em;background:whitesmoke;vertical-align:middle;text-align:center;font-weight:bold;
 +
|col2style=padding-left:0.5em;padding-right:0.5em;
 +
<!------------------------------(80 characters)-------------------------------->
 +
| Code
 +
| <pre>
 +
<nowiki>{{Green NCAP|
 +
description=Ford Fiesta|
 +
version=1l EcoBoost 4x2 manual Euro 6d-Temp|
 +
year=2019|
 +
url=https://www.greenncap.com/assessments/ford-fiesta-1l-ecoboost-4x2-manual-euro6d-temp/|
 +
ref_year=2019|
 +
overall_stars=2|
 +
Clean_Air_Index=8.0|
 +
Energy_Efficiency_Index=4.4
 +
}}</nowiki>
 +
</pre>
 +
 +
| Result
 +
|
 +
{{Green NCAP|
 +
description=Ford Fiesta|
 +
version=1l EcoBoost 4x2 manual Euro 6d-Temp|
 +
year=2019|
 +
url=https://www.greenncap.com/assessments/ford-fiesta-1l-ecoboost-4x2-manual-euro6d-temp/|
 +
ref_year=2019|
 +
overall_stars=2|
 +
Clean_Air_Index=8.0|
 +
Energy_Efficiency_Index=4.4
 +
}}
 +
 +
}}<!--(end Aligned table)-->
 +
{{reflist}}
  
 
<includeonly>{{sandbox other||
 
<includeonly>{{sandbox other||
Line 27: Line 63:
 
       "required": true
 
       "required": true
 
     },
 
     },
−
     "description": {
+
     "year": {
 
       "label": "Year",
 
       "label": "Year",
 
       "description": "Model year, if not sure, it can be found on the cover of the PDF report",
 
       "description": "Model year, if not sure, it can be found on the cover of the PDF report",
Line 33: Line 69:
 
       "example": "2019",
 
       "example": "2019",
 
       "required": true
 
       "required": true
 +
    },
 +
    "version": {
 +
      "label": "Version",
 +
      "description": "Version, appearing as a subtitle on the website",
 +
      "type": "string",
 +
      "example": "Electric 4x2",
 +
      "required": false
 
     },
 
     },
 
     "url": {
 
     "url": {

Revision as of 21:20, 2 March 2019

Usage

Template will display Green NCAP score for the car. Current version uses 5 point Star Green.svgStar Green.svgStar Green.svgStar empty.svgStar empty.svg scale.

Further expansion planned to cover scoring scale that the organisation opted in for:

Example

Script error: No such module "aligned table".


Syntax error in JSON.