Template:Euro NCAP/doc
This is a documentation subpage for Template:Euro NCAP. It may contain usage information, categories and other content that is not part of the original template page. |
Usage
[edit]Parameter | Purpose | 1997-2003 | 2004-2008 | 2009- |
---|---|---|---|---|
year | Year the test was done | |||
description | Short description of the car, usually just the vehicle name | |||
align | The table is displayed on the left/right with other text on the other side. Uses the entire line width if the align parameter is not present. | |||
reference | Optional reference | |||
reference_name | Optional reference name. Don't use space or '_' | |||
reference_code | Optional reference code | |||
reference_url | Optional reference URL | |||
overall_stars | Overall star rating | |||
adult_points | Adult points | |||
adult_percent | Adult percentage | |||
adult_stars | Adult rating in stars | |||
adult_score | Adult score | |||
child_points | Child score | |||
child_percent | Child percentage | |||
child_stars | Child rating in stars | |||
child_score | Child score | |||
pedestrian_points | Pedestrian score | |||
pedestrian_percent | Pedestrian percentage | |||
pedestrian_stars | Pedestrian rating in stars | |||
pedestrian_score | Pedestrian score | |||
safety_points | Safety assist score | |||
safety_percent | Safety assist percentage |
2009 onwards
[edit]Here is a reference that the next example will reuse.[1]
Test | Points | % |
---|---|---|
Overall: | ||
Adult occupant: | 30 | 84% |
Child occupant: | 44 | 90% |
Pedestrian: | 14 | 48% |
Safety assist: | 5 | 71% |
The code for 2009 onwards tests (including safety assist)
{{Euro NCAP |year=2011 |overall_stars=5 |description=Ford Transit Custom |reference_name=ref2011 |adult_points=30 |adult_percent=84 |child_points=44 |child_percent=90 |pedestrian_points=14 |pedestrian_percent=48 |safety_points=5 |safety_percent=71 |align=right}}
Test | Points | % |
---|---|---|
Overall: | ||
Adult occupant: | 32 | 89% |
Child occupant: | 40 | 83% |
Pedestrian: | 23 | 65% |
Safety assist: | 6 | 84% |
For 2009 onwards, you may use the Euro NCAP's reference code (usually a 3 digit number) instead of a full reference. The template will generate a full reference for you, complete with a link to the datasheet at euroncap.com, title (based on the description parameter), and the year of the test. If the 'reference_name' param is not supplied then the template will also generate a name so that you can use <ref name=EuroNCAPxxx/> where xxx is the Euro NCAP's reference code) in other places in the article. E.g.
{{Euro NCAP |year=2011 |overall_stars=5 |description=Nissan Leaf |reference_name=EuroNCAP |reference_code=432 |adult_points=32 |adult_percent=89 |child_points=40 |child_percent=83 |pedestrian_points=23 |pedestrian_percent=65 |safety_points=6 |safety_percent=84 |align=right}}
You can find the reference code by first finding the car on Euro NCAP's website. If you look at the URL it should look similar to http://www.euroncap.com/files/432_datasheet.pdf" . The number in the middle is the reference code, for this car it is 432.
2004–2008
[edit]Test | Score | Rating |
---|---|---|
Adult occupant: | 37 | |
Child occupant: | 27 | |
Pedestrian: | 17 |
For pre 2009 tests (without safety assist), specify the star parameters.
{{Euro NCAP |year=2007 |description=a sample car |reference=Reference created by the template for 2007 |reference_name=ref2007 |adult_stars=5 |adult_score=37 |child_stars=3 |child_score=27 |pedestrian_stars=1 |pedestrian_score=17 |align=right}}
For pre 2009, you may give the URL of Euro NCAP's web page instead of a full reference. The template will generate a full reference for you, complete with a link to the web page at euroncap.com, title (based on the description parameter), and the year of the test. If the 'reference_name' parameter is not supplied then the template will also generate a name so that you can use <ref name=EuroNCAPxxxx/> where xxxx is the year of the test) in other places in the article.
Here is a reference created by the template that gets reused.[3]
1997–2003
[edit]Very early tests (before 2004) can omit the child scores.
{{Euro NCAP |year=1998 |description=Toyota Corolla |reference_url=http://www.euroncap.com/tests/toyota_corolla_1998/43.aspx |reference_name=ref1998 |adult_stars=3 |adult_score=23 |pedestrian_stars=2 |pedestrian_score=15 |align=right}}
Another use of 1998 reference.[4]
- ^ Reference created outside of the template
- ^ "Euro NCAP results for Nissan Leaf" (PDF). euroncap.com. 2011.
- ^ a b Reference created by the template for 2007
- ^ a b "Euro NCAP results for Toyota Corolla". euroncap.com. 1998.
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
align | align | no description | Unknown | optional |
year | year | no description | Number | optional |
description | description | no description | Unknown | optional |
reference | reference | no description | Unknown | optional |
reference_name | reference_name | no description | Unknown | optional |
reference_code | reference_code | no description | Unknown | optional |
overall_stars | overall_stars | no description | Unknown | optional |
adult_points | adult_points | no description | Unknown | optional |
adult_percent | adult_percent | no description | Unknown | optional |
child_points | child_points | no description | Unknown | optional |
child_percent | child_percent | no description | Unknown | optional |
pedestrian_points | pedestrian_points | no description | Unknown | optional |
pedestrian_percent | pedestrian_percent | no description | Unknown | optional |
safety_points | safety_points | no description | Unknown | optional |
safety_percent | safety_percent | no description | Unknown | optional |
reference_url | reference_url | no description | Unknown | optional |
adult_stars | adult_stars | no description | Unknown | optional |
adult_score | adult_score | no description | Unknown | optional |
child_stars | child_stars | no description | Unknown | optional |
child_score | child_score | no description | Unknown | optional |
pedestrian_stars | pedestrian_stars | no description | Unknown | optional |
pedestrian_score | pedestrian_score | no description | Unknown | optional |