User:Goraf/PluginCard: Difference between revisions
Jump to navigation
Jump to search
(better way procesing empty screenshotOpt) |
(screenshotOpt - custom screenshot options for PluginInfo) |
||
Line 55: | Line 55: | ||
|   | |   | ||
}} | }} | ||
| border{{!}}200px | | border{{!}}200px <!-- default image options --> | ||
}}| <!-- caption -->{{ | }} | <!-- caption -->{{ | ||
#if: {{{name|}}} | #if: {{{name|}}} | ||
| {{{name}}} | | {{{name}}} | ||
Line 64: | Line 64: | ||
|{{ | |{{ | ||
#if: {{#hashvalue:{{#var:PluginFileName}} |screenshot}} | #if: {{#hashvalue:{{#var:PluginFileName}} |screenshot}} | ||
| [[File:{{#hashvalue:{{#var:PluginFileName}} |screenshot}}{{!}}border{{!}}200px | | [[File:{{#hashvalue:{{#var:PluginFileName}} |screenshot}} | {{ | ||
#if: {{#hashkeyexists:{{#var:PluginFileName}} |screenshotOpt}} <!-- if specified --> | |||
| {{#hashvalue:{{#var:PluginFileName}} |screenshotOpt | }} <!--   if empty --> | |||
| border{{!}}200px <!-- default image options --> | |||
}} | <!-- caption -->{{ | |||
#if: {{{name|}}} | |||
| {{{name}}} | |||
| {{#hashvalue:{{#var:PluginFileName}} |name |{{#var:PluginFileName}} }} | |||
| ''{{#hashvalue: localisation |noimage |{{#hashvalue:defaultL |noimage}} }}'' | }} | ||
]] | |||
| ''{{#hashvalue: localisation |noimage |{{#hashvalue:defaultL |noimage}} }}'' <!-- no screenshot --> | |||
}} | }} | ||
}} | }} |