Template:PluginCard: Difference between revisions
Jump to navigation
Jump to search
(ability to specify options for screenshot locally and globally (PluginInfo) using screenshotOpt parameter) |
(now looking for "screenshotOpt" in the order locally -> globally -> default value, in any cases) |
||
Line 53: | Line 53: | ||
|   | |   | ||
}} | }} | ||
| border{{!}}200px <!-- default image options --> | |{{ | ||
#if: {{#hashkeyexists:{{#var:PluginFileName}} |screenshotOpt}} <!-- if specified --> | |||
| {{#hashvalue:{{#var:PluginFileName}} |screenshotOpt | }} <!--   if empty --> | |||
| border{{!}}200px <!-- default image options --> | |||
}} | |||
}} | <!-- caption -->{{ | }} | <!-- caption -->{{ | ||
#if: {{{name|}}} | #if: {{{name|}}} | ||
Line 63: | Line 67: | ||
#if: {{#hashvalue:{{#var:PluginFileName}} |screenshot}} | #if: {{#hashvalue:{{#var:PluginFileName}} |screenshot}} | ||
| [[File:{{#hashvalue:{{#var:PluginFileName}} |screenshot}} | {{ | | [[File:{{#hashvalue:{{#var:PluginFileName}} |screenshot}} | {{ | ||
#if: {{#hashkeyexists:{{#var:PluginFileName}} |screenshotOpt}} <!-- if specified --> | #ifeq: {{{screenshotOpt|}}} | {{{screenshotOpt|-}}} <!-- specified and may be empty --> | ||
|{{ | |||
#if: {{{screenshotOpt|}}} <!-- if not empty --> | |||
| {{{screenshotOpt}}} | |||
|   | |||
}} | |||
|{{ | |||
#if: {{#hashkeyexists:{{#var:PluginFileName}} |screenshotOpt}} <!-- if specified --> | |||
| {{#hashvalue:{{#var:PluginFileName}} |screenshotOpt | }} <!--   if empty --> | |||
| border{{!}}200px <!-- default image options --> | |||
}} | |||
}} | <!-- caption -->{{ | }} | <!-- caption -->{{ | ||
#if: {{{name|}}} | #if: {{{name|}}} |