I'm just putting it out to other editors that I changed the mechanism used to selectively transclude content to amphetamine's child articles (i.e., Adderall and dextroamphetamine). Those articles now use labelled selection transclusion. In a nuthsell, this post is just asking everyone to be mindful of new "section begin" and "section end" tags above and below the three disorders covered in Amphetamine#Medical
This is how the source code appears on the amphetamine article:
More information Amph source code ...
<!-- Section begin: ADHD -->
==== ADHD ====
[ADHD content]
<!-- Section end: ADHD -->
<!-- Section begin: BED -->
==== Binge eating disorder ====
[BED content]
<!-- Section end: BED -->
<!-- Section begin: Narcolepsy -->
==== Narcolepsy ====
[Narcolepsy content]
<!-- Section end: Narcolepsy -->
|
Close
This is how the source code appears on articles with the medical section transcluded:
More information adderall and d-amph source code ...
(NB: ''each template renders its own section without headings, so headings have been added to the transcluded articles'')
=== Medical uses ===
====ADHD====
{{#lsth:Amphetamine|ADHD}}
====Binge Eating Disorder====
{{#lsth:Amphetamine|BED}}
====Narcolepsy====
{{#lsth:Amphetamine|Narcolepsy}}
|
Close
No other selective transclusions from this article have been altered.
For context, when I wrote the Binge Eating Disorder section a few months ago, I originally intended for it to only transclude to the lisdexamfetamine article. This is because the current literature only covers amphetamine's treatment efficacy for BED when it's administered as LDX, as opposed to adderall and dextroamphetamine, which have notable differences compared to LDX (e.g., the immediate-release forms of the latter drugs confer treatment effects for approximately 3–4 hours, whereas LDX persists for about 12–14 hours).
As the amphetamine wiki article is the parent article of LDX, the BED content also appears here because this article receives much , much more traffic and consequently it's beneficial for readers to have this content available here. However, due to the way transclusions were previously coded in this article's source, I had to add an "ifpagename=" exception to render the BED content to LDX sans adderall & d-amph. As another editor pointed out in their edit notes, this template resulted in the BED section being treated as a subset of the ADHD section in the source code, even though BED had its own subheading. To address this, I've made changes to the source code. Moreover, I've appended invisible comments below the relevant headings on each transcluded article to let editors know that they will need to make edits on this article for their desired changes to render in the article they're currently editing.
The latter collapsed tab above has only been applied to adderall and dextroamphetamine. I haven't bothered to make the above changes to lisdexamfetamine largely because I'm lazy af (see: professional crastination
) and the page renders just fine ATM because it transcludes virtually all of the medical section. I might change the source code on LDX to mirror the other articles in the coming days, though. FWIW, I was planning on originally excluding narcolepsy from being transcluded to the LDX when I wrote that section for the amph article, but after discussing it with Seppi333 I agree that it's probably worthwhile to have content included there because narcolepsy is an example of a legitimate off-label use for LDX. Professional Crastination (talk) 08:54, 4 December 2024 (UTC)