Template:Infobox weather event: Difference between revisions
Appearance
u>Chlod add to param check per previous edit |
u>Chlod fix image sizing, add forecast image support, add spacing to image captions |
||
| Line 10: | Line 10: | ||
}} | }} | ||
| image = {{#if: {{both|{{{image|}}}|{{{track|}}}}} | | image = {{#if: {{both|{{{image|}}}|{{{track|{{{forecast|}}}}}}}} | ||
| <table style="width:100%; border-collapse:collapse; font-size:94%; line-height:125%;"> | | <table style="width:100%; border-collapse:collapse; font-size:94%; line-height:125%;"> | ||
<tr style="vertical-align:top"> | <tr style="vertical-align: top"> | ||
<td style="text-align:center;">{{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{width|{{{image-width|{{{image-size|}}}}}}}}}|sizedefault=frameless|upright={{{image-upright| | <td style="vertical-align: middle; text-align:center;">{{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{width|{{{image-width|{{{image-size|}}}}}}}}}|sizedefault=frameless|upright={{{image-upright|0.7}}}|alt={{{alt|Satellite image of {{{name|{{FULLPAGENAME}}}}}}}}|suppressplaceholder=yes}}<div style="margin-top: 0.3em;">{{{caption|Satellite image}}}</div></td> | ||
<td style="text-align:center;">{{#invoke:InfoboxImage|InfoboxImage|image={{{ | <td style="vertical-align: middle; text-align:center;">{{#if: {{{forecast|}}} | ||
</tr></table> | | {{#invoke:InfoboxImage|InfoboxImage|image={{{forecast|}}}|size={{{forecast-width|{{{forecast-size|}}}}}}|sizedefault=frameless|upright={{{forecast-upright|0.7}}}|alt={{{forecast-alt|Forecast map for {{{name|{{FULLPAGENAME}}}}}}}}|suppressplaceholder=yes}}<div style="margin-top: 0.3em;">{{{forecast-caption|Forecast map}}}</div> | ||
| {{#invoke:InfoboxImage|InfoboxImage|image={{{track|}}}|size={{{track-width|{{{track-size|}}}}}}|sizedefault=frameless|upright={{{track-upright|0.7}}}|alt={{{track-alt|Track map for {{{name|{{FULLPAGENAME}}}}}}}}|suppressplaceholder=yes}}<div style="margin-top: 0.3em;">{{{track-caption|Track map}}}</div> | |||
}}</td> | |||
</tr> | |||
</table> | |||
| {{#if: {{{image|}}} | | {{#if: {{{image|}}} | ||
| {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{width|{{{image-width|{{{image-size|}}}}}}}}}|sizedefault=frameless|upright={{{image-upright|1}}}|alt={{{alt|}}}|suppressplaceholder=yes}} | |||
}}{{#if: {{{track|}}} | }}{{#if: {{{forecast|}}} | ||
| {{#invoke:InfoboxImage|InfoboxImage|image={{{forecast|}}}|size={{{forecast-width|{{{forecast-size|}}}}}}|sizedefault=frameless|upright={{{forecast-upright|1.3}}}|alt={{{forecast-alt|Forecast map for {{{name|{{FULLPAGENAME}}}}}}}}|suppressplaceholder=yes}} | |||
}} | | {{#if: {{{track|}}} | ||
| {{#invoke:InfoboxImage|InfoboxImage|image={{{track|}}}|size={{{track-width|{{{track-size|}}}}}}|sizedefault=frameless|upright={{{track-upright|1}}}|alt={{{track-alt|Track map for {{{name|{{FULLPAGENAME}}}}}}}}|suppressplaceholder=yes}} | |||
}} | |||
}} | |||
}} | }} | ||
| caption = {{#if: {{both|{{{image|}}}|{{{track|}}}}} | | caption = {{#if: {{both|{{{image|}}}|{{{track|{{{forecast|}}}}}}}} | ||
| <!-- captioned above --> | | <!-- captioned above --> | ||
| {{#if: {{{image|}}} | | {{#if: {{{image|}}} | ||
| {{{caption|}}} | | {{{caption|}}} | ||
}}{{#if: {{{track|}}} | }}{{#if: {{{forecast|}}} | ||
| {{{forecast-caption|Forecast map for {{{name|{{FULLPAGENAME}}}}}}}} | |||
| {{#if: {{{track|}}} | |||
| {{{track-caption|Track map for {{{name|{{FULLPAGENAME}}}}}}}} | |||
}} | |||
}} | }} | ||
}} | }} | ||
| Line 54: | Line 64: | ||
}}}}{{#if: {{yesno|{{{footer|}}}}}{{{1|}}} | }}}}{{#if: {{yesno|{{{footer|}}}}}{{{1|}}} | ||
| {{{1|}}}</table> | | {{{1|}}}</table> | ||
}}</includeonly>{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox weather event with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox weather event]] with unknown parameter "_VALUE_"|ignoreblank=y| 1 | alt | as | bodystyle | caption | cause | child | coordinates | date | dissipated | duration | exited | exited-land | extratropical | extratropical-label | footer | formed | image | image-size | image-upright | image-width | location | low | name | no-history | place | post-tropical | remnant | remnant-low | track | track-alt | track-caption | track-size | track-upright | track-width | width }}<noinclude>{{Documentation}}</noinclude> | }}</includeonly>{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox weather event with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox weather event]] with unknown parameter "_VALUE_"|ignoreblank=y| 1 | alt | as | bodystyle | caption | cause | child | coordinates | date | dissipated | duration | exited | exited-land | extratropical | extratropical-label | forecast | forecast-alt | forecast-caption | forecast-size | forecast-upright | forecast-width | footer | formed | image | image-size | image-upright | image-width | location | low | name | no-history | place | post-tropical | remnant | remnant-low | track | track-alt | track-caption | track-size | track-upright | track-width | width }}<noinclude>{{Documentation}}</noinclude> | ||
Revision as of 20:49, 8 June 2023
File:Test Template Info-Icon - Version (2).svg Template documentation[create] [purge]