"ব্যবহারকারী:Johnuniq/sandbox" পাতাটির দুইটি সংশোধিত সংস্করণের মধ্যে পার্থক্য

restore 10:45, 4 July 2013 mw problem test
(testing out-of-memory error at User:Johnuniq/Translation)
(restore 10:45, 4 July 2013 mw problem test)
Demonstration of problem using mw.ustring.gsub via mw.loadData using [[Module:Convert/sandbox]] (that is a clickable link).
{| class="wikitable"
*<code><nowiki>{{#invoke:convert/sandbox|main|TEST}}</nowiki></code> → {{#invoke:convert/sandbox|main|TEST}}
! Type !! Convert !! Result at en !! Result at bn
*<code><nowiki>{{#invoke:convert/sandbox|main|TEST|require}}</nowiki></code> → {{#invoke:convert/sandbox|main|TEST|require}}
|-
| Length || *<code><nowiki>{{#invoke:convert/sandbox|2main|ftTEST|abbr=onload}}</nowiki></code> || 2&nbsp;ft (0.61&nbsp;m) || {{#invoke:convert/sandbox|2main|ftTEST|abbr=onload}}
 
|-
 
| Length || <code><nowiki>{{convert|2|in|abbr=on}}</nowiki></code> || 2&nbsp;in (51&nbsp;mm) || {{convert|2|in|abbr=on}}
The "TEST" parameter causes text "১২৩৪৫৬৭৮৯০" to be used (should translate to "1234567890").
|-
:Test 1 uses a local table (correct result).
| Length || <code><nowiki>{{convert|2|m|abbr=on}}</nowiki></code> || 2&nbsp;m (6&nbsp;ft 7&nbsp;in) || {{convert|2|m|abbr=on}}
:Test 2 uses a table accessed with "require" (correct result).
|-
:Test 3 uses a table accessed with "loadData" (bug).
| Length || <code><nowiki>{{convert|2|mi|abbr=on}}</nowiki></code> || 2&nbsp;mi (3.2&nbsp;km) || {{convert|2|mi|abbr=on}}
 
|-
 
| Length || <code><nowiki>{{convert|2|yd|abbr=on}}</nowiki></code> || 2&nbsp;yd (1.8&nbsp;m) || {{convert|2|yd|abbr=on}}
The following shows the table <code>t</code> that is used in <code>mw.ustring.gsub(s, '%d', t)</code>. The tables are identical, so the gsub results should be the same.
|-
| Length || *<code><nowiki>{{#invoke:convert/sandbox|2main|nmi|abbr=onSHOW}}</nowiki></code> || 2&nbsp;nmi (3.7&nbsp;km; 2.3&nbsp;mi) || {{#invoke:convert/sandbox|2|nmimain|abbr=onSHOW}}
*<code><nowiki>{{#invoke:convert/sandbox|main|SHOW|require}}</nowiki></code> → {{#invoke:convert/sandbox|main|SHOW|require}}
|-
| Length || *<code><nowiki>{{#invoke:convert/sandbox|2main|ftSHOW|abbr=offload}}</nowiki></code> || 2 feet (0.61 metres) || {{#invoke:convert/sandbox|2main|ftSHOW|abbr=offload}}
|-
| Length || <code><nowiki>{{convert|2|in|abbr=off}}</nowiki></code> || 2 inches (51 millimetres) || {{convert|2|in|abbr=off}}
|-
| Length || <code><nowiki>{{convert|2|m|abbr=off}}</nowiki></code> || 2 metres (6&nbsp;feet 7&nbsp;inches) || {{convert|2|m|abbr=off}}
|-
| Length || <code><nowiki>{{convert|2|mi|abbr=off}}</nowiki></code> || 2 miles (3.2 kilometres) || {{convert|2|mi|abbr=off}}
|-
| Length || <code><nowiki>{{convert|2|yd|abbr=off}}</nowiki></code> || 2 yards (1.8 metres) || {{convert|2|yd|abbr=off}}
|-
| Length || <code><nowiki>{{convert|2|nmi|abbr=off}}</nowiki></code> || 2 nautical miles (3.7 kilometres; 2.3 miles) || {{convert|2|nmi|abbr=off}}
|-
| Length || <code><nowiki>{{convert|2|Ym|abbr=on}}</nowiki></code> || 2&nbsp;Ym (1.2<span style="margin:0 .15em 0 .25em">×</span>10<sup>21</sup>&nbsp;mi) || {{convert|2|Ym|abbr=on}}
|-
| Length || <code><nowiki>{{convert|2|Zm|abbr=on}}</nowiki></code> || 2&nbsp;Zm (1.2<span style="margin:0 .15em 0 .25em">×</span>10<sup>18</sup>&nbsp;mi) || {{convert|2|Zm|abbr=on}}
|-
| Length || <code><nowiki>{{convert|2|Em|abbr=on}}</nowiki></code> || 2&nbsp;Em (1.2<span style="margin:0 .15em 0 .25em">×</span>10<sup>15</sup>&nbsp;mi) || {{convert|2|Em|abbr=on}}
|-
| Length || <code><nowiki>{{convert|2|Pm|abbr=on}}</nowiki></code> || 2&nbsp;Pm (1.2<span style="margin:0 .15em 0 .25em">×</span>10<sup>12</sup>&nbsp;mi) || {{convert|2|Pm|abbr=on}}
|-
| Length || <code><nowiki>{{convert|2|Tm|abbr=on}}</nowiki></code> || 2&nbsp;Tm (1.2<span style="margin:0 .15em 0 .25em">×</span>10<sup>9</sup>&nbsp;mi) || {{convert|2|Tm|abbr=on}}
|-
| Length || <code><nowiki>{{convert|2|Gm|abbr=on}}</nowiki></code> || 2&nbsp;Gm (1,200,000&nbsp;mi) || {{convert|2|Gm|abbr=on}}
|-
| Length || <code><nowiki>{{convert|2|Mm|abbr=on}}</nowiki></code> || 2&nbsp;Mm (1,200&nbsp;mi) || {{convert|2|Mm|abbr=on}}
|-
| Length || <code><nowiki>{{convert|2|km|abbr=on}}</nowiki></code> || 2&nbsp;km (1.2&nbsp;mi) || {{convert|2|km|abbr=on}}
|-
| Length || <code><nowiki>{{convert|2|hm|abbr=on}}</nowiki></code> || 2&nbsp;hm (660&nbsp;ft) || {{convert|2|hm|abbr=on}}
|-
| Length || <code><nowiki>{{convert|2|dam|abbr=on}}</nowiki></code> || 2&nbsp;dam (66&nbsp;ft) || {{convert|2|dam|abbr=on}}
|-
| Length || <code><nowiki>{{convert|2|dm|abbr=on}}</nowiki></code> || 2&nbsp;dm (7.9&nbsp;in) || {{convert|2|dm|abbr=on}}
|-
| Length || <code><nowiki>{{convert|2|cm|abbr=on}}</nowiki></code> || 2&nbsp;cm (0.79&nbsp;in) || {{convert|2|cm|abbr=on}}
|-
| Length || <code><nowiki>{{convert|2|mm|abbr=on}}</nowiki></code> || 2&nbsp;mm (0.079&nbsp;in) || {{convert|2|mm|abbr=on}}
|-
| Length || <code><nowiki>{{convert|2|μm|abbr=on}}</nowiki></code> || 2&nbsp;µm (7.9<span style="margin:0 .15em 0 .25em">×</span>10<sup>−5</sup>&nbsp;in) || {{convert|2|μm|abbr=on}}
|-
| Length || <code><nowiki>{{convert|2|µm|abbr=on}}</nowiki></code> || 2&nbsp;µm (7.9<span style="margin:0 .15em 0 .25em">×</span>10<sup>−5</sup>&nbsp;in) || {{convert|2|µm|abbr=on}}
|-
| Length || <code><nowiki>{{convert|2|um|abbr=on}}</nowiki></code> || 2&nbsp;µm (7.9<span style="margin:0 .15em 0 .25em">×</span>10<sup>−5</sup>&nbsp;in) || {{convert|2|um|abbr=on}}
|-
| Length || <code><nowiki>{{convert|2|nm|abbr=on}}</nowiki></code> || 2&nbsp;nm (20&nbsp;Å) || {{convert|2|nm|abbr=on}}
|-
| Length || <code><nowiki>{{convert|2|pm|abbr=on}}</nowiki></code> || 2&nbsp;pm (0.020&nbsp;Å) || {{convert|2|pm|abbr=on}}
|-
| Length || <code><nowiki>{{convert|2|fm|abbr=on}}</nowiki></code> || 2&nbsp;fm (2.0<span style="margin:0 .15em 0 .25em">×</span>10<sup>−5</sup>&nbsp;Å) || {{convert|2|fm|abbr=on}}
|-
| Length || <code><nowiki>{{convert|2|am|abbr=on}}</nowiki></code> || 2&nbsp;am (2.0<span style="margin:0 .15em 0 .25em">×</span>10<sup>−8</sup>&nbsp;Å) || {{convert|2|am|abbr=on}}
|-
| Length || <code><nowiki>{{convert|2|zm|abbr=on}}</nowiki></code> || 2&nbsp;zm (2.0<span style="margin:0 .15em 0 .25em">×</span>10<sup>−11</sup>&nbsp;Å) || {{convert|2|zm|abbr=on}}
|-
| Length || <code><nowiki>{{convert|2|ym|abbr=on}}</nowiki></code> || 2&nbsp;ym (2.0<span style="margin:0 .15em 0 .25em">×</span>10<sup>−14</sup>&nbsp;Å) || {{convert|2|ym|abbr=on}}
|}
৩০৮টি

সম্পাদনা