Difference between revisions of "Template:Extension"
Fix WikiApiary "usage" from rendering an empty table row when it isn't enabled
>Tacsipacsi (show MediaWiki:talkpagelinktext in page language instead of user language) |
>Krinkle (Fix WikiApiary "usage" from rendering an empty table row when it isn't enabled) |
||
Line 325: | Line 325: | ||
<td colspan="2" style="text-align:center;"> | <td colspan="2" style="text-align:center;"> | ||
<translate><!--T:32--> [[<tvar|1>translatewiki:Special:Translate/{{{translate|ext-{{lc:{{#invoke:String|replace|{{PAGENAME:{{translatable}}}}| |}}}}}}}</>|Translate the <tvar|2>{{PAGENAME:{{translatable}}}}</> extension]] {{<tvar|3>#if:{{{translate|}}}|</>|if it is available at translatewiki.net}}</translate></td> | <translate><!--T:32--> [[<tvar|1>translatewiki:Special:Translate/{{{translate|ext-{{lc:{{#invoke:String|replace|{{PAGENAME:{{translatable}}}}| |}}}}}}}</>|Translate the <tvar|2>{{PAGENAME:{{translatable}}}}</> extension]] {{<tvar|3>#if:{{{translate|}}}|</>|if it is available at translatewiki.net}}</translate></td> | ||
</tr>}} | </tr>}}<!-- | ||
Note: this next check suppresses the 'Check usage' link if page is: a subpage, not in Extension: namespace, or if suppressed by 'templatemode=nocats' or 'nousage=true'. | Note: this next check suppresses the 'Check usage' link if page is: a subpage, not in Extension: namespace, or if suppressed by 'templatemode=nocats' or 'nousage=true'. | ||
-->{{#if:{{{nousage|{{#ifeq:{{{templatemode|<noinclude>nocats</noinclude>}}}|nocats | -->{{#if:{{{nousage|{{#ifeq:{{{templatemode|<noinclude>nocats</noinclude>}}}|nocats | ||
Line 339: | Line 338: | ||
}}}}} | }}}}} | ||
|<!-- no usage -->| | |<!-- no usage -->| | ||
<tr> | |||
<td colspan="2" style="text-align:center;"> | |||
<span style="white-space:nowrap"><translate><!--T:33--> [[<tvar|1>wikiapiary:Extension:{{{CheckUsageNameOverride|{{BASEPAGENAMEE}}}}}</>|Check usage and version matrix.]]</translate></span> | <span style="white-space:nowrap"><translate><!--T:33--> [[<tvar|1>wikiapiary:Extension:{{{CheckUsageNameOverride|{{BASEPAGENAMEE}}}}}</>|Check usage and version matrix.]]</translate></span> | ||
</td> | |||
</tr> | </tr> | ||
}} | |||
{{#if:{{{vagrant-role|}}} | | {{#if:{{{vagrant-role|}}} | | ||
<tr> | <tr> | ||
Line 356: | Line 357: | ||
</tr> | </tr> | ||
}} | }} | ||
{{#if: {{{github|}}} | | {{#if: {{{github|}}} | | ||
<tr> | <tr> | ||
Line 364: | Line 364: | ||
</tr> | </tr> | ||
}} | }} | ||
</table><!-- | </table><!-- | ||
-->{{#ifeq:{{{templatemode|<noinclude>nocats</noinclude>}}}|nocats|<!-- | -->{{#ifeq:{{{templatemode|<noinclude>nocats</noinclude>}}}|nocats|<!-- |