Difference between revisions of "Template:Weather inline"
Jump to navigation
Jump to search
m (fix link) |
m (delete duplicate html comment) |
||
Line 43: | Line 43: | ||
| <!-- | | <!-- | ||
− | // Display the normal cases: first display icon (except for Any) | + | // Display the normal cases: first display icon (except for Any) |
-->{{#ifeq:@weather@|Any||[[File:@[email protected]| | -->{{#ifeq:@weather@|Any||[[File:@[email protected]| | ||
{{#if:{{{size|}}}|{{{size}}}px}} | link={{#arrayprint:$lang_weatherlink}}| alt=]] }}<!-- | {{#if:{{{size|}}}|{{{size}}}px}} | link={{#arrayprint:$lang_weatherlink}}| alt=]] }}<!-- |
Revision as of 22:12, 17 September 2020
Description
This template displays the icon for the type of weather, plus a link to the associated wiki page.
Use
{{Weather inline|type of weather|width (optional)}}
Valid Parameters
There are 9 valid types of weather. All are case-insensitive.
- All / Any = Template:ParseInputValues[[File:Template:ParseInputValues.png|
| link=Weather| alt=]] [[Weather|Template:ParseInputValues]]
- Sun = Template:ParseInputValues[[File:Template:ParseInputValues.png|
| link=Weather| alt=]] [[Weather|Template:ParseInputValues]]
- Springwind = Template:ParseInputValues[[File:Template:ParseInputValues.png|
| link=Weather| alt=]] [[Weather|Template:ParseInputValues]]
- Fallwind = Template:ParseInputValues[[File:Template:ParseInputValues.png|
| link=Weather| alt=]] [[Weather|Template:ParseInputValues]]
- Rain = Template:ParseInputValues[[File:Template:ParseInputValues.png|
| link=Weather| alt=]] [[Weather|Template:ParseInputValues]]
- Storm = Template:ParseInputValues[[File:Template:ParseInputValues.png|
| link=Weather| alt=]] [[Weather|Template:ParseInputValues]]
- Snow = Template:ParseInputValues[[File:Template:ParseInputValues.png|
| link=Weather| alt=]] [[Weather|Template:ParseInputValues]]
- Festival = Template:ParseInputValues[[File:Template:ParseInputValues.png|
| link=Weather| alt=]] [[Weather|Template:ParseInputValues]]
Width
Specify the width in pixels, and include "px".
{{Weather inline|Snow|width=24px}}
Template:ParseInputValues[[File:Template:ParseInputValues.png|
| link=Weather| alt=]] [[Weather|Template:ParseInputValues]]