no edit summary
The Star Wars Wiki uses Lua to create the canon tabs, among other features, which you can see here: [[w:c:starwars:Module:Eras]].
If you have knowledge of Lua, the above module is your answer. If you don't, then I think you can replicate the same effect by using a standard wikitext template, because the canon tabs are just
tables cells that link to different pages. However, on the One Piece Wiki, the tabs are created with div tags which is probably why you can't see them on mobile.
Essentially, create a table with two cells side by side; these are your tabs. You can use CSS to stylize the table.