Jump to content

Template talk:Transclude selected current events: Difference between revisions

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Content deleted Content added
No edit summary
Tags: Mobile edit Mobile web edit
reply
Line 3: Line 3:


:{{ping|Evad37}} thanks for help. In ar.wiki we use dmy like : 25 مايو 2018 (parallel in English is 25 may 2018 but it appears here as dym because arabic is written from right to left) pattern so what is best order for the date code? Regards--[[User:مصعب|مصعب]] ([[User talk:مصعب|talk]]) 15:33, 25 May 2018 (UTC)
:{{ping|Evad37}} thanks for help. In ar.wiki we use dmy like : 25 مايو 2018 (parallel in English is 25 may 2018 but it appears here as dym because arabic is written from right to left) pattern so what is best order for the date code? Regards--[[User:مصعب|مصعب]] ([[User talk:مصعب|talk]]) 15:33, 25 May 2018 (UTC)
::{{ping|مصعب}} Okay, so the display language affects the where arabic text displays relative to numbers... good to know. So I was completely off track with the dates thing, that part of the code is fine. What actually needs to be changed in the module is line 52, to <pre> if string.sub( v, 0, 1 ) == '*' then</pre> since the news items on arwiki only have a single <code>*</code> at the start of the line, not two. <u>'''[[User:Evad37|Evad]]''37'''''</u>&nbsp;<span style="font-size:95%;">&#91;[[d:w:User talk:Evad37|talk]]]</span> 23:22, 25 May 2018 (UTC)

Revision as of 23:22, 25 May 2018

@Evad37: Hi. Thanks for creating that template. I transferred it to arabic wikipedia but it doesn't work properly and always give me "no recent news". Any ideas about the reason?. Kind regards--مصعب (talk) 14:29, 25 May 2018 (UTC)[reply]

@مصعب: I think it's to do with the date format on line 84 of the module. The date code j F Y (with lang code ar) produces output like "25 مايو 2018", but the actual current event pages on arwiki are named like ar:بوابة:أحداث_جارية/23_مايو_2018. I'm not sure what date code should be used, but the codes are the same as for the {{#time:}} parser function, so the documentation at mw:Help:Extension:ParserFunctions##time might be able to help you. - Evad37 [talk] 15:24, 25 May 2018 (UTC)[reply]
@Evad37: thanks for help. In ar.wiki we use dmy like : 25 مايو 2018 (parallel in English is 25 may 2018 but it appears here as dym because arabic is written from right to left) pattern so what is best order for the date code? Regards--مصعب (talk) 15:33, 25 May 2018 (UTC)[reply]
@مصعب: Okay, so the display language affects the where arabic text displays relative to numbers... good to know. So I was completely off track with the dates thing, that part of the code is fine. What actually needs to be changed in the module is line 52, to
		if string.sub( v, 0, 1 ) == '*' then
since the news items on arwiki only have a single * at the start of the line, not two. Evad37 [talk] 23:22, 25 May 2018 (UTC)[reply]