Content deleted Content added
Move new sandbox version into main template. (Now svg files are used; for the earlier gif files see talk & documentation) |
m Protected "Template:Michelin stars": semi-protecting highly-visible templates in response to recent template-space vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or confirmed access]... |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{#switch: {{{1<noinclude>|1</noinclude>}}} |
{{#switch: {{{1<noinclude>|1</noinclude>}}} |
||
| 1 = |
| 1 = [[File:Etoile Michelin-1.svg|alt=1 Michelin star|link=Michelin star|{{{size|15px}}}]] |
||
| 2 = |
| 2 = [[File:Etoile Michelin-2.svg|alt=2 Michelin stars|link=Michelin star|{{{size|30px}}}]] |
||
| 3 = |
| 3 = [[File:Etoile Michelin-3.svg|alt=3 Michelin stars|link=Michelin star|{{{size|45px}}}]] |
||
| #default={{error|When using template {{tla|1=Michelin stars|2=Michelin stars{{!}}?}}, please add the number <code>{{!}}1</code>, <code>{{!}}2</code> or <code>{{!}}3</code>.|tag=p}} |
| #default={{error|When using template {{tla|1=Michelin stars|2=Michelin stars{{!}}?}}, please add the number <code>{{!}}1</code>, <code>{{!}}2</code> or <code>{{!}}3</code>.|tag=p}} |
||
}}<noinclude> |
}}<noinclude> |
Latest revision as of 19:25, 10 January 2018
Template documentation[view] [edit] [history] [purge]
This template shows Michelin stars graphically.
- Links
- The stars (images) are linked to page Michelin star.
- Image size
|size=
allows setting the size (horizontal width) of the image. Use formatnpx
- Default sizes are 15px, 30px, 45px respectively. It is advised to maintain these ratios 1:2:3 when changing sizes.
{{Michelin stars|2|size=100px}}
shows
- Table sorting
- For usage in a sortable table, the stars have sorting values of 1, 2 or 3.
See also
- {{Michelin stars (gif)}} to show gif-images in special situations
- {{Infobox restaurant}}, has parameter
|rating=
- File:Etoile Michelin-1.svg