Template:PluginCard: Difference between revisions

From Miranda NG
Jump to navigation Jump to search
m (Reverted edits by Goraf (talk) to last revision by Wishmaster)
(Undo revision 3580 by Goraf (talk))
Line 1: Line 1:
<!--Localisation
<includeonly><!-- use #titleparts instead of MagicWords if pagetitle will change
-->{{Localization/PluginCard|{{{1}}}}}<!--
-->{{#vardefine:PluginFileName | {{BASEPAGENAMEE}} }}<!--
-->{{DISPLAYTITLE:{{{name|}}} }}{| 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;"
-->{{#vardefine:PluginLang | {{SUBPAGENAME}} }}<!--  
| align="center" colspan=2 bgcolor="#ccccff" style="font-size:110%;" | '''''{{{name|{{BASEPAGENAME}}}}}'''''
Load information about plugin -->{{PluginInfo|}}<!--
{{#ifeq:{{{screenshot|}}}|***| | {{!}}-
Language localisation ... -->{{Localization/PluginCard|{{#var:PluginLang}} }}<!--
{{!}} align="center" colspan="2" {{!}} {{#if:{{{screenshot|}}}|[[Image:{{{screenshot}}}{{!}}border{{!}}{{{name}}}{{!}}200px]]|''{{#hashvalue: localisation |noimage|No image}}''}}}}
and default values -->{{Localization/PluginCard|}}<!--
{{RowColor|#ccccff|'''{{#hashvalue:localisation|filename|Filename}}'''|{{{dll|{{BASEPAGENAME}}.dll}}}}}
Page title -->{{DISPLAYTITLE: {{#if:{{{name|}}} | {{{name}}} | {{#hashvalue:{{#var:PluginFileName}} |name |{{#var:PluginFileName}} }} }} }}<!--
<!--am-->{{#if:{{{author|}}}| {{RowColor|#ccccff|'''{{#hashvalue: localisation |plugin-author|Plugin author}}'''|{{Developer|{{{author|}}}}}}}}}
 
{{#if:{{{authors|}}}|{{RowColor|#ccccff|'''{{#hashvalue: localisation |plugin-authors|Plugin authors}}'''|{{{authors|}}}}}|}}<!--/am-->
  -->{{Languages}}<!--
|- valign="top"
-->{| 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;"
{{#if:{{{requirements|}}}|{{RowColor|#ccccff|'''{{#hashvalue: localisation |systemreq|System <br/>requirements}}'''|{{{requirements|}}}}}|}}
<!--
|-
Title
{{#if:{{{homepage|}}}|[{{{homepage|}}} '''{{#hashvalue: localisation |homepage|Homepage}}''']<br/>|}}
-->| align="center" colspan=2 bgcolor="#ccccff" style="font-size:110%;" | '''''{{#if:{{{name|}}} | {{{name}}} | {{#hashvalue:{{#var:PluginFileName}} |name |{{#var:PluginFileName}} }} }}'''''
{{#vardefine:pluginName|{{lc:{{#if:{{{basename|}}}|{{{basename}}}|{{#if:{{{dll|}}}|{{#replace:{{{dll|}}}|.dll|}}|{{BASEPAGENAME}}}}}}}}}}
<!--
|-
Screenshot
-->{{#ifeq:{{#if:{{{screenshot|}}} | {{{screenshot}}} | {{#hashvalue:{{#var:PluginFileName}} |screenshot}} }} | *** | | {{!}}-
{{!}} 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
-->|-
{{#if:{{#hashvalue:{{#var:PluginFileName}} |hideFileName}} | | {{RowColor|#ccccff|'''{{#hashvalue:localisation|filename |{{#hashvalue:defaultL |filename}} }}''' | {{#if:{{#hashvalue:{{#var:PluginFileName}} |filename}} | {{#hashvalue:{{#var:PluginFileName}} |filename}} | {{#var:PluginFileName}} }}.dll }} }}
<!--
Author
-->{{#if:{{{author|}}} | {{RowColor|#ccccff|'''{{#hashvalue: localisation |plugin-author |{{#hashvalue:defaultL |plugin-author}} }}''' | {{Developer|{{{author|}}} }} }} <!--
if not -->| {{#if:{{#hashvalue:{{#var:PluginFileName}} |author}} | {{RowColor|#ccccff|'''{{#hashvalue: localisation |plugin-author |{{#hashvalue:defaultL |plugin-author}} }}''' | {{Developer|{{#hashvalue:{{#var:PluginFileName}} |author}} }} }} }} }}
<!--
Authors
-->{{#if:{{{authors|}}} | {{RowColor|#ccccff|'''{{#hashvalue: localisation |plugin-authors |{{#hashvalue:defaultL |plugin-authors}} }}''' | {{{authors|}}} }} <!--
if not -->| {{#if:{{#hashvalue:{{#var:PluginFileName}} |authors}} | {{RowColor|#ccccff|'''{{#hashvalue: localisation |plugin-authors |{{#hashvalue:defaultL |plugin-authors}} }}''' | {{#hashvalue:{{#var:PluginFileName}} |authors}} }} }} }}
<!--
Requirements
-->|- valign="top"
{{#if:{{{requirements|}}} | {{RowColor|#ccccff|'''{{#hashvalue: localisation |systemreq |{{#hashvalue:defaultL |systemreq}}}}''' | {{{requirements|}}} }} <!--
if not -->| {{#if:{{#hashvalue:{{#var:PluginFileName}} |requirements}} |  {{RowColor|#ccccff|'''{{#hashvalue: localisation |systemreq |{{#hashvalue:defaultL |systemreq}}}}''' | {{#hashvalue:{{#var:PluginFileName}} |requirements}} }} }} }}
<!--
Homepage
-->|-
{{#if:{{{homepage|}}} | {{!}} align="center" colspan="2" {{!}}[{{{homepage|}}} '''{{#hashvalue: localisation |homepage |{{#hashvalue:defaultL |homepage}} }}'''] <!--
if not -->| {{#if:{{#hashvalue:{{#var:PluginFileName}} |homepage}} | {{!}} align="center" colspan="2" {{!}}[{{#hashvalue:{{#var:PluginFileName}} |homepage}} '''{{#hashvalue: localisation |homepage |{{#hashvalue:defaultL |homepage}} }}'''] }} }}
<!--
Download links
-->|-
| align="center" colspan="2" bgcolor="#ccccff" style="font-size:110%;" |
| align="center" colspan="2" bgcolor="#ccccff" style="font-size:110%;" |
'''{{#hashvalue:localisation |download-title|Download links}}:'''
'''{{#hashvalue:localisation |download-title |{{#hashvalue:defaultL |download-title}}}}:'''
{{#if:{{{hideDownloadLinks|}}}| |
{{#if:{{#if:{{{hideDownloadLinks|}}} | {{{hideDownloadLinks}}} | {{#if:{{#hashvalue:{{#var:PluginFileName}} |hideDownloadLinks}} | {{#hashvalue:{{#var:PluginFileName}} |hideDownloadLinks}} }} }} | |
{{!}}-
<!--
{{RowColor|#fff|{{#hashvalue: localisation |download-stable|Stable version}}:| {{#if:{{{hide-s32|}}}| |[http://miranda-ng.org/distr/stable/x32/Plugins/{{#var:pluginName}}.zip x32],}} {{#if:{{{hide-s64|}}}| |[http://miranda-ng.org/distr/stable/x64/Plugins/{{#var:pluginName}}.zip x64]}}}}
stable -->{{!}}-
{{!}}-
{{RowColor|#fff|{{#hashvalue: localisation |download-stable |{{#hashvalue:defaultL |download-stable}} }}: | <!--
{{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]}}}}}}
s-x32 -->{{#if:{{#hashvalue:{{#var:PluginFileName}} |hide-s32}} | | [http://miranda-ng.org/distr/stable/x32/Plugins/{{lc:{{#var:PluginFileName}}}}.zip x32],}} <!--
{{!}}-
s-x64 -->{{#if:{{#hashvalue:{{#var:PluginFileName}} |hide-s64}} | | [http://miranda-ng.org/distr/stable/x64/Plugins/{{lc:{{#var:PluginFileName}}}}.zip x64]}} }}
{{#if:{{{additionalLinks|}}}|
<!--
{{!}}-
latest -->{{!}}-
{{RowColor|#fff|{{#hashvalue: localisation |links-other|Other}}:| {{{additionalLinks|}}}}}
{{RowColor|#fff|{{#hashvalue: localisation |download-current |{{#hashvalue:defaultL |download-current}} }}: | <!--
|}}
l-x32 -->{{#if:{{#hashvalue:{{#var:PluginFileName}} |hide-l32}} | | [http://miranda-ng.org/distr/x32/Plugins/{{lc:{{#var:PluginFileName}}}}.zip x32],}} <!--
|}<includeonly>{{Languages}}
l-x64 -->{{#if:{{#hashvalue:{{#var:PluginFileName}} |hide-l64}} | | [http://miranda-ng.org/distr/x64/Plugins/{{lc:{{#var:PluginFileName}}}}.zip x64]}} }} }}
[[Category:{{#hashvalue: localisation |cat-lang|Plugins:English}}]][[Category:Plugins]]
<!--
{{#if:{{{screenshot|}}}| |[[Category:Todo:{{#hashvalue: localisation |cat-todo|Screenshot required}}]]}}
Additional links
</includeonly>
-->{{!}}-
<noinclude>{{Languages/Template|by=PluginCard/by|cz=PluginCard/cz|de=PluginCard/de|en=PluginCard/en|fr=PluginCard/fr|pl=PluginCard/pl|ru=PluginCard}}
<!--
{{-}}
check if any -->{{#if:{{#if:{{{additionalLinks|}}} | {{{additionalLinks}}} | {{#if:{{#hashvalue:{{#var:PluginFileName}} |additionalLinks}} | {{#hashvalue:{{#var:PluginFileName}} |additionalLinks}} }} }} | <!--
Использование:
-->{{RowColor|#fff|{{#hashvalue: localisation |links-other |{{#hashvalue:defaultL |links-other}} }}:  
<pre>{{PluginCard
| {{#if:{{#hashvalue:{{#var:PluginFileName}} |additionalLinks}} | {{#hashvalue:{{#var:PluginFileName}} |additionalLinks}},{{#if:{{{additionalLinks|}}} | {{{additionalLinks}}} }}  
| language code (English if empty or incorrect code)
| {{#if:{{{additionalLinks|}}} | {{{additionalLinks}}} }} }} }} }}  
| name = Название плагина
|}<!--
| author = Автор плагина
 
| authors = Авторы плагина
--><!--
| screenshot = (н) Скриншот плагина (Поставьте *** (три звезды) если плагину не требуется скриншот)
-->[[Category:{{#hashvalue: localisation |cat-lang |{{#hashvalue:defaultL |cat-lang}} }}]][[Category:Plugins]]
| requirements = (н) Системные требования (к примеру, необходимые runtime библиотеки)
{{#if:{{{screenshot}}}| |[[Category:Todo:{{#hashvalue: localisation |cat-todo |{{#hashvalue:defaultL |cat-lang}} }}]] }}
| dll = (н) Имя dll плагина (перечисление)
{{#ifeq: {{#var:PluginLang}} | en | {{#if:{{#hashvalue:{{#var:PluginFileName}} |screenshot}} | | [[Category:Todo:{{#hashvalue: localisation |cat-todo |{{#hashvalue:defaultL |cat-lang}} }}]] }} | }}</includeonly><!--
| basename = (н) Имя dll плагина, без расширения (предпочтительный вариант)
 
| langpackru = (н) Перевод плагина (имя файла без .txt в SVN русского лангпака)
--><noinclude>{{PluginCard}}kalpa
| additionalLinks = (н) Дополнительные ссылки на скачивание, показываемые в карточке плагина
{{Todo| Doc }}
| hideDownloadLinks = (н) Не показывать дефолтные ссылки на скачивание
 
| hide-s32 = (н) Не показывать ссылку на стейбл-32
| hide-s64 = (н) Не показывать ссылку на стейбл-64
| hide-l32 = (н) Не показывать ссылку на лейтест-32
| hide-l64 = (н) Не показывать ссылку на лейтест-64
}}
</pre>
* Использовать dll следует если у плагина имеется несколько вариантов именования длл.
* Использовать basename следует если имя зип-архива с плагином не совпадает с именем данной страницы без языкового суффикса.
* (н) = указывать необязательно.
</noinclude>
</noinclude>

Revision as of 13:23, 24 March 2013

{| 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;"

| align="center" colspan=2 bgcolor="#ccccff" style="font-size:110%;" | PluginCard |- | align="center" colspan="2" | No image |- |- style="vertical-align:top;" | style="white-space: nowrap; text-align:right; background-color:#ccccff;" | Filename || PluginCard.dll


|- valign="top"

|-

|- | align="center" colspan="2" bgcolor="#ccccff" style="font-size:110%;" | Download links: |- |- style="vertical-align:top;" | style="white-space: nowrap; text-align:right; background-color:#fff;" | Stable version: || x32, x64 |- |- style="vertical-align:top;" | style="white-space: nowrap; text-align:right; background-color:#fff;" | Development version: || x32, x64 |-

|}

kalpa

Todo: Doc