Warhammer 40k - Lexicanum:Intersections
Welcome to this tutorial.
By reading this guide, you will learn how to create Category Intersections on the Lexicanum.
Contents
Intersections
What is an Intersection?
An Intersection is a way of displaying all of the articles that simultaneously fit into two or more chosen Categories.
Intersections are possible on the Lexicanum websites because of the use of the Catisect extension created by Foxlit for Wowpedia, now known as warcraft.wiki.gg.
How to use them?
Intersections are dynamically created by making the following call to the API: Intersection:Keyword1::Keyword2
(Note the "::" between keywords, it's not just a single ":")
As the keywords implies, this Intersection will return all pages belonging both to the Keyword1 and Keyword2 Categories. Now let's translate that to a practical example:
Check out the following link: https://lex.124811.xyz/wiki/Intersection:Predators::Named_Space_Marine_Vehicles
It is a valid URL, and will return results. The results are all the pages belonging both to the "Predators" and "Named Space Marine Vehicles" categories. Thus, all the named Space Marine Predator tanks.
You don't have to manually write up an URL to create Intersections. You can also link to them, with the following way:
[[Intersection:Predators::Named Space Marine Vehicles]]
As with any interwiki link, you can also change what is actually displayed by using a pipe.
[[Intersection:Predators::Named Space Marine Vehicles|Named Predator tanks]]
Are there other tricks about Intersections?
Yes! You can combine multiple keywords at once.
Let's say you have a very specific request: You want to know about all the Dead Worlds in Segmentum Tempestus that used to be Forge Worlds.
You can learn about them simply by using three keywords at once instead of two like shown before.
Just like this: [[Intersection:Dead Worlds::Segmentum Tempestus::Forge Worlds]]
Check out the end result here if you're interested.
This also works with even more keywords, it just becomes harder and harder to find examples of pages belonging to such narrow Intersections.
Dynamic Page Lists
Dynamic Page Lists are a similar but different tool. Where Intersections are possible because of an unofficial extension of the API that lets you create URLs that you can link to other people, Dynamic Page Lists are the result of a MediaWiki extension that lets you create dynamic lists inside of an existing page.
Dynamic Page Lists are written this way:
<DynamicPageList>
category = Predators
category = Named_Space_Marine_Vehicles
</DynamicPageList>
This results in the inclusion of pages belonging both to the Predator and Named Space Marine Vehicles Categories:
- Kavius
- Hammer of Inwit
- Unconquered Lord
- Tycho (Baal Predator)
- Trajan (Predator)
- Traitor's End
- Stormhold's Whisper
- Saiph's Honour
- Nova (Predator)
- Nova (Predator Destructor)
- Indomitable Storm
- Incendia
- Furio (Predator)
- Destroyer Soul
- Agrigentum (Tank)
As with above, you can add more filtering Categories to have more precise results.
Intersections and Sub-Categories
Unfortunately, both of these tools have the same limit: sub-Categories are not counted when displaying all of the articles that simultaneously fit into two or more chosen Categories.
What this does mean is that, for example, while Category:Battles (Imperial Fists) is a sub-Category of Category:Battles (Space Marines), Intersections on Category:Battles (Space Marines) won't take Category:Battles (Imperial Fists) into account.
So, if you want a full list of all battles ever involving Space Marines fighting against Tyranids, and thus create Intersection:Battles (Space Marines)::Battles (Tyranids), the result won't feature any battles featuring Imperial Fists, or Iron Hands, or Blood Angels... Because these are their own sub-Categories.
A possible technical solution to this issue would be to tag all battles involving the Imperial Fists with both Category:Battles (Imperial Fists) and Category:Battles (Space Marines), but that is something that must be discussed with other staff and editors before being put in place.