Only a few episodes appear, and some are just links at the bottom of the page. Is it a problem with a character limit? With the transclusion itself? With the redirects?
Only a few episodes appear, and some are just links at the bottom of the page. Is it a problem with a character limit? With the transclusion itself? With the redirects?
Without modifying the page itself, no, there's no way to leave out specific elements with the way those transcript pages are constructed.
^^so how do i fix it? is it too long to fit in a page at all?
Possibly, a page has a post-expansion limit of about 2MB.
However, you can probably save a lot of Wikitext by refactoring Template:Dia, use better constructs than a "table" and move all the styles to the wiki's CSS or to a TemplateStyles template.
Regarding leaving out Template:DiaEmptys, yes you can add a condition to prevent it from being rendered on a certain page or on the main namespace etc.
^
1. whats a construct
2. whats refactoring
3. i dont see any tables anywhere
4. Template:DiaEmpty is the one i LEAST want to get rid of, it wont clean it much
Refactoring means changing the code to do the same but more efficiently.
Let's start off by changing the code of Template:Dia to this:
<onlyinclude><div style="width:500px; margin:12px 7px; overflow:hidden; display:flex; gap:12px; background:rgba(255, 255, 255, 0.58);">
<div style="overflow:hidden; width:90px">
[[File:Dia{{#switch: {{{character|{{{1}}}}}}
| CoinyDEL = CoinyDEL.gif
| BookAAA = BookAAA.jpg
| BraceletySign = BraceletySign.gif
| #default = {{{character|{{{1}}}}}}.png
}}|80x80px|link={{{link|{{#invoke:Dia code|code|{{{character|{{{1}}}}}}|link}}}}}|alt={{{alt|{{#invoke:Dia code|code|{{{character|{{{1}}}}}}|alt}}}}}]]
</div>
<div style="width:390px; font-size:16pt;">{{{dialogue|{{{2}}}}}}</div>
</div></onlyinclude>
{{Documentation}}
(I hope I didn't miss something important)
As for Template:DiaEmpty and some other parts, I thought it was you who said you want to leave them out.
^what are all the differences between the current Template:Dia and this Template:Dia? also, i meant that out of all of the things sthat would help to get rid of, Template:DiaEmpty would barely help at all
The differences are, generally speaking:
Getting rid of some styles definitions that have no effect
Replacing some definitions with shorter forms that do the same
Replacing the table markup (the {| and similar, which creates a table) with a flex container that suits better.
Try it out, see if it works properly (I could be doing some mistakes) and if it helps making more of the transcript visible on the page.
We can later shorten it more if needed.
the template is locked to admins. i abandoned that user subpage anyways though, im just gonna go to a random transcript and ctrl+f until i find what im looking for (i wont need one specific point in the series, just any instance of a specific word, so i would usually find it after a few pages)
Okay lol I assumed you're doing if for the wiki. Yeah there's no reason to go to all this trouble just to find a word.
well i have to do this for different words indefinitely, but yeah (im making a youtube video where i edit the episodes to say something else (and probably will make more), not like a ytp, just like making it read the script of a different show)
What do you think?