বিষয়বস্তু বিয়োগ হয়েছে বিষয়বস্তু যোগ হয়েছে
Johnuniq (আলোচনা | অবদান)
→‎2021: indicator tag
১৬৫ নং লাইন:
::* <code><nowiki>{{#invoke:স্থানাঙ্ক/খেলাঘর|coord2text|{{Coord|57|18|22|N|4|27|32|E|display=inline,title}}|lat}}</nowiki></code> gives <code>57.30611</code> & shows coordinates at the top of the page
::Both example should give <code>57.30611</code> and shouldn't display coordinates at the top of the page. I found similar problem with [[মডিউল:অবস্থান_মানচিত্র/খেলাঘর#L-165]] (Module:Location map, [[টেমপ্লেট:অবস্থান মানচিত্র/পরীক্ষা পাতা|testcases]]). Both (coord & location map) module uses same regex. I think regex is broken because of my changes to include indicator. --[[ব্যবহারকারী:আফতাবুজ্জামান|আফতাবুজ্জামান]] ([[ব্যবহারকারী আলাপ:আফতাবুজ্জামান|আলাপ]]) ১৭:০৬, ৫ জুন ২০২১ (ইউটিসি)
----
@[[ব্যবহারকারী:আফতাবুজ্জামান|আফতাবুজ্জামান]]: Bad news: the "indicator" tag causes the title coordinates to be displayed as soon as args[1] is read. To demonstrate, preview a sandbox at enwiki after replacing the contents with the following.
<pre>
{{#invoke:string|len|<indicator name="coordinates">Hello</indicator>}}
</pre>
That displays 37 ''and'' shows "Hello" in the indicator area. The indicator tag is replaced with a strip marker. The following shows that except that I replaced the first and last characters with 'X'.
<pre>
X'"`UNIQ--indicator-00000001-QINU`"'X
</pre>
The length of the strip marker is 37 bytes.
 
For further evidence, see my sandbox here: [[User:Johnuniq/খেলাঘর]]. You can replace all the contents of [[Module:স্থানাঙ্ক/খেলাঘর]] with the following:
<pre>
local p = {}
function p.coord2text(frame)
local coord = frame.args[1]
return 'Dummy'
end
return p
</pre>
and preview with <code>User:Johnuniq/খেলাঘর</code>
 
I don't think a workaround will be possible. [[ব্যবহারকারী:Johnuniq|Johnuniq]] ([[ব্যবহারকারী আলাপ:Johnuniq#top|আলাপ]]) ১০:০৭, ৬ জুন ২০২১ (ইউটিসি)
 
== NUMBEROF ==