I decided to put off deploying the new template because I realized that I needed one new feature, and one bugfix which is really kinda also a new feature.
The new feature is easy: automatically generating Short Descriptions for subpages in the {{work}} template. But unlike laconics, every page gets its own short description. It would be easy-ish to do here, and also because they're likely to be somewhat boring. At least I can do so 'splaining about things like WMG, which renders as "Fan theories about %s". All of the descriptions are editable, so change it if you don't like it. This can be overridden with another {{SHORTDESC}} later in the page.
The bugfix is that providing a wikipedia tab does not propagate to the subpages, unless you change it specifically on every page. So I thought, hey, just read the value off the main page, then you only have to write it once. This seemed like a good use for Bucket, with a very simple table. But then I thought, what kinds of other tabs could I store in bucket? So I'm going to add a new tab, "Fan Wiki", which can link to other wikis (yes, plural). And then why not another tab, Source ... for external sources.
So you might make this template on Sense and Sensibility (novel)
{{work
|wikipedia = Sense and Sensibility # note: wppage still works, does same thing
|source = wikisource:Sense and Sensibility
|sourcename = Wikisource
|source2 = https://gutenberg.org/ebooks/21839
|sourcename2 = Project Gutenburg
|fanwiki = fandom:janeausten
|fanwikiname = #note: empty or missing will just fill in "Fan Wiki" for this tab
}}
And then on all of the subpages, you just put {{work}}. The pages will automatically load the other tabs (or will once the cache expires/subpages are purged). Note you still need {{work|page=Fate/stay night}} the page param on all of the pages with slashes, because it's not smart enough to figure this out. We could end up with two source tabs if we have the content on-wiki too... oh well I guess.
I've also added some accessibility attributes (I probably should do a few more now that I recall this part), and set it to hide the subpages menu from search, because navigation is not page content.
Anyway, I've written the code, in theory it should work. But it's still untested as of now, because I need to start testing on real pages to save things into Bucket:Tab.
The new feature is easy: automatically generating Short Descriptions for subpages in the {{work}} template. But unlike laconics, every page gets its own short description. It would be easy-ish to do here, and also because they're likely to be somewhat boring. At least I can do so 'splaining about things like WMG, which renders as "Fan theories about %s". All of the descriptions are editable, so change it if you don't like it. This can be overridden with another {{SHORTDESC}} later in the page.
The bugfix is that providing a wikipedia tab does not propagate to the subpages, unless you change it specifically on every page. So I thought, hey, just read the value off the main page, then you only have to write it once. This seemed like a good use for Bucket, with a very simple table. But then I thought, what kinds of other tabs could I store in bucket? So I'm going to add a new tab, "Fan Wiki", which can link to other wikis (yes, plural). And then why not another tab, Source ... for external sources.
So you might make this template on Sense and Sensibility (novel)
{{work
|wikipedia = Sense and Sensibility # note: wppage still works, does same thing
|source = wikisource:Sense and Sensibility
|sourcename = Wikisource
|source2 = https://gutenberg.org/ebooks/21839
|sourcename2 = Project Gutenburg
|fanwiki = fandom:janeausten
|fanwikiname = #note: empty or missing will just fill in "Fan Wiki" for this tab
}}
And then on all of the subpages, you just put {{work}}. The pages will automatically load the other tabs (or will once the cache expires/subpages are purged). Note you still need {{work|page=Fate/stay night}} the page param on all of the pages with slashes, because it's not smart enough to figure this out. We could end up with two source tabs if we have the content on-wiki too... oh well I guess.
I've also added some accessibility attributes (I probably should do a few more now that I recall this part), and set it to hide the subpages menu from search, because navigation is not page content.
Anyway, I've written the code, in theory it should work. But it's still untested as of now, because I need to start testing on real pages to save things into Bucket:Tab.
"Kitto daijoubu da yo." - Sakura Kinomoto

