Template:PluginCard: Difference between revisions

From Miranda NG
Jump to navigation Jump to search
 
(Unify all PluginCard template, some clean-ups)
Line 1: Line 1:
#REDIRECT [[Template:PluginCard/ru]]
<!--Localisation
-->{{Localisation/PluginCard}}<!--
-->{{DISPLAYTITLE:{{{name|}}} }}{| class="infobox bordered" 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%;" | '''''{{{name|{{PAGENAME}}}}}'''''
{{#ifeq:{{{screenshot|}}}|***| | {{!}}-
{{!}} align="center" colspan="2" {{!}} {{#if:{{{screenshot|}}}|[[Image:{{{screenshot}}}{{!}}border{{!}}{{{name}}}{{!}}200px]]|''{{#hashvalue: localisation |noimage|No image}}''}}}}
{{#if:{{{dll|}}}|{{RowColor|#ccccff|'''{{#hashvalue:localisation|filename|Filename}}'''|{{{dll|}}}}}|}}
<!--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-->
|- valign="top"
{{#if:{{{requirements|}}}|{{RowColor|#ccccff|'''{{#hashvalue: localisation |systemreq|System <br/>requirements}}'''|{{{requirements|}}}}}|}}
|-
{{#if:{{{homepage|}}}|[{{{homepage|}}} '''{{#hashvalue: localisation |homepage|Homepage}}''']<br/>|}}
{{#if:{{{basename|}}}|{{#vardefine:pluginName|{{lc:{{{basename}}}}}}}|{{#vardefine:pluginName|{{lc:{{#replace:{{{dll|}}}|.dll|}}}}}}}}
|-
| align="center" colspan="2" bgcolor="#ccccff" style="font-size:110%;" |
'''{{#hashvalue:localisation |download-title|Download links1}}:'''
{{#if:{{{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]}}}}
{{!}}-
{{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]}}}}}}
{{!}}-
{{#if:{{{additionalLinks|}}}|
{{!}}-
{{RowColor|#fff|{{#hashvalue: localisation |links-other|Other}}:| {{{additionalLinks|}}}}}
|}}
|}
<includeonly>
[[Category:{{#hashvalue: localisation |cat-lang|Plugins:English}}]][[Category:Plugins]]
{{#if:{{{screenshot|}}}| |[[Category:Todo:{{#hashvalue: localisation |cat-todo|Screenshot required}}]]}}
</includeonly>
<noinclude>{{Languages/Template|by=PluginCard/by|cz=PluginCard/cz|de=PluginCard/de|en=PluginCard/en|fr=PluginCard/fr|pl=PluginCard/pl|ru=PluginCard}}
{{-}}
 
Использование:
<pre>{{PluginCard
| language code (English if empty or incorrect code)
| name = Название плагина
| author         = Автор плагина
| authors              = Авторы плагина
| screenshot = (н) Скриншот плагина (Поставьте *** (три звезды) если плагину не требуется скриншот)
| requirements = (н) Системные требования (к примеру, необходимые runtime библиотеки)
| dll = Имя dll плагина (перечисление)
| basename              = Имя dll плагина, без расширения (предпочтительный вариант)
| langpackru = (н) Перевод плагина (имя файла без .txt в SVN русского лангпака)
| additionalLinks      = (н) Дополнительные ссылки на скачивание, показываемые в карточке плагина
| hideDownloadLinks    = (н) Не показывать дефолтные ссылки на скачивание
| hide-s32              = (н) не показывать ссылку на стейбл-32
| hide-s64              = (н) не показывать ссылку на стейбл-64
| hide-l32              = (н) не показывать ссылку на лейтест-32
| hide-l64              = (н) не показывать ссылку на найтли-64
 
}}
</pre>
(н) = ''указывать необязательно''
</noinclude>

Revision as of 17:06, 27 February 2013

Template:Localisation/PluginCard{| class="infobox bordered" 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


|- valign="top"

|-


|- | align="center" colspan="2" bgcolor="#ccccff" style="font-size:110%;" | Download links1: |- |- 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;" | Current version: || x32, x64 |-

|}

Template:Languages/Template Template:-

Использование:

{{PluginCard
| language code (English if empty or incorrect code)
| name			= Название плагина
| author		        = Автор плагина
| authors               = Авторы плагина
| screenshot		= (н) Скриншот плагина (Поставьте *** (три звезды) если плагину не требуется скриншот)
| requirements		= (н) Системные требования (к примеру, необходимые runtime библиотеки)
| dll			= Имя dll плагина (перечисление)
| basename              = Имя dll плагина, без расширения (предпочтительный вариант)
| langpackru		= (н) Перевод плагина (имя файла без .txt в SVN русского лангпака)
| additionalLinks       = (н) Дополнительные ссылки на скачивание, показываемые в карточке плагина
| hideDownloadLinks     = (н) Не показывать дефолтные ссылки на скачивание
| hide-s32              = (н) не показывать ссылку на стейбл-32
| hide-s64              = (н) не показывать ссылку на стейбл-64
| hide-l32              = (н) не показывать ссылку на лейтест-32
| hide-l64              = (н) не показывать ссылку на найтли-64

}}

(н) = указывать необязательно