User:Goraf/PluginCard: Difference between revisions
Jump to navigation
Jump to search
(code cleaning) |
("Screenshot" update) |
||
Line 1: | Line 1: | ||
<!-- info about needed changes for implementation | <!-- info about needed changes for implementation | ||
1. {{User:Goraf/PluginInfo|}} -> {{PluginInfo|}} | 1. uncomment {{User:Goraf/PluginInfo|}} | ||
2. {{User:Goraf/PluginInfo|}} -> {{PluginInfo|}} | |||
--><!-- use #titleparts instead of MagicWords if pagetitle will change | --><!-- use #titleparts instead of MagicWords if pagetitle will change | ||
-->{{#vardefine:PluginFileName | {{BASEPAGENAME}} }}{{#vardefine:PluginLang | {{SUBPAGENAME}} }}<!-- | -->{{#vardefine:PluginFileName | {{BASEPAGENAME}} }}{{#vardefine:PluginLang | {{SUBPAGENAME}} }}<!-- | ||
Load information about plugin | Load information about plugin {{User:Goraf/PluginInfo|}}--><!-- | ||
Language localisation ... -->{{Localization/PluginCard|{{#var:PluginLang}} }}<!-- | Language localisation ... -->{{Localization/PluginCard|{{#var:PluginLang}} }}<!-- | ||
and default values -->{{Localization/PluginCard|}}<!-- | and default values -->{{Localization/PluginCard|}}<!-- | ||
Line 16: | Line 17: | ||
<!-- | <!-- | ||
Screenshot | Screenshot | ||
-->{{#ifeq:{{{screenshot|}}}|***| | {{!}}- | -->{{#ifeq:{{#if:{{{screenshot|}}} | {{{screenshot}}} | {{#hashvalue:{{#var:PluginFileName}} |screenshot}} }} | *** | | {{!}}- | ||
{{!}} align="center" colspan="2" {{!}} {{#if:{{{screenshot|}}}|[[Image:{{{screenshot}}}{{!}}border{{!}}{{{name}}}{{!}}200px]]|''{{#hashvalue: localisation |noimage| | {{!}} align="center" colspan="2" {{!}} <!-- | ||
display an image -->{{#if:{{{screenshot|}}} | [[Image:{{{screenshot}}}{{!}}border{{!}}200px{{!}}<!-- | |||
caption -->{{#if:{{{name|}}} | {{{name}}} | {{#hashvalue:{{#var:PluginFileName}} |name |{{#var:PluginFileName}} }} }}]]<!-- | |||
-->| {{#if:{{#hashvalue:{{#var:PluginFileName}} |screenshot}} | [[Image:{{#hashvalue:{{#var:PluginFileName}} |screenshot}}{{!}}border{{!}}200px{{!}}<!-- | |||
caption -->{{#if:{{{name|}}} | {{{name}}} | {{#hashvalue:{{#var:PluginFileName}} |name |{{#var:PluginFileName}} }} }}]]<!-- | |||
no screenshot -->| ''{{#hashvalue: localisation |noimage |{{#hashvalue:defaultL |noimage}} }}''}} }} }} | |||
<!-- | <!-- | ||
Filename | Filename |