User:Goraf/PluginCard: Difference between revisions
Jump to navigation
Jump to search
(Category:Todo for screenshot) |
(partial code cleaning) |
||
Line 3: | Line 3: | ||
1. copy | 1. copy | ||
--><!-- use #titleparts instead of MagicWords if pagetitle will change | --><!-- use #titleparts instead of MagicWords if pagetitle will change -->{{ | ||
-->{{#vardefine:PluginFileName | {{BASEPAGENAMEE}} }}{{#vardefine:PluginLang | {{SUBPAGENAME}} }}<!-- | #vardefine:PluginFileName | {{BASEPAGENAMEE}} | ||
}}{{ | |||
Language localisation ... -->{{Localization/PluginCard|{{#var:PluginLang}} }}<!-- | #vardefine:PluginLang | {{SUBPAGENAME}} | ||
and default values -->{{Localization/PluginCard|}}<!-- | }}<!-- Load information about plugin | ||
Page title -->{{DISPLAYTITLE: {{#if:{{{name|}}} | {{{name}}} | {{#hashvalue:{{#var:PluginFileName}} |name |{{#var:PluginFileName}} }} }} }}<!-- | -->{{PluginInfo|}}<!-- | ||
Language localisation ... | |||
-->{{Localization/PluginCard|{{#var:PluginLang}} }}<!-- | |||
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 | Title | ||
-->| align="center" colspan=2 bgcolor="#ccccff" style="font-size:110%;" | '''''{{#if:{{{name|}}} | {{{name}}} | {{#hashvalue:{{#var:PluginFileName}} |name |{{#var:PluginFileName}} }} }}''''' | --> | ||
| align="center" colspan=2 bgcolor="#ccccff" style="font-size:110%;" | '''''{{ | |||
#if: {{{name|}}} | |||
| {{{name}}} | |||
| {{#hashvalue:{{#var:PluginFileName}} |name |{{#var:PluginFileName}} }} | |||
}}''''' | |||
<!-- | <!-- | ||
Screenshot | Screenshot | ||
-->{{#ifeq:{{#if:{{{screenshot|}}} | {{{screenshot}}} | {{#hashvalue:{{#var:PluginFileName}} |screenshot}} }} | *** | | {{!}}- | -->{{ | ||
{{!}} align="center" colspan="2" {{!}} <!-- | #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 | Filename | ||
-->{{RowColor|#ccccff|'''{{#hashvalue:localisation|filename |{{#hashvalue:defaultL |filename}} }}''' | {{#var:PluginFileName}}.dll }} | -->|- | ||
{{ | |||
#if: {{#hashvalue:{{#var:PluginFileName}} |hideFileName}} | |||
|  | |||
| {{RowColor|#ccccff|'''{{#hashvalue:localisation|filename |{{#hashvalue:defaultL |filename}} }}''' | {{ <!-- display filename --> | |||
#if: {{#hashvalue:{{#var:PluginFileName}} |filename}} | |||
| {{#hashvalue:{{#var:PluginFileName}} |filename}} | |||
| {{#var:PluginFileName}} | |||
}}.dll }} | |||
}} | |||
<!-- | <!-- | ||
Author | Author | ||
Line 70: | Line 121: | ||
|}<!-- | |}<!-- | ||
--><includeonly>{{Languages}} | --><includeonly>{{Languages}}<!-- | ||
[[Category:{{#hashvalue: localisation |cat-lang |{{#hashvalue:defaultL |cat-lang}} }}]][[Category:Plugins]] | -->[[Category:{{#hashvalue: localisation |cat-lang |{{#hashvalue:defaultL |cat-lang}} }}]][[Category:Plugins]] | ||
{{#if:{{{screenshot}}}| |[[Category:Todo:{{#hashvalue: localisation |cat-todo |{{#hashvalue:defaultL |cat-lang}} }}]] }} | {{#if:{{{screenshot}}}| |[[Category:Todo:{{#hashvalue: localisation |cat-todo |{{#hashvalue:defaultL |cat-lang}} }}]] }} | ||
{{#ifeq: {{#var:PluginLang}} | en | {{#if:{{#hashvalue:{{#var:PluginFileName}} |screenshot}} | | [[Category:Todo:{{#hashvalue: localisation |cat-todo |{{#hashvalue:defaultL |cat-lang}} }}]] }} | }} | {{#ifeq: {{#var:PluginLang}} | en | {{#if:{{#hashvalue:{{#var:PluginFileName}} |screenshot}} | | [[Category:Todo:{{#hashvalue: localisation |cat-todo |{{#hashvalue:defaultL |cat-lang}} }}]] }} | }}<nowiki/></includeonly><!-- | ||
</includeonly><!-- | |||
--><noinclude> | --><noinclude> | ||
{{Todo| Doc }} | {{Todo| Doc }} | ||
</noinclude> | </noinclude> |