Difference between revisions of "Template:Extension"

From WPRDC Wiki
Jump to navigation Jump to search
>Wladek92
(Marked this version for translation)
>Wladek92
(adding < translate > sections)
Line 672: Line 672:
</tr>
</tr>
<tr>
<tr>
<td><span id="needs-updatephp">needs-updatephp</span></td><td>'''''Yes''''' indicates that the extension requires a database table schema change or a similar action, before the MediaWiki can run. It is a common pitfall: your MediaWiki will stall, if you forgot to run update.php - if the extension requires it. '''''No''''' should be set as a value since this assures that the extension does not need update.php to be run and thus avoids uncertainty
<td><span id="needs-updatephp">needs-updatephp</span></td><td><translate><tvar|yes><code>yes</code></> indicates that the extension requires a database table schema change or a similar action, before the MediaWiki can run. It is a common pitfall: your MediaWiki will stall, if you forgot to run update.php - if the extension requires it. <tvar|no><code>no</code></> should be set as a value since this assures that the extension does not need update.php to be run and thus avoids uncertainty


Extensions which conform to MediaWiki extension standards come with a '''schema change script which you need to start manually''' (once) before starting and accessing the MediaWiki through your browser, and after you copied all the extension files to <code>$IP/extensions/ExtensionName</code> and inserted <code>wfLoadExtension( "ExtensionName");</code> into "LocalSettings.php", run from the command line:
Extensions which conform to MediaWiki extension standards come with a '''schema change script which you need to start manually''' (once) before starting and accessing the MediaWiki through your browser, and after you copied all the extension files to <tvar|target><code>$IP/extensions/ExtensionName</code></> and inserted <tvar|code><code>wfLoadExtension( "ExtensionName");</code></> into "LocalSettings.php", run from the command line:</translate>


  cd path/to/wiki_install_directory
  cd path/to/wiki_install_directory
Line 683: Line 683:
</tr>
</tr>
<tr>
<tr>
<td><span id="php">composer</span></td><td>If applicable the name of the "vendor" as well as the "package" should be entered in the format <code>vendor/package</code>, e.g. <code>mediawiki/semantic-media-wiki</code> to point people directly to packagist.org, which serves as the package archive.</td>
<td><span id="php">composer</span></td><td><translate>If applicable the name of the "vendor" as well as the "package" should be entered in the format <tvar|format><code>vendor/package</code></>, e.g. <tvar|xmp><code>mediawiki/semantic-media-wiki</code></> to point people directly to packagist.org, which serves as the package archive.</translate></td>
</tr>
</tr>
<tr>
<tr>
Line 703: Line 703:
</tr>
</tr>
<tr>
<tr>
<td><span id="parameters">parameters</span></td><td>available parameters for LocalSettings.php</td>
<td><span id="parameters">parameters</span></td><td><translate>available parameters for LocalSettings.php</translate></td>
</tr>
</tr>
<tr>
<tr>
<td><span id="tags">tags</span></td><td>any tags your extension uses (e.g. &lt;tag1&gt;, &lt;tag2&gt;).</td>
<td><span id="tags">tags</span></td><td><translate>any tags your extension uses (e.g. <tvar|tags>&lt;tag1&gt;, &lt;tag2&gt;</>).</translate></td>
</tr>
</tr>
<tr>
<tr>
Line 712: Line 712:
</tr>
</tr>
<tr>
<tr>
<td><span id="namespace">namespace</span></td><td>namespace in which this extension is used</td>
<td><span id="namespace">namespace</span></td><td><translate>namespace in which this extension is used</translate></td>
</tr>
</tr>
<tr>
<tr>
<td><span id="example">example</span></td><td>example, website or screenshot of working extension</td>
<td><span id="example">example</span></td><td><translate>example, website or screenshot of working extension</translate></td>
</tr>
</tr>
<tr>
<tr>
Line 728: Line 728:
</tr>
</tr>
<tr>
<tr>
<td><span id="bugzilla">bugzilla</span></td><td>Bugzilla MediaWiki extension component name</td>
<td><span id="bugzilla">bugzilla</span></td><td><translate>Bugzilla MediaWiki extension component name</translate></td>
</tr>
</tr>
<tr>
<tr>
<td><span id="phabricator">phabricator</span></td><td>Phabricator project name</td>
<td><span id="phabricator">phabricator</span></td><td><translate>Phabricator project name</translate></td>
</tr>
</tr>
<tr>
<tr>
<td><span id="CheckUsageNameOverride">CheckUsageNameOverride</span></td><td>override the page name used for the check usage link.
<td><span id="CheckUsageNameOverride">CheckUsageNameOverride</span></td><td><translate>override the page name used for the check usage link.</translate>
</tr>
</tr>
</table>
</table>
Line 756: Line 756:
* <tvar|nocats>''nocats''</> - suppresses categorization and the 'check usage' link. Use this value if you are adding this template to {{ll|<tvar|url>Help:Subpage</>|subpages}} of an extension or to how-to documentation of extensions. For example, the usage image above sets <tvar|nocats><code>templatemode=nocats</code></> because this isn't an actual extension page and we don't want to add this page to any categories on account of it.
* <tvar|nocats>''nocats''</> - suppresses categorization and the 'check usage' link. Use this value if you are adding this template to {{ll|<tvar|url>Help:Subpage</>|subpages}} of an extension or to how-to documentation of extensions. For example, the usage image above sets <tvar|nocats><code>templatemode=nocats</code></> because this isn't an actual extension page and we don't want to add this page to any categories on account of it.
* <tvar|nousage>''nousage''</> - suppresses the 'check usage' link. Link is also suppressed if the page is a subpage; it is not in the Extension: namespace; or if suppressed by '<tvar|templatemode>templatemode=nocats</>'
* <tvar|nousage>''nousage''</> - suppresses the 'check usage' link. Link is also suppressed if the page is a subpage; it is not in the Extension: namespace; or if suppressed by '<tvar|templatemode>templatemode=nocats</>'


<!--T:193-->
<!--T:193-->

Revision as of 22:38, 17 November 2019

<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:}}]]