User:Goraf/PluginCard: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(+includeonly to not parse it // looking for error with mw.title.new(nill)) |
||
(19 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
< | <includeonly><onlyinclude><!-- use #titleparts instead of MagicWords if pagetitle will change -->{{ | ||
#vardefine:PluginFileName | {{BASEPAGENAMEE}} | #vardefine:PluginFileName | {{BASEPAGENAMEE}} | ||
}}{{ | }}{{ | ||
# | #if: {{#varexists:PluginLang}} | ||
}}<!-- | | {{PageLang | {{#var:PluginLang}} }} <!-- from ResolveLang pages --> | ||
| {{#vardefine:PluginLang | {{SUBPAGENAME}} }}{{PageLang | {{SUBPAGENAME}} }} <!-- remove the first one after transition to PageLang --> | |||
}}<!-- Language localisation ... | |||
-->{{Localization/PluginCard|{{#var: | -->{{Localization/PluginCard|{{#var:PageLang}} }}<!-- | ||
and default values | and default values | ||
-->{{Localization/PluginCard|}}<!-- | -->{{Localization/PluginCard|}}<!-- | ||
Load information about plugin | |||
-->{{PluginInfo|}}<!-- | |||
Page title | Page title | ||
-->{{DISPLAYTITLE: {{ | -->{{DISPLAYTITLE: {{ | ||
Line 19: | Line 17: | ||
| {{#hashvalue:{{#var:PluginFileName}} |name |{{#var:PluginFileName}} }} | | {{#hashvalue:{{#var:PluginFileName}} |name |{{#var:PluginFileName}} }} | ||
}} | }} | ||
}}<!-- | }}<!-- | ||
--> | Check if Plugin:PluginName page exist if not display warning and add creation link | ||
{| class=" | -->{{#ifexist: Plugin:{{#var:PluginFileName}} | ||
| | |||
| {{Warning|Page <tt>Plugin:{{#var:PluginFileName}}</tt> doesn't exist. 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/> | |||
}} | |||
{{Infobox | |||
| name = | |||
| child = {{{child|}}} | |||
| subbox = {{{subbox|}}} | |||
| bodystyle = | |||
| titlestyle = | |||
| | | abovestyle = background-color:#ccccff; | ||
| subheaderstyle = | |||
| title = | |||
| above = {{ | |||
#if: {{{name|}}} | #if: {{{name|}}} | ||
| {{{name}}} | | {{{name}}} | ||
| {{#hashvalue:{{#var:PluginFileName}} |name |{{#var:PluginFileName}} }} | | {{#hashvalue:{{#var:PluginFileName}} |name |{{#var:PluginFileName}} }} | ||
}} | }} | ||
| subheader = | |||
| imagestyle = | |||
| captionstyle = | |||
| image = | |||
| caption = | |||
| image2 = | |||
| caption2 = | |||
- | | headerstyle = | ||
| labelstyle = background-color:#ccccff; text-align:right; | |||
| datastyle = | |||
<!-- Filename --> | |||
| header1 = | |||
| label1 = {{#hashvalue:localisation|filename |{{#hashvalue:defaultL |filename}} }} | |||
| data1 = {{#if: {{#hashvalue:{{#var:PluginFileName}} |filename}} | |||
| {{#hashvalue:{{#var:PluginFileName}} |filename}} | |||
| {{#var:PluginFileName}} | |||
}}.dll | |||
<!-- Author --> | |||
| header2 = | |||
| label2 = {{#hashvalue: localisation |plugin-author |{{#hashvalue:defaultL |plugin-author}} }} | |||
| data2 = {{#if: {{{author|}}} | |||
| {{Developer|{{{author|}}} }} | |||
| {{#if: {{#hashvalue:{{#var:PluginFileName}} |author}} | |||
| {{Developer|{{#hashvalue:{{#var:PluginFileName}} |author}} }} | |||
|k | |||
}} | }} | ||
}} | |||
<!-- Authors --> | |||
| header3 = | |||
| label3 = {{#hashvalue: localisation |plugin-authors |{{#hashvalue:defaultL |plugin-authors}} }} | |||
| data3 = {{#if: {{{authors|}}} | |||
| {{Developer|{{{authors|}}} }} | |||
| {{#if: {{#hashvalue:{{#var:PluginFileName}} |authors}} | |||
| {{Developer|{{#hashvalue:{{#var:PluginFileName}} |authors}} }} | |||
|k | |||
}} | |||
}} | |||
<!-- Requirements --> | |||
| header4 = | |||
| label4 = {{#hashvalue: localisation |systemreq |{{#hashvalue:defaultL |systemreq}}}} | |||
| data4 = {{#if: {{{requirements|}}} | |||
| {{Developer|{{{requirements|}}} }} | |||
| {{#if: {{#hashvalue:{{#var:PluginFileName}} |requirements}} | |||
| {{Developer|{{#hashvalue:{{#var:PluginFileName}} |requirements}} }} | |||
|k | |||
}} | }} | ||
}} | |||
<!-- Homepage --> | |||
| header5 = | |||
| label5 = | |||
| data5 = {{#if: {{{homepage|}}} | |||
| [{{{homepage|}}} {{#hashvalue: localisation |homepage |{{#hashvalue:defaultL |homepage}} }}] | |||
| {{#if: {{#hashvalue:{{#var:PluginFileName}} |homepage}} | |||
| [{{#hashvalue:{{#var:PluginFileName}} |homepage}} {{#hashvalue: localisation |homepage |{{#hashvalue:defaultL |homepage}} }}] | |||
| | |||
}} | |||
}} | |||
<!-- Download links --> | |||
| header6 = | |||
| label6 = | |||
| data6 = {{Infobox | subbox = yes | |||
| headerstyle = font-size:110%; background-color:#ccccff; | |||
| labelstyle = font-weight:normal; text-align:right; width:60%; | |||
| header1 = {{#hashvalue:localisation |download-title |{{#hashvalue:defaultL |download-title}}}} | |||
<!-- stable --> | |||
| label2 = {{#hashvalue: localisation |download-stable |{{#hashvalue:defaultL |download-stable}} }}: | |||
| data2 = stable | |||
<!-- development --> | |||
| label3 = {{#hashvalue: localisation |download-current |{{#hashvalue:defaultL |download-current}} }}: | |||
| data3 = Data 3-3 | |||
<!-- additional --> | |||
| label4 = {{#hashvalue: localisation |links-other |{{#hashvalue:defaultL |links-other}} }}: | |||
| data4 = Data 3-3 | |||
| | |||
}} | }} | ||
| belowstyle = | |||
| below = | |||
</ | }}</onlyinclude> | ||
</includeonly> |