User:Goraf/PluginCard: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(code cleaning) |
||
Line 1: | Line 1: | ||
<!-- use #titleparts instead of MagicWords if pagetitle will change | <!-- info about needed changes for implementation | ||
-->{{#vardefine:PluginFileName | {{BASEPAGENAME}} }}{{#vardefine: PluginLang | {{SUBPAGENAME}} }}<!-- | |||
Load information about plugin -->{{User:Goraf/PluginInfo|}}<!-- | 1. {{User:Goraf/PluginInfo|}} -> {{PluginInfo|}} | ||
Language localisation ... -->{{Localization/PluginCard|{{#var:PluginLang}}}}<!-- | |||
and default values -->{{Localization/PluginCard|}}<!-- | --><!-- use #titleparts instead of MagicWords if pagetitle will change | ||
-->{{DISPLAYTITLE: {{#if:{{{name|}}} | {{{name}}} | {{#hashvalue:{{#var:PluginFileName}} |name |{{#var:PluginFileName}} }} }} }}<!-- | -->{{#vardefine:PluginFileName | {{BASEPAGENAME}} }}{{#vardefine:PluginLang | {{SUBPAGENAME}} }}<!-- | ||
Load information about plugin -->{{User:Goraf/PluginInfo|}}<!-- | |||
| align="center" colspan=2 bgcolor="#ccccff" style="font-size:110%;" | '''''{{#if:{{{name|}}} | {{{name}}} | {{#hashvalue:{{#var:PluginFileName}} |name |{{#var:PluginFileName}} }} }}''''' | Language localisation ... -->{{Localization/PluginCard|{{#var:PluginLang}} }}<!-- | ||
{{#ifeq:{{{screenshot|}}}|***| | {{!}}- | and default values -->{{Localization/PluginCard|}}<!-- | ||
Page title -->{{DISPLAYTITLE: {{#if:{{{name|}}} | {{{name}}} | {{#hashvalue:{{#var:PluginFileName}} |name |{{#var:PluginFileName}} }} }} }}<!-- | |||
-->{| class="infobox bordered plugincard" cellpadding="4" style="margin: 0 0 10px 10px; width: 22em; font-size: 90%; float: right;clear: right; box-shadow:1px 1px 3px #999;" | |||
<!-- | |||
Title | |||
-->| align="center" colspan=2 bgcolor="#ccccff" style="font-size:110%;" | '''''{{#if:{{{name|}}} | {{{name}}} | {{#hashvalue:{{#var:PluginFileName}} |name |{{#var:PluginFileName}} }} }}''''' | |||
<!-- | |||
Screenshot | |||
-->{{#ifeq:{{{screenshot|}}}|***| | {{!}}- | |||
{{!}} align="center" colspan="2" {{!}} {{#if:{{{screenshot|}}}|[[Image:{{{screenshot}}}{{!}}border{{!}}{{{name}}}{{!}}200px]]|''{{#hashvalue: localisation |noimage|No image}}''}}}} | {{!}} align="center" colspan="2" {{!}} {{#if:{{{screenshot|}}}|[[Image:{{{screenshot}}}{{!}}border{{!}}{{{name}}}{{!}}200px]]|''{{#hashvalue: localisation |noimage|No image}}''}}}} | ||
{{RowColor|#ccccff|'''{{#hashvalue:localisation|filename|Filename}}'''|{{{dll|{{BASEPAGENAME}}.dll}}}}} | <!-- | ||
<!--am-->{{#if:{{{author|}}}| {{RowColor|#ccccff|'''{{#hashvalue: localisation |plugin-author|Plugin author}}'''|{{Developer|{{{author|}}}}}}}}} | Filename | ||
{{#if:{{{authors|}}}|{{RowColor|#ccccff|'''{{#hashvalue: localisation |plugin-authors|Plugin authors}}'''|{{{authors|}}}}}|}}<!--/am--> | -->{{RowColor|#ccccff|'''{{#hashvalue:localisation|filename|Filename}}'''|{{{dll|{{BASEPAGENAME}}.dll}}}}} | ||
|- valign="top" | <!-- | ||
Author | |||
--><!--am-->{{#if:{{{author|}}} | {{RowColor|#ccccff|'''{{#hashvalue: localisation |plugin-author|Plugin author}}'''|{{Developer|{{{author|}}}}}}}}} | |||
<!-- | |||
Authors | |||
-->{{#if:{{{authors|}}}|{{RowColor|#ccccff|'''{{#hashvalue: localisation |plugin-authors|Plugin authors}}'''|{{{authors|}}}}}|}}<!--/am--> | |||
<!-- | |||
Requirements | |||
-->|- valign="top" | |||
{{#if:{{{requirements|}}}|{{RowColor|#ccccff|'''{{#hashvalue: localisation |systemreq|System <br/>requirements}}'''|{{{requirements|}}}}}|}} | {{#if:{{{requirements|}}}|{{RowColor|#ccccff|'''{{#hashvalue: localisation |systemreq|System <br/>requirements}}'''|{{{requirements|}}}}}|}} | ||
|- | <!-- | ||
Homepage | |||
-->|- | |||
{{#if:{{{homepage|}}}|[{{{homepage|}}} '''{{#hashvalue: localisation |homepage|Homepage}}''']<br/>|}} | {{#if:{{{homepage|}}}|[{{{homepage|}}} '''{{#hashvalue: localisation |homepage|Homepage}}''']<br/>|}} | ||
{{#vardefine:pluginName|{{lc:{{#if:{{{basename|}}}|{{{basename}}}|{{#if:{{{dll|}}}|{{#replace:{{{dll|}}}|.dll|}}|{{BASEPAGENAME}}}}}}}}}} | <!-- | ||
Download links | |||
-->{{#vardefine:pluginName|{{lc:{{#if:{{{basename|}}}|{{{basename}}}|{{#if:{{{dll|}}}|{{#replace:{{{dll|}}}|.dll|}}|{{BASEPAGENAME}}}}}}}}}} | |||
|- | |- | ||
| align="center" colspan="2" bgcolor="#ccccff" style="font-size:110%;" | | | align="center" colspan="2" bgcolor="#ccccff" style="font-size:110%;" | | ||
Line 25: | Line 46: | ||
{{!}}- | {{!}}- | ||
{{RowColor|#fff|{{#hashvalue: localisation |download-current|Current version}}:| {{#if:{{{hide-l32|}}}| |[http://miranda-ng.org/distr/x32/Plugins/{{#var:pluginName}}.zip x32],}} {{#if:{{{hide-l64|}}}| |[http://miranda-ng.org/distr/x64/Plugins/{{#var:pluginName}}.zip x64]}}}}}} | {{RowColor|#fff|{{#hashvalue: localisation |download-current|Current version}}:| {{#if:{{{hide-l32|}}}| |[http://miranda-ng.org/distr/x32/Plugins/{{#var:pluginName}}.zip x32],}} {{#if:{{{hide-l64|}}}| |[http://miranda-ng.org/distr/x64/Plugins/{{#var:pluginName}}.zip x64]}}}}}} | ||
{{!}}- | <!-- | ||
Additional links | |||
-->{{!}}- | |||
{{#if:{{{additionalLinks|}}}| | {{#if:{{{additionalLinks|}}}| | ||
{{!}}- | {{!}}- |