Template:PluginCard: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(custom links labels: x32 -> 32-bit, x64 -> 64-bit) |
||
(48 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly><!-- use #titleparts instead of MagicWords if pagetitle will change -->{{ | ||
<!-- use #titleparts instead of MagicWords if pagetitle will change | #vardefine:PluginFileName | {{BASEPAGENAMEE}} | ||
-->{{#vardefine:PluginFileName | {{BASEPAGENAMEE}} }}{{# | }}{{ | ||
#if: {{#varexists:PluginLang}} | |||
| {{PageLang | {{#var:PluginLang}} }} <!-- from ResolveLang pages --> | |||
and default values -->{{Localization/PluginCard|}}<!-- | | {{#vardefine:PluginLang | {{PageLangCode}} }}{{PageLang | {{PageLangCode}} }} <!-- remove the first one after transition to PageLang --> | ||
Page title -->{{DISPLAYTITLE: {{#if:{{{name|}}} | {{{name}}} | {{#hashvalue:{{#var:PluginFileName}} |name |{{#var:PluginFileName}} }} }} }}<!-- | }}<!-- Language localisation ... | ||
-->{{Localization/PluginCard|{{#var:PageLang}} }}<!-- | |||
and default values | |||
-->{{Localization/PluginCard|}}<!-- | |||
Load information about plugin | |||
-->{{PluginInfo|}}<!-- | |||
Page title | |||
-->{{DISPLAYTITLE: {{ | |||
#if: {{{name|}}} | |||
| {{{name}}} | |||
| {{#hashvalue:{{#var:PluginFileName}} |name |{{#var:PluginFileName}} }} | |||
}} | |||
}}<!-- | |||
Check if Plugin:PluginName page exist if not display warning and add creation link | |||
-->{{#ifexist: Plugin:{{#var:PluginFileName}} | |||
| | |||
| {{TNT|Warning|If you want to create a new Plugin page, you are doing it wrong. Do not save this page/changes. You need to create page {{Strong|Plugin:{{#var:PluginFileName}}}}. Please create it using the link below. Content will be generated automatically. You only need to save the changes. | |||
}}<span class="plainlinks createlinks">[{{fullurl:Plugin:{{#var:PluginFileName}} | action=edit&preload=Template:PluginPage/preload&summary=Plugin:{{#var:PluginFileName}} }} '''Create page''']</span>{{clear}}<br/> | |||
}} | |||
{| class="plugincard" id="plugininfo" cellpadding="4" style="margin: 0 0 10px 10px; width: 22em; font-size: 90%; float: right;clear: right; box-shadow:1px 1px 3px #999;" | |||
<!-- | |||
Title | Title | ||
--> | |||
--> | |||
! colspan="2" id="pluginname" style="font-size:110%;background-color:#ccccff;" | {{ | |||
#if: {{{name|}}} | |||
| {{{name}}} | |||
| {{#hashvalue:{{#var:PluginFileName}} |name |{{#var:PluginFileName}} }} | |||
}} | |||
<!-- | <!-- | ||
Screenshot | Screenshot | ||
-->{{#ifeq:{{#if:{{{screenshot|}}} | {{{screenshot}}} | {{#hashvalue:{{#var:PluginFileName}} |screenshot}} }} | *** | | {{!}}- | |||
{{!}} | -->{{ | ||
#ifeq: {{ | |||
#if: {{{screenshot|}}} | |||
| {{{screenshot}}} | |||
| {{#hashvalue:{{#var:PluginFileName}} |screenshot}} | |||
}} | *** | |||
|  | |||
|{{!}}- | |||
{{!}} colspan="2" id="pluginimage" style="text-align:center;font-style: italic;"{{!}} <!-- | |||
display an image | |||
-->{{ | |||
#if: {{{screenshot|}}} | |||
| [[File:{{{screenshot}}} | {{ | |||
#ifeq: {{{screenshotOpt|}}} | {{{screenshotOpt|-}}} <!-- specified and may be empty --> | |||
|{{ | |||
#if: {{{screenshotOpt|}}} <!-- if not empty --> | |||
| {{{screenshotOpt}}} | |||
|   | |||
}} | |||
|{{ | |||
#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}} }} | |||
}} | |||
]] | |||
|{{ | |||
#if: {{#hashvalue:{{#var:PluginFileName}} |screenshot}} | |||
| [[File:{{#hashvalue:{{#var:PluginFileName}} |screenshot}} | {{ | |||
#ifeq: {{{screenshotOpt|}}} | {{{screenshotOpt|-}}} <!-- specified and may be empty --> | |||
|{{ | |||
#if: {{{screenshotOpt|}}} <!-- if not empty --> | |||
| {{{screenshotOpt}}} | |||
|   | |||
}} | |||
|{{ | |||
#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 --> | |||
}} | |||
}} | |||
}} | |||
<!-- | <!-- | ||
Filename | Filename | ||
-->|- | |||
{{#if:{{#hashvalue:{{#var:PluginFileName}} |hideFileName}} | | {{RowColor|#ccccff| | -->|- id="filename" | ||
{{ | |||
#if: {{#hashvalue:{{#var:PluginFileName}} |hideFileName}} | |||
|  | |||
|{{ | |||
RowColor|#ccccff;font-weight:bold|{{#hashvalue:localisation|filename |{{#hashvalue:defaultL |filename}} }} | |||
|{{ <!-- display filename --> | |||
#if: {{#hashvalue:{{#var:PluginFileName}} |filename}} | |||
| {{#hashvalue:{{#var:PluginFileName}} |filename}} | |||
| {{#var:PluginFileName}} | |||
}}.dll | |||
}} | |||
}} | |||
<!-- | <!-- | ||
Author | Author | ||
-->{{#if:{{{author|}}} | {{RowColor|#ccccff| | |||
-->{{ | |||
#if: {{{author|}}} | |||
|{{ | |||
RowColor|#ccccff;font-weight:bold|{{#hashvalue: localisation |plugin-author |{{#hashvalue:defaultL |plugin-author}} }} | |||
| {{Developer|{{{author|}}} }} | |||
}} | |||
|{{ | |||
#if: {{#hashvalue:{{#var:PluginFileName}} |author}} | |||
|{{ | |||
RowColor|#ccccff;font-weight:bold|{{#hashvalue: localisation |plugin-author |{{#hashvalue:defaultL |plugin-author}} }} | |||
| {{Developer|{{#hashvalue:{{#var:PluginFileName}} |author}} }} | |||
}} | |||
| | |||
}} | |||
}} | |||
<!-- | <!-- | ||
Authors | Authors | ||
-->{{#if:{{{authors|}}} | {{RowColor|#ccccff| | |||
-->{{ | |||
#if: {{{authors|}}} | |||
|{{ | |||
RowColor|#ccccff;font-weight:bold|{{#hashvalue: localisation |plugin-authors |{{#hashvalue:defaultL |plugin-authors}} }} | |||
| {{{authors|}}} | |||
}} | |||
|{{ | |||
#if: {{#hashvalue:{{#var:PluginFileName}} |authors}} | |||
|{{ | |||
RowColor|#ccccff;font-weight:bold|{{#hashvalue: localisation |plugin-authors |{{#hashvalue:defaultL |plugin-authors}} }} | |||
| {{#hashvalue:{{#var:PluginFileName}} |authors}} | |||
}} | |||
| | |||
}} | |||
}} | |||
<!-- | <!-- | ||
Requirements | Requirements | ||
-->|- | |||
{{#if:{{{requirements|}}} | | -->|- style="vertical-align:top;" id="requirements" | ||
{{ | |||
#if: {{{requirements|}}} | |||
|{{ | |||
RowColor|#ccccff;font-weight:bold|{{#hashvalue: localisation |systemreq |{{#hashvalue:defaultL |systemreq}}}} | |||
| {{{requirements|}}} | |||
}} | |||
|{{ | |||
#if: {{#hashvalue:{{#var:PluginFileName}} |requirements}} | |||
|{{ | |||
RowColor|#ccccff;font-weight:bold|{{#hashvalue: localisation |systemreq |{{#hashvalue:defaultL |systemreq}}}} | |||
| {{#hashvalue:{{#var:PluginFileName}} |requirements}} | |||
}} | |||
| | |||
}} | |||
}} | |||
<!-- | <!-- | ||
Homepage | Homepage | ||
-->|- | |||
{{#if:{{{homepage|}}} | {{!}} | -->|- id="homepage" | ||
{{ | |||
#if: {{{homepage|}}} | |||
| {{!}} style="text-align:center;font-weight:bold;" colspan="2" {{!}}[{{{homepage|}}} {{#hashvalue: localisation |homepage |{{#hashvalue:defaultL |homepage}} }}] | |||
|{{ | |||
#if: {{#hashvalue:{{#var:PluginFileName}} |homepage}} | |||
| {{!}} style="text-align:center;font-weight:bold;" colspan="2" {{!}}[{{#hashvalue:{{#var:PluginFileName}} |homepage}} {{#hashvalue: localisation |homepage |{{#hashvalue:defaultL |homepage}} }}] | |||
| | |||
}} | |||
}} | |||
<!-- | <!-- | ||
Download links | Download links | ||
-->|- | |||
-->|- id="download" | |||
' | ! colspan="2" style="font-size:110%;background-color:#ccccff;" |{{ | ||
{{#if:{{#if:{{{hideDownloadLinks|}}} | {{{hideDownloadLinks}}} | {{#if:{{#hashvalue:{{#var:PluginFileName}} |hideDownloadLinks}} | {{#hashvalue:{{#var:PluginFileName}} |hideDownloadLinks}} }} }} | | | <!-- don't display download-title, if there is no links --> | ||
<!-- | #if:{{ | ||
#if: {{{hideDownloadLinks|}}} | |||
{{RowColor|#fff|{{#hashvalue: localisation |download-stable |{{#hashvalue:defaultL |download-stable}} }}: | <!-- | |{{ | ||
#if: {{{additionalLinks|}}} | |||
| display title | |||
<!-- | |{{ | ||
#if: {{#hashvalue:{{#var:PluginFileName}} |additionalLinks}} | |||
{{RowColor|#fff|{{#hashvalue: localisation |download-current |{{#hashvalue:defaultL |download-current}} }}: | <!-- | | display title | ||
| | |||
}} | |||
}} | |||
|{{ | |||
#if: {{#hashvalue:{{#var:PluginFileName}} |hideDownloadLinks}} | |||
|{{ | |||
#if: {{{additionalLinks|}}} | |||
| display title | |||
|{{ | |||
#if: {{#hashvalue:{{#var:PluginFileName}} |additionalLinks}} | |||
| display title | |||
| | |||
}} | |||
}} | |||
| display title | |||
}} | |||
}} | |||
| {{#hashvalue:localisation |download-title |{{#hashvalue:defaultL |download-title}}}} | |||
|  | |||
}} | |||
{{ | |||
#if:{{ | |||
#if: {{{hideDownloadLinks|}}} | |||
| {{{hideDownloadLinks}}} | |||
|{{ | |||
#if: {{#hashvalue:{{#var:PluginFileName}} |hideDownloadLinks}} | |||
| {{#hashvalue:{{#var:PluginFileName}} |hideDownloadLinks}} | |||
| | |||
}} | |||
}} | |||
| | |||
| | |||
<!-- stable --> | |||
{{ | |||
#if: {{#hashvalue:{{#var:PluginFileName}} |hide-stable}} | |||
| | |||
|{{ | |||
RowColor|#fff|{{#hashvalue: localisation |download-stable |{{#hashvalue:defaultL |download-stable}} }}: | |||
|{{ <!-- s-32-bit --> | |||
#if: {{#hashvalue:{{#var:PluginFileName}} |hide-s32}} | |||
| | |||
|{{ <!-- custom download link --> | |||
#if: {{#hashvalue:{{#var:PluginFileName}} |link-s32}} | |||
| [{{#hashvalue:{{#var:PluginFileName}} |link-s32}} 32-bit],  | |||
| [//miranda-ng.org/distr/stable/x32/Plugins/{{lc:{{#var:PluginFileName}}}}.zip 32-bit],  | |||
}} | |||
}}{{ <!-- s-64-bit --> | |||
#if: {{#hashvalue:{{#var:PluginFileName}} |hide-s64}} | |||
| | |||
|{{ <!-- custom download link --> | |||
#if: {{#hashvalue:{{#var:PluginFileName}} |link-s64}} | |||
| [{{#hashvalue:{{#var:PluginFileName}} |link-s64}} 64-bit] | |||
| [//miranda-ng.org/distr/stable/x64/Plugins/{{lc:{{#var:PluginFileName}}}}.zip 64-bit] | |||
}} | |||
}} | |||
}} | |||
}} | |||
<!-- latest --> | |||
{{ | |||
#if: {{#hashvalue:{{#var:PluginFileName}} |hide-latest}} | |||
| | |||
|{{ | |||
RowColor|#fff|{{#hashvalue: localisation |download-current |{{#hashvalue:defaultL |download-current}} }}: | |||
|{{ <!-- l-32-bit --> | |||
#if: {{#hashvalue:{{#var:PluginFileName}} |hide-l32}} | |||
| | |||
|{{ <!-- custom download link --> | |||
#if: {{#hashvalue:{{#var:PluginFileName}} |link-l32}} | |||
| [{{#hashvalue:{{#var:PluginFileName}} |link-l32}} 32-bit],  | |||
| [//miranda-ng.org/distr/x32/Plugins/{{lc:{{#var:PluginFileName}}}}.zip 32-bit],  | |||
}} | |||
}}{{ <!-- l-64-bit --> | |||
#if: {{#hashvalue:{{#var:PluginFileName}} |hide-l64}} | |||
| | |||
|{{ <!-- custom download link --> | |||
#if: {{#hashvalue:{{#var:PluginFileName}} |link-l64}} | |||
| [{{#hashvalue:{{#var:PluginFileName}} |link-l64}} 64-bit] | |||
| [//miranda-ng.org/distr/x64/Plugins/{{lc:{{#var:PluginFileName}}}}.zip 64-bit] | |||
}} | |||
}} | |||
}} | |||
}} | |||
}} | |||
<!-- | <!-- | ||
Additional links | Additional links | ||
--> | |||
<!-- | --> | ||
<!-- check if any -->{{ | |||
#if:{{ | |||
| {{#if:{{#hashvalue:{{#var:PluginFileName}} |additionalLinks}} | {{#hashvalue:{{#var:PluginFileName}} |additionalLinks}},{{#if:{{{additionalLinks|}}} | {{{additionalLinks}}} }} | #if: {{{additionalLinks|}}} | ||
| {{#if:{{{additionalLinks|}}} | {{{additionalLinks}}} }} }} }} }} | | {{{additionalLinks}}} | ||
|{{ | |||
#if: {{#hashvalue:{{#var:PluginFileName}} |additionalLinks}} | |||
| {{#hashvalue:{{#var:PluginFileName}} |additionalLinks}} | |||
| | |||
}} | |||
}} | |||
|{{ | |||
RowColor|#fff|{{#hashvalue: localisation |links-other |{{#hashvalue:defaultL |links-other}} }}: | |||
|{{ | |||
#if: {{#hashvalue:{{#var:PluginFileName}} |additionalLinks}} | |||
| {{#hashvalue:{{#var:PluginFileName}} |additionalLinks}}, {{#if:{{{additionalLinks|}}} | {{{additionalLinks}}} |}} | |||
|{{ | |||
#if: {{{additionalLinks|}}} | |||
| {{{additionalLinks}}} | |||
| | |||
}} | |||
}} | |||
}} | |||
}} | |||
|}<!-- | |}<!-- | ||
--><!-- | --><!-- | ||
--> | Load information about plugin's gropus | ||
{{#if | -->{{PluginInfo/Groups|}}<!-- | ||
{{ | Check if plugin is part of a group 'testing' and if so then display proper communicats (warnings etc.) | ||
-->{{ | |||
#if: {{#hashvalue:{{#var:PluginFileName}} |grp-testing}} | |||
| {{Warning|{{L10n:Messages| test_plug_warn}} }} {{Message|message={{L10n:Messages| test_plug_msg}} }} | |||
}}<!-- | |||
Categories | |||
-->[[Category:Plugins{{#translation:}}]] | |||
[[Category:All plugins pages]] | |||
{{ | |||
#if: {{{screenshot}}} | |||
| | |||
|{{#ifeq: {{#var:PageLang}} | en | |||
|{{#if: {{#hashvalue:{{#var:PluginFileName}} |screenshot}} | |||
| | |||
| [[Category:Todo:{{#hashvalue: localisation |cat-todo |{{#hashvalue:defaultL |cat-lang}} }}]] | |||
}} | |||
| | |||
}} | |||
}}<nowiki/></includeonly><noinclude> | |||
{{Documentation}} | |||
<!-- Add categories and interwikis to the /doc subpage, not here! --> | |||
</noinclude> | </noinclude> |
Revision as of 19:44, 12 March 2019
Usage
name | |
No image | |
Filename | PluginFileName.dll |
Author | author |
Authors | author_1, author_2 |
System requirements |
requirements |
Homepage | |
Download links | |
Stable version: | x32, x64 |
Current version: | x32, x64 |
Other: | additionalLink_1, additionalLink_2 |
See also
The above documentation is transcluded from Template:PluginCard/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |