Editing
User:Cloudii/Proposals/CategoryInteresections
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=Proof of Concept of Category Intersections= Brought to you by [http://www.mediawiki.org/wiki/Extension:DynamicPageList_(Wikimedia) Extension:DynamicPageList] (TLG already installed it!) ==Sample: Intersection of Light Novel (English) and Stalled Categories== {| width=100% |- valign=top | <DynamicPageList> category = Light novel (English) category = Inactive Projects ordermethod = sortkey order = ascending count = 5 </DynamicPageList> || <DynamicPageList> category = Light novel (English) category = Inactive Projects ordermethod = sortkey order = ascending count = 5 offset = 5 </DynamicPageList> || <DynamicPageList> category = Light novel (English) category = Inactive Projects ordermethod = sortkey order = ascending count = 5 offset = 10 </DynamicPageList> ||<DynamicPageList> category = Light novel (English) category = Inactive Projects ordermethod = sortkey order = ascending count = 5 offset = 15 </DynamicPageList> |} ==Testing if subcats are included in intersections== <DynamicPageList> category = English category = Inactive Projects ordermethod = sortkey order = ascending count = 5 </DynamicPageList> ==Cloud's Proposal== Currently, we have a category called '''Light Novel (English)''', and twenty variations of this for every alternative light novel language. Rather have having these 21+ redundant categories, it is more logical to place project pages in their '''primary categories''', and take intersections of these categories. For example, if all light novel projects of all languages were listed in '''[[:Category:Light novel]]''', and all English projects were listed in '''[[:Category:English]]''', taking the intersection of these two categories is effectively the same as getting: '''Light Novel (English)'''. ===Why is this better?=== '''Less categories overall. Simpler organization. Readers get to see what they want and ''only'' what they want.''' For example, right now, I'd like to be able to see all English Projects that are stalled. However, the current [[:Category:Inactive Projects]] lists all inactive projects of all languages... which we have 40 of, which is not easy to look at. It's the problem the old Teaser Projects category page had. I could request that we split that category up into '''Inactive Projects (English)''', but do we really need that many more categories? It's unnecessary, and certainly not ideal. Fully populated primary categories are better and more powerful, if intersections between categories can be easily performed. ===What are the cons?=== Calculating intersections of categories can be a memory intensive process if the categories are large (like 1000+ members). Memory-wise, it's an O(n^2) process. Luckily this extension doesn't search subcats, so its not as bad as a could be). As such, TLG (the default setting of the extension) has limited the number of results that can be shown from an intersection of two categories to be somewhere around 200 results. However, as Baka-Tsuki is small, this actually doesn't pose a problem until we ever get more than a couple hundred projects. This memory issue primarily plagues big Wiki's like Wikipedia where there can be 10,000+ pages in a category. Fortunately, we're not at that size. We can afford this kind of process that loops through 100 pages. If you're skeptical, the intersection you're looking at above is an intersection of a 121-size-category and a 40-size-category. This extension is installed on and currently used on Wikimedia projects: Wikinews, Meta, Wikibooks, and Wikiversity. Does that make you feel better about scalability and usage? The other con is that it isn't a real category page. We could link it to users and display like a category page (like I did above), but the default output is a straight list of results.
Summary:
Please note that all contributions to Baka-Tsuki are considered to be released under the TLG Translation Common Agreement v.0.4.1 (see
Baka-Tsuki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
To protect the wiki against automated edit spam, please solve the following captcha:
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
English
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
User page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Charter of Guidance
Project Presentation
Recent Changes
Categories
Quick Links
About Baka-Tsuki
Getting Started
Rules & Guidelines
IRC: #Baka-Tsuki
Discord server
Annex
MAIN PROJECTS
Alternative Languages
Teaser Projects
Web Novel Projects
Audio Novel Project
Network
Forum
Facebook
Twitter
IRC: #Baka-Tsuki
Discord
Youtube
Completed Series
Baka to test to shoukanjuu
Chrome Shelled Regios
Clash of Hexennacht
Cube Γ Cursed Γ Curious
Fate/Zero
Hello, Hello and Hello
Hikaru ga Chikyuu ni Itakoro......
Kamisama no Memochou
Kamisu Reina Series
Leviathan of the Covenant
Magika no Kenshi to Basileus
Masou Gakuen HxH
Maou na Ore to Fushihime no Yubiwa
Owari no Chronicle
Seirei Tsukai no Blade Dance
Silver Cross and Draculea
A Simple Survey
Ultimate Antihero
The Zashiki Warashi of Intellectual Village
One-shots
Amaryllis in the Ice Country
(The) Circumstances Leading to Waltraute's Marriage
Gekkou
Iris on Rainy Days
Mimizuku to Yoru no Ou
Tabi ni Deyou, Horobiyuku Sekai no Hate Made
Tada, Sore Dake de Yokattan Desu
The World God Only Knows
Tosho Meikyuu
Up-to-Date (Within 1 Volume)
Heavy Object
Hyouka
I'm a High School Boy and a Bestselling Light Novel author, strangled by my female classmate who is my junior and a voice actress
The Unexplored Summon://Blood-Sign
Toaru Majutsu no Index: Genesis Testament
Regularly Updated
City Series
Kyoukai Senjou no Horizon
Visual Novels
Anniversary no Kuni no Alice
Fate/Stay Night
Tomoyo After
White Album 2
Original Light Novels
Ancient Magic Arc
Dantega
Daybreak on Hyperion
The Longing Of Shiina Ryo
Mother of Learning
The Devil's Spice
Tools
What links here
Related changes
User contributions
Logs
View user groups
Special pages
Page information