@CodeCat: Re "The template should collapse the descendants tree under certain circumstances, particularly when it's rather long. This helps with keeping an overview and avoids the descendant lists becoming too long on the transcluding page (particularly PIE).", shouldn't we use {{see desc}}
instead when it would become rather long? --kc_kennylau (talk) 04:04, 5 March 2017 (UTC)
{{see desc}}
unnecessary while still keeping the length manageable. —CodeCat 13:35, 5 March 2017 (UTC)
{{desctree}}
works and others where {{see desc}}
is the best choice. I prefer using {{see desc}}
on PIE entries and for borrowing descendants. --Victar (talk) 01:56, 19 April 2017 (UTC)@CodeCat, Erutuon et al, I have few ideas and bug reports:
{{desctree}}
, as opposed to order of commonality, etc., as I normally would, i.e. Latin: {{l|la|elmus}}
, {{l|la|hermus}}
, {{desctree|la|helmus}}
. The solution that comes to mind is to have an |altN=
parameter, i.e. Latin: {{desctree|la|helmus|alt1=elmus|alt2=hermus}}
.{{desctree}}
on the same line, but instead it sends to the bottom of the list, i.e. Vulgar Latin: {{desctree|la|*scuma}}
{{q|merger with Latin spūma}}
. It would be great if a |q=
parameter could be added to accommodate this, i.e. Vulgar Latin: {{desctree|la|*scuma|q=merger with Latin {{l|la|spūma}}
}}
.{{cog}}
and {{desc}}
, especially if we get the order issue resolved. I realize that would break all the current uses, but perhaps we could run a script first to add |notext=1
them all. Alternatively, if we can't get the order issue resolved, maybe a |text=1
option would be better.|id=
parameter for entries with multiple descendant trees.{{top2}}
, break {{desctree}}
, so that needs fixing as well, most easily by simply filtering them out.--Victar (talk) 00:45, 19 April 2017 (UTC)
{{desctree|la|helmus}}
, it will automatically display the alternative forms {{l|la|hermus}}
and {{l|la|elmus}}
? — Eru·tuon 04:44, 8 May 2017 (UTC)* {{desc|fro|robber}}
, {{l|fro|robier}}
, {{desctree|fro|rober}}
{{desctree}}
, I have to put it last. I'd like to be able to do this and have it work:* {{desctree|fro|rober}}
, {{l|fro|robber}}
, {{l|fro|robier}}
* {{desctree|fro|rober|t2=robber|t3=robier}}
{{desctree|fro|rober}}
, it would display the alternative forms robber and robier along with rober. — Eru·tuon 14:25, 8 May 2017 (UTC)
{{Module:descendants tree}}
, have it look for ====Alternative forms===
instead, and some tweaks to the parsing code. --Victar (talk) 15:25, 8 May 2017 (UTC)
{{l}}
instead of {{alter}}
will have to be corrected before the module can parse them. — Eru·tuon 15:42, 8 May 2017 (UTC)
{{alter}}
, so I'm happy to use it more often, though, why it wasn't named {{alt}}
, I have no clue. Would it be possible to run a bot script on all existing {{desctree}}
entries to add |noalt=1
so we don't have duplicate alternates listed before we clean-up and |notext=1
to disable the language name prefix I'm adding, so they aren't doubled? --Victar (talk) 15:53, 8 May 2017 (UTC)
{{desctree}}
, which was one of the reasons why you started this thread. But the |notext=1
would be a good idea. The language name should be added by {{desctree}}
rather than having to be typed out. — Eru·tuon 16:43, 8 May 2017 (UTC)
{{desctree2}}
. --Victar (talk) 17:02, 8 May 2017 (UTC)
{{desctree}}
and add |notext=1
to them all. Thanks for any help! --Victar (talk) 22:35, 8 May 2017 (UTC)
@DTLHS: Now, would you be willing to run another set of edits removing the canonical_name:
before {{desctree}}
, and the |notext=1
? — Eru·tuon 00:03, 9 May 2017 (UTC)
{{desctree}}
. It didn't crop up before? — Eru·tuon 00:20, 9 May 2017 (UTC)
{{desctree}}
to be replaced with {{#invoke:descendants tree/templates|show}}
in Module:descendants tree. — Eru·tuon 00:28, 9 May 2017 (UTC){{desctree}}
only show descendants, and not show the link, leaving that to {{l}}
. Then you'd be free to position it wherever you like. —CodeCat 01:45, 9 May 2017 (UTC)
* {{desc|fro|rober}}
, {{l|fro|robber}}
, {{l|fro|robier}}
{{desctree|fro|rober}}
strikes me as a pretty sloppy solution. Pulling from the alternative forms section is far more elegant IMO. --Victar (talk) 01:52, 9 May 2017 (UTC)
|notext=1
and you can create |noalts=
to add your variants separate form what's in {{alter}}
. The control is still in the editor's hands. --Victar (talk) 14:14, 9 May 2017 (UTC)
{{desc}}
is a pain for editors who want to edit existing descendants section, so integrating it into this template is also bad. —CodeCat 14:20, 9 May 2017 (UTC)
{{desc}}
. --Victar (talk) 14:23, 9 May 2017 (UTC)===Alternative forms=== ===Etymology=== ===POS=== {{temp|senseid}}
or
===Alternative forms=== ===Etymology 1=== ====POS==== {{temp|senseid}}
or
===Etymology=== ===POS=== {{temp|senseid}} ====Alternative forms====
@Erutuon, so, any idea how to start with getting |id=
to work? For instances, I need to grab the descendants under Etymology 2 on this page through {{senseid|fro|ugly}}
. --Victar (talk) 06:25, 14 May 2017 (UTC)
|id=
to work by simply filtering out all content before the matching occurrence of {{senseid}}
. Doesn't seem to be playing nicely though. --Victar (talk) 17:39, 10 June 2017 (UTC)
{{termetym}}
. For {{desctree}}
it doesn't matter because {{senseid}}
will always be above its respective descendant tree. --Victar (talk) 21:05, 10 June 2017 (UTC)
content = mw.ustring.gsub( content, "^.*{{senseid|" .. lang:getCode() .. "|" .. id .. "}}(.*)", "%1")
would do the trick, but apparently not. --Victar (talk) 21:56, 10 June 2017 (UTC)while
below is expecting the whole page content but is freaking out when it can't find it; it being the language header. --Victar (talk) 01:36, 12 June 2017 (UTC)It's a good idea to fetch and show the qualifier when showing an alternative form, for example for Middle Persian we add the script / language variant as qualifier, e.g. in *ĉarHád-. --Z 06:06, 7 June 2017 (UTC)
{{alter}}
, primarily allowing qualifiers for each entry, instead of all of them. If not, we need to stop using {{alter}}
in tandem with {{desctree}}
and {{desc}}
. @Erutuon, JohnC5 can we start moving forward with some of these changes? --Victar (talk) 12:07, 7 June 2017 (UTC)
{{{qN}}}
params to {{alter}}
. To be clear though, we're not talking about merging across dialects, correct? —JohnC5 15:55, 7 June 2017 (UTC)|qn=
being added, but not with the old parameter format being removed, as that would be a dramatic change and would require a lot of work, and I'm not sure it's necessary. — Eru·tuon 17:23, 7 June 2017 (UTC)
|4=
mechanism, but I'd be happy to start with just adding |qN=
for now. @Erutuon, The amount of work an improvement would take is irrelevant if there are people like myself who are willing to do it. =) --Victar (talk) 18:53, 7 June 2017 (UTC)
{{alter}}
is because currently Module:descendants tree only fetches the content of one {{alter}}
... that is a design flaw that should be fixed. I'll work on it at Module:descendants tree/sandbox. — Eru·tuon 20:41, 7 June 2017 (UTC)
Can a feature be added so that an edit link is shown to the right of a term if its descendants are listed on another page? A user should be able to click this link to edit the tree, without having to figure out what content is on which page. The edit link should be right aligned or not, depending on whether the user has this preference set for regular edit links. —CodeCat 22:27, 14 August 2017 (UTC)
@Erutuon, Victar: Hello. Could we consider making it collapsible?
Though useful, I find it distracting to have all the descendants of Proto-Slavic *blъxà on the Proto-Indo-European *plúsis entry.
I think by making it collapsible (similarly to how Module:family tree behaves), we would get the best of both worlds: the cleanliness of {{see desc}}
, and the practicality of having all the descendants on a single page. --Per utramque cavernam (talk) 12:41, 13 March 2018 (UTC)
{{see desc}}
. —AryamanA (मुझसे बात करें • योगदान) 16:04, 13 March 2018 (UTC)Would a |ref=
parameter similar to |q=
be a good idea? So the refs can be in a natural position, rather than having to go before the descendant or after the entire tree.
Sorry if there's already a way to do this and I just don't know how. Example of the problem here (I know this tree is incorrect; I fixed it in the next edit). – Gormflaith (talk) 17:56, 15 May 2018 (UTC)
{{see desc}}
. --Victar (talk) 19:41, 15 May 2018 (UTC)
Sorry to be asking another question. Anyways, is there an easy fix for this? (the Middle English descendant {{l|enm|wyrm}}
is treated as ]
). Thanks, – Julia ☺ • formerly Gormflaith • 14:35, 7 June 2018 (UTC)
{{link}}
so you don't have links to the same page you're on. --Victar (talk) 15:03, 7 June 2018 (UTC)
{{l|de|catfish}}
on catfish, it'll show up as catfish (I'm assuming you have orange links on) rather than catfish – Julia ☺ • formerly Gormflaith • 15:09, 7 June 2018 (UTC)
Old and Middle English terms tend to have a lot of alt forms, which the template currently automatically includes and which imo clutters the Proto-Germanic pages a bit, e.g. at *weraldiz. Would it be possible to include a parameter which suppresses the inclusion of alt forms? — Mnemosientje (t · c) 11:50, 22 December 2018 (UTC)
|noalts=1
already exists and I added it to the documentation page.|noalts=1
has to be added in the entry for Old Galician-Portuguese sabado. — Eru·tuon 01:54, 21 February 2019 (UTC)
{{desctree|osx|bilīvan}} causes suprious tag generation at the end of the list. What's gone wrong on this invocation only?
ShakespeareFan00 (talk) 17:51, 23 December 2018 (UTC)
*Old Saxon: <span class="Latn" lang="osx">]</span>, <span class="Latn" lang="osx">]</span>, <span class="Latn" lang="osx">]</span>, <span class="Latn" lang="osx">]</span> <ul> <li>Middle Low German: <span class="Latn" lang="gml">]</span> <ul> <li>Low German: <span class="Latn" lang="nds">]</span> <ul><!--Suprious UL generated here --> <ul> <li>Plautdietsch: <span class="Latn" lang="pdt">]</span></li> </ul> </li> </ul> </li> <li><span title="borrowed">? </span>Faroese: <span class="Latn" lang="fo">]</span></li> <li><span title="borrowed">? </span>Icelandic: <span class="Latn" lang="is">]</span></li> <li><span title="borrowed">? </span>Norwegian: <span class="Latn" lang="nb">]</span>, <span class="Latn" lang="nb">]</span></li> <li><span title="borrowed">? </span>Swedish: <span class="Latn" lang="sv">]</span>, <span class="Latn" lang="sv">]</span></li> <li><span title="borrowed">? </span>Danish: <span class="Latn" lang="da">] </span>/li> </ul> </li></ul><-- Suprious list termination generated here... -->
Which has at least 2 point where spurious tags are seemingly generated.
Right now, when there are multiple descendants sections, the template silently chooses the first one, regardless of whether that is correct or not. The same also happens when there is only one descendants section at the time {{desctree}}
is added to a page, but someone else later adds a second one above the first. That will then silently break the descendant tree of the page transcluding it, since it will now choose the first (wrong) section instead of the second (right) one. The person editing the other page can not be expected to be aware of this; they are just adding another POS with descendants after all, and there is no notification of any problem this causes. It would be a good idea, and lead to less errors, if the template produced an error when there is ambiguity, rather than silently doing the wrong thing.
Perhaps a related issue as well, is that the template does not complain at all when the language section is missing from the page, but does complain when the language is added but without the descendants. This means that the addition of a language section can suddenly trigger an error in the descendants of another page, even though nothing is actually wrong. The {{desctree}}
template should treat lack of the language the same as lack of the descendants section within the language: either both should produce an error, or neither should. I'd prefer an error in this case, because if there are no descendants to show, why are you using {{desctree}}
? {{desc}}
would be a lot less resource intensive then and produce the same result. Adding {{desctree}}
to other pages should be done once a descendants section is added (and likely by the same editor). —Rua (mew) 21:28, 26 March 2019 (UTC)