Difference between revisions of "Template:Extension"

From WPRDC Wiki
Jump to navigation Jump to search
>Pppery
>Pppery
(Extracting "license", "hooks" and "parameters" from Module:ExtensionJson if not given)
Line 22: Line 22:
   |magic=<translate><!--T:10--> magic</translate>
   |magic=<translate><!--T:10--> magic</translate>
   |#default=<translate><!--T:11--> unknown</translate>
   |#default=<translate><!--T:11--> unknown</translate>
}}<!-- Category logic -->{{#if:{{{license|}}}|{{#ifeq:{{{templatemode|<noinclude>nocats</noinclude>}}}|nocats|<!-- do nothing -->|<!--else-->{{#invoke:Extension|getLicenseCategory|{{{license}}}}}}}}}<!--
}}<!--
-->{{#ifeq:{{{templatemode|<noinclude>nocats</noinclude>}}}|nocats|<!-- do nothing -->|<!--else-->[[Category:{{#switch: {{lc:{{{status|}}} }}
-->{{#ifeq:{{{templatemode|<noinclude>nocats</noinclude>}}}|nocats|<!-- do nothing -->|<!--else-->[[Category:{{#switch: {{lc:{{{status|}}} }}
|unstable|experimental|stable = {{{status}}} extensions
|unstable|experimental|stable = {{{status}}} extensions
Line 190: Line 190:
<tr>
<tr>
<td>{{ll|Template:Extension#license|'''<translate><!--T:21--> License</translate>'''}}</td>
<td>{{ll|Template:Extension#license|'''<translate><!--T:21--> License</translate>'''}}</td>
<td>{{#if:{{{license|}}}|{{#invoke:Extension|getFormattedLicense|{{{license}}}
<td>{{#invoke:Extension|getFormattedLicense|{{{license|}}}
  |GPL-2.0          = <translate><!--T:122--> GNU General Public License 2.0</translate>
  |GPL-2.0          = <translate><!--T:122--> GNU General Public License 2.0</translate>
  |GPL-2.0-only      = <translate><!--T:123--> GNU General Public License 2.0 only</translate>
  |GPL-2.0-only      = <translate><!--T:123--> GNU General Public License 2.0 only</translate>
Line 228: Line 228:
  |PD                = <translate><!--T:156--> [[w:Public domain|Public domain]]</translate>
  |PD                = <translate><!--T:156--> [[w:Public domain|Public domain]]</translate>
  |+                = <translate><!--T:157--> &#32;or later</translate>
  |+                = <translate><!--T:157--> &#32;or later</translate>
}}|<translate><!--T:22--> No license specified</translate> {{#ifeq:{{{templatemode|<noinclude>nocats</noinclude>}}}|nocats|<!-- do nothing -->|<!--else-->[[Category:Extensions with no license specified{{#translation:}}]]}}}}</td>
|unspecified      = <translate><!--T:22--> No license specified</translate>  
}}</td>
</tr><tr>
</tr><tr>
{{#ifeq:{{{templatemode|<noinclude>nocats</noinclude>}}}|nocats|<!-- no category -->|{{#invoke:Extension|getLicenseCategory|{{{license|}}}}}}}
<td>'''<translate><!--T:23--> Download</translate>'''</td>
<td>'''<translate><!--T:23--> Download</translate>'''</td>
<td><!--
<td><!--
Line 250: Line 252:
</tr>
</tr>
}}
}}
{{#if:{{{parameters|}}}|
{{#if:{{#if:{{{parameters|}}}|y|{{#invoke:Extension|getParameters}}}}|
<tr>
<tr>
<td class="mw-collapsible mw-collapsed" colspan="2">
<td class="mw-collapsible mw-collapsed" colspan="2">
<div class="mw-collapsible-header">{{ll|Template:Extension#parameters|<translate><!--T:27--> Parameters</translate>}}</div>
<div class="mw-collapsible-header">{{ll|Template:Extension#parameters|<translate><!--T:27--> Parameters</translate>}}</div>
<div class="mw-collapsible-content"><!-- the parameter "parameters" should begin on its own line so that bullet lists are correctly recognised by MediaWiki -->
<div class="mw-collapsible-content"><!-- the parameter "parameters" should begin on its own line so that bullet lists are correctly recognised by MediaWiki -->
{{{parameters}}}</div></td>
{{#if:{{{parameters|}}}|{{{parameters}}}|{{#invoke:Extension|getParameters}}}}</div></td>
</tr>
</tr>
}}
}}
Line 265: Line 267:
</tr>
</tr>
}}
}}
{{#if:{{{rights|}}}|
{{#if:{{#if:{{{rights|}}}|y|{{#invoke:Extension|getRights}}}}|
<tr>
<tr>
<td class="mw-collapsible mw-collapsed" colspan="2">
<td class="mw-collapsible mw-collapsed" colspan="2">
<div class="mw-collapsible-header">{{ll|Template:Extension#rights|<translate><!--T:29--> Added rights</translate>}}</div>
<div class="mw-collapsible-header">{{ll|Template:Extension#rights|<translate><!--T:29--> Added rights</translate>}}</div>
<div class="mw-collapsible-content"><!-- the parameter "rights" should begin on its own line so that bullet lists are correctly recognised by MediaWiki -->
<div class="mw-collapsible-content"><!-- the parameter "rights" should begin on its own line so that bullet lists are correctly recognised by MediaWiki -->
{{{rights}}}
{{#if:{{{rights|}}}|{{{rights}}}|{{#invoke:Extension|getRights}}}}
{{#ifeq:{{{templatemode|<noinclude>nocats</noinclude>}}}|nocats|<!-- do nothing -->|<!--else-->{{#if:{{{rights|}}}|[[Category:Extensions which add rights{{#translation:}}]]|}} }}</div></td>
{{#ifeq:{{{templatemode|<noinclude>nocats</noinclude>}}}|nocats|<!-- do nothing -->|<!--else-->{{#if:{{{rights|}}}|[[Category:Extensions which add rights{{#translation:}}]]|}} }}</div></td>
</tr>
</tr>
Line 284: Line 286:
</tr>
</tr>
}}
}}
{{#if:{{{hook1|}}}|
{{#invoke:Extension|getHooks|header=
<tr>
<tr>
<td class="mw-collapsible mw-collapsed" colspan="2">
<td class="mw-collapsible mw-collapsed" colspan="2">
<div class="mw-collapsible-header">{{ll|Template:Extension#hook|<translate><!--T:30--> Hooks used</translate>}}</div>
<div class="mw-collapsible-header">{{ll|Template:Extension#hook|<translate><!--T:30--> Hooks used</translate>}}</div>
<div class="mw-collapsible-content plainlist"><ul><li><!--
<div class="mw-collapsible-content plainlist"><ul><li>|delim=</li><li>|footer=</li></ul></div>
      -->{{#ifeq:{{{templatemode|<noinclude>nocats</noinclude>}}}|nocats|<!--
        -->{{Foreach|Extension/HookInUseNoCats|delim=</li><li>|<!--
            -->{{{hook1}}}|{{{hook2|}}}|{{{hook3|}}}|{{{hook4|}}}|{{{hook5|}}}|{{{hook6|}}}|<!--
            -->{{{hook7|}}}|{{{hook8|}}}|{{{hook9|}}}|{{{hook10|}}}|{{{hook11|}}}|{{{hook12|}}}|<!--
            -->{{{hook13|}}}|{{{hook14|}}}|{{{hook15|}}}|{{{hook16|}}}|{{{hook17|}}}|{{{hook18|}}}|<!--
            -->{{{hook19|}}}|{{{hook20|}}}|{{{hook21|}}}|{{{hook22|}}}|{{{hook23|}}}|{{{hook24|}}}|<!--
            -->{{{hook25|}}}|{{{hook26|}}}|{{{hook27|}}}|{{{hook28|}}}|{{{hook29|}}}|{{{hook30|}}}|<!--
            -->{{{hook31|}}}|{{{hook32|}}}|{{{hook33|}}}|{{{hook34|}}}|{{{hook35|}}}|{{{hook36|}}}|<!--
            -->{{{hook37|}}}|{{{hook38|}}}|{{{hook39|}}}|{{{hook40|}}}|{{{hook41|}}}|{{{hook42|}}}|<!--
            -->{{{hook43|}}}|{{{hook44|}}}|{{{hook45|}}}|{{{hook46|}}}|{{{hook47|}}}|{{{hook48|}}}|<!--
            -->{{{hook49|}}}|{{{hook50|}}}|{{{hook51|}}}|{{{hook52|}}}|{{{hook53|}}}|{{{hook54|}}}|<!--
            -->{{{hook55|}}}|{{{hook56|}}}|{{{hook57|}}}|{{{hook58|}}}|{{{hook59|}}}|{{{hook60|}}}|<!--
            -->{{{hook61|}}}|{{{hook62|}}}|{{{hook63|}}}|{{{hook64|}}}|{{{hook65|}}}|{{{hook66|}}}|<!--
            -->{{{hook67|}}}|{{{hook68|}}}|{{{hook69|}}}|{{{hook70|}}}|{{{hook71|}}}|{{{hook72|}}}|<!--
            -->{{{hook73|}}}|{{{hook74|}}}|{{{hook75|}}}|{{{hook76|}}}|{{{hook77|}}}|{{{hook78|}}}|<!--
            -->{{{hook79|}}}|{{{hook80|}}}|{{{hook81|}}}|{{{hook82|}}}|{{{hook83|}}}|{{{hook84|}}}|<!--
            -->{{{hook85|}}}|{{{hook86|}}}|{{{hook87|}}}|{{{hook88|}}}|{{{hook89|}}}|{{{hook90|}}}<!--
        -->}}<!--
      -->|<!--else--><!--
        -->{{Foreach|Extension/HookInUse|delim=</li><li>|<!--
            -->{{{hook1}}}|{{{hook2|}}}|{{{hook3|}}}|{{{hook4|}}}|{{{hook5|}}}|{{{hook6|}}}|<!--
            -->{{{hook7|}}}|{{{hook8|}}}|{{{hook9|}}}|{{{hook10|}}}|{{{hook11|}}}|{{{hook12|}}}|<!--
            -->{{{hook13|}}}|{{{hook14|}}}|{{{hook15|}}}|{{{hook16|}}}|{{{hook17|}}}|{{{hook18|}}}|<!--
            -->{{{hook19|}}}|{{{hook20|}}}|{{{hook21|}}}|{{{hook22|}}}|{{{hook23|}}}|{{{hook24|}}}|<!--
            -->{{{hook25|}}}|{{{hook26|}}}|{{{hook27|}}}|{{{hook28|}}}|{{{hook29|}}}|{{{hook30|}}}|<!--
            -->{{{hook31|}}}|{{{hook32|}}}|{{{hook33|}}}|{{{hook34|}}}|{{{hook35|}}}|{{{hook36|}}}|<!--
            -->{{{hook37|}}}|{{{hook38|}}}|{{{hook39|}}}|{{{hook40|}}}|{{{hook41|}}}|{{{hook42|}}}|<!--
            -->{{{hook43|}}}|{{{hook44|}}}|{{{hook45|}}}|{{{hook46|}}}|{{{hook47|}}}|{{{hook48|}}}|<!--
            -->{{{hook49|}}}|{{{hook50|}}}|{{{hook51|}}}|{{{hook52|}}}|{{{hook53|}}}|{{{hook54|}}}|<!--
            -->{{{hook55|}}}|{{{hook56|}}}|{{{hook57|}}}|{{{hook58|}}}|{{{hook59|}}}|{{{hook60|}}}|<!--
            -->{{{hook61|}}}|{{{hook62|}}}|{{{hook63|}}}|{{{hook64|}}}|{{{hook65|}}}|{{{hook66|}}}|<!--
            -->{{{hook67|}}}|{{{hook68|}}}|{{{hook69|}}}|{{{hook70|}}}|{{{hook71|}}}|{{{hook72|}}}|<!--
            -->{{{hook73|}}}|{{{hook74|}}}|{{{hook75|}}}|{{{hook76|}}}|{{{hook77|}}}|{{{hook78|}}}|<!--
            -->{{{hook79|}}}|{{{hook80|}}}|{{{hook81|}}}|{{{hook82|}}}|{{{hook83|}}}|{{{hook84|}}}|<!--
            -->{{{hook85|}}}|{{{hook86|}}}|{{{hook87|}}}|{{{hook88|}}}|{{{hook89|}}}|{{{hook90|}}}<!--
        -->}}<!--
      -->}}<!--
  --></li></ul></div>
</td>
</td>
</tr>
</tr>

Revision as of 18:54, 25 April 2020

<languages/> Lua error in Module:TNT at line 158: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Documentation.tab.[[Category:Template documentation pages{{#translation:}}]] Maintenance: vulnerabilities, archived

[[Category:Info templates{{#translation:}}|Extension]] [[Category:Extension creation{{#translation:}}]] [[Category:Categorizing templates{{#translation:}}|Extension]] [[Category:Extension templates{{#translation:}}]]