Template:PluginCard: Difference between revisions
Jump to navigation
Jump to search
(new option to hide links; support for custom download link;) |
(ability to specify options for screenshot locally and globally (PluginInfo) using screenshotOpt parameter) |
||
Line 46: | Line 46: | ||
-->{{ | -->{{ | ||
#if: {{{screenshot|}}} | #if: {{{screenshot|}}} | ||
| [[ | | [[File:{{{screenshot}}} | {{ | ||
#ifeq: {{{screenshotOpt|}}} | {{{screenshotOpt|-}}} <!-- specified and may be empty --> | |||
|{{ | |||
#if: {{{screenshotOpt|}}} <!-- if not empty --> | |||
| {{{screenshotOpt}}} | |||
|   | |||
}} | |||
| border{{!}}200px <!-- default image options --> | |||
}} | <!-- caption -->{{ | |||
#if: {{{name|}}} | #if: {{{name|}}} | ||
| {{{name}}} | | {{{name}}} | ||
| {{#hashvalue:{{#var:PluginFileName}} |name |{{#var:PluginFileName}} }} | | {{#hashvalue:{{#var:PluginFileName}} |name |{{#var:PluginFileName}} }} | ||
}}]]<!-- | }} | ||
]] | |||
| ''{{#hashvalue: localisation |noimage |{{#hashvalue:defaultL |noimage}} }}'' | |{{ | ||
#if: {{#hashvalue:{{#var:PluginFileName}} |screenshot}} | |||
| [[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}} }}'' <!-- no screenshot --> | |||
}} | }} | ||
}} | }} |