Instead of requiring each list item to be a separate parameter, couldn't it split the text by line endings? I think that would make it a bit easier. —CodeCat 13:14, 25 January 2014 (UTC)
I am happy either way. I add the pipe symbol by a macro in Word to create the tens or hundreds of separate parameters. Splitting by line endings will probably be more convenient for regular users. --Vahag (talk) 19:45, 26 January 2014 (UTC)
Sort is broken with Ancient Greek: see κρατέω for an example. ObsequiousNewt (ἔβαζα|ἐτλέλεσα) 20:33, 6 July 2014 (UTC)
>
operator so that it'll interpret á/ä/ą/etc. as "a" (instead of sorting them by Unicode value as usual); however letters with Ancient Greek diacritics (ἀ/ᾳ/ἁ/ᾶ) are treated as an empty string. I don't know how to fix this, or even where the relevant code might be. If anyone could solve this problem, or even point me in the right direction, that would be great. ObsequiousNewt (ἔβαζα|ἐτλέλεσα) 17:28, 7 September 2014 (UTC)@CodeCat, DTLHS, Erutuon: according to the documentation, if the parameter |lang=
is "left undefined, the entry calling the template will have to provide it". I updated {{syn2}}
, which calls this module, by adding |lang={{{lang|en}}}
so that it is unnecessary to manually specify the value of |lang=
if it is English. However, if |lang=
is omitted entirely the template works as expected, but if |lang=en
is added the error message "Lua error in Module:parameters at line 108: The parameter "lang" is not used by this template" appears. What did I do wrong? — SGconlaw (talk) 18:00, 14 December 2017 (UTC)
|lang=
parameter is provided on the template page in the {{#invoke:columns}}
invocation (frame.args
), then the same parameter cannot be provided when the template is used (frame:getParent().args
). I think the problem will be fixed if you do not provide a default language code on the template page: thus, |lang={{{lang|}}}
. However, a mechanism to change this logic (or a parameter to provide a default language code) could be added if it is really desirable for there to be a default language code. — Eru·tuon 20:41, 14 December 2017 (UTC)
|lang=
is not specified then the template defaults to English. However, without adding |lang=
to the template, omitting it generates an error stating that |lang=
must be specified. — SGconlaw (talk) 02:27, 15 December 2017 (UTC)
{{syn3}}
and {{syn4}}
. So, from what I can tell, if {{lang}}
is omitted entirely, the template does not link to any language section of an entry page. If one wishes to link to, say, the English section, then |lang=en
must be explicitly specified. Is this correct? — SGconlaw (talk) 02:57, 15 December 2017 (UTC){{syn2}}
and {{ant2}}
with the message "No longer needed"; not quite sure why. — SGconlaw (talk) 02:29, 15 December 2017 (UTC)Gothic is being sorted very strangely. At 𐍅𐌰𐌽𐌳𐌾𐌰𐌽 (wandjan) I wrote:
{{der3|lang=got |𐌰𐍄𐍅𐌰𐌽𐌳𐌾𐌰𐌽 |𐌰𐍆𐍅𐌰𐌽𐌳𐌾𐌰𐌽 |𐌱𐌹𐍅𐌰𐌽𐌳𐌾𐌰𐌽 |𐌲𐌰𐍅𐌰𐌽𐌳𐌾𐌰𐌽 |𐌹𐌽𐍅𐌰𐌽𐌳𐌾𐌰𐌽 |𐌿𐍃𐍅𐌰𐌽𐌳𐌾𐌰𐌽 }}
with the words already in alphabetical order. It surfaces as:
with the alphabetical order all messed up. The two words that start with 𐌰 (a) aren't even next to each other, let alone in alphabetical order. And the word starting with 𐌱 (b) appears after the word starting with 𐌹 (i) instead of before the word starting with 𐌲 (g).
@Erutuon, Wyang: Any ideas? —Mahāgaja (formerly Angr) · talk 14:16, 25 April 2018 (UTC)
{{der3-u}}
which will not apply any automatic sorting. DTLHS (talk) 16:35, 25 April 2018 (UTC)
We could replace the comparison function with this:
local function comp(item1, item2) local l1 = mw.ustring.len(item1) local l2 = mw.ustring.len(item2) for i=1,math.min(l1,l2) do local b1 = mw.ustring.codepoint(item1, i, i) local b2 = mw.ustring.codepoint(item2, i, i) if b1 ~= b2 then return b1 < b2 end end return l1 < l2 end
I don't know how much of a performance loss this would be. DTLHS (talk) 17:09, 25 April 2018 (UTC)
{{der3-u}}
. Gothic isn't a language that's going to be needing collapsible tables of columns very often anyway. —Mahāgaja (formerly Angr) · talk 17:36, 25 April 2018 (UTC)<
operator (which is being used to sort the words in the template) with these Gothic words and it returns false no matter which order the words are in: that is, Gothic word number 1 is always both less than and greater than Gothic word number 2. (The >
or <=
operators also give the same result, true or false, for both orderings.) So, the sorting function is giving the Gothic words a random order.aaaaaaaaa
, aaaaaaaaa
, aaaaaaaaa
, aaaaaaaaa
, aaaaaaaaa
, and aaaaaaaaa
? —Mahāgaja (formerly Angr) · talk 20:29, 25 April 2018 (UTC)
Apparently the sort keys remove not only punctuation, but also spaces, which is incorrect. For example, the vassal derived terms sort vassal state after vassalship whereas it should be between envassal and vassalage. Can this be fixed promptly? Urhixidur (talk) 12:08, 3 August 2018 (UTC)
@Mahagaja I added the support to {{col3}}
etc. for inline transliteration, qualifiers and similar. You can see an example in User:Benwing2/test-col. Benwing2 (talk) 00:56, 2 May 2021 (UTC)
Can I have "notr=all" for suppress all (manual/automatic) transcription/tranliteration at once, for saving memory? And perhaps "notr=some" can still be overridden by a term? I have hundreds of terms (rhymes) to use with it but it runs out of memory. Segmentation does not help when they display on the same page. --Octahedron80 (talk) 05:18, 5 October 2021 (UTC)
@Benwing2 Hi - γίνομαι (gínomai) is throwing an error at the bottom of the page due to some (admittedly weird) formatting, as the template thinks Compounds:
is a prefix. Not sure there's a straightforward way to solve this without having an override param (awkward) or loading every lang prefix (expensive). Theknightwho (talk) 08:48, 9 April 2023 (UTC)
{{der2|ko
|w:ko:말<alt:말-을 말-하다>
|말<alt:말-을 말-하다>
}}
<alt:> is reflected in the transliteration, but is not ultimately shown.
@Benwing2, Theknightwho —Fish bowl (talk) 05:16, 3 May 2024 (UTC)
]
and `data.alt` looks like 말-을 말-하다
. After the line, `data.term` looks like w:ko:말
(the brackets are stripped) and `data.alt` looks like 말
(the actual alt value has been replaced with the value from the brackets). I think in this case it should honor the existing `data.alt` if it is specified. Benwing2 (talk) 06:24, 3 May 2024 (UTC)