You can now add tabs and dropdowns to wiki pages
- MrStonedOne
- Host
- Joined: Mon Apr 14, 2014 10:56 pm
- Byond Username: MrStonedOne
- Github Username: MrStonedOne
You can now add tabs and dropdowns to wiki pages
https://tgstation13.org/wiki/Testingtabs
https://www.mediawiki.org/wiki/Extension:Tabs/Usage
Key thing to note is that all tabs are downloaded and loaded into the browser at once. So don't go adding a bunch of large full res images in on each tab.
https://www.mediawiki.org/wiki/Extension:Tabs/Usage
Key thing to note is that all tabs are downloaded and loaded into the browser at once. So don't go adding a bunch of large full res images in on each tab.
- XDTM
- Github User
- Joined: Fri Mar 04, 2016 8:38 pm
- Byond Username: XDTM
- Github Username: XDTM
- Location: XDTM
Re: You can now add tabs and dropdowns to wiki pages
Nice! I'll start working on the Metastation locations as soon as i have time.
a.k.a. Duke Hayka
Coder of golems, virology, hallucinations, traumas, nanites, and a bunch of miscellaneous stuff.
Coder of golems, virology, hallucinations, traumas, nanites, and a bunch of miscellaneous stuff.
- XDTM
- Github User
- Joined: Fri Mar 04, 2016 8:38 pm
- Byond Username: XDTM
- Github Username: XDTM
- Location: XDTM
Re: You can now add tabs and dropdowns to wiki pages
From what i can see it works fine in the preview, but after saving it gets jumbled up and turned into radio buttons. Is it only on my side?
a.k.a. Duke Hayka
Coder of golems, virology, hallucinations, traumas, nanites, and a bunch of miscellaneous stuff.
Coder of golems, virology, hallucinations, traumas, nanites, and a bunch of miscellaneous stuff.
- MrStonedOne
- Host
- Joined: Mon Apr 14, 2014 10:56 pm
- Byond Username: MrStonedOne
- Github Username: MrStonedOne
Re: You can now add tabs and dropdowns to wiki pages
most likely, it worked fine for me.
Maybe you did it wrong, link me
Maybe you did it wrong, link me
- MrStonedOne
- Host
- Joined: Mon Apr 14, 2014 10:56 pm
- Byond Username: MrStonedOne
- Github Username: MrStonedOne
Re: You can now add tabs and dropdowns to wiki pages
I took a look from recent changes, you did it right and it shows up right for me, it must be just you or your browser.
It does use radio buttons to display the tabs, but then styles them to look like tabs.
What browser are you using, and does it still happen if you press control+f5?
It does use radio buttons to display the tabs, but then styles them to look like tabs.
What browser are you using, and does it still happen if you press control+f5?
- Iatots
- Joined: Thu Oct 13, 2016 3:17 pm
- Byond Username: Iatots
- Github Username: Iatots
Re: You can now add tabs and dropdowns to wiki pages
My preview is fine as well, but get this on the actual page:
And ctrl+f5 doesn't help.
Browser is firefox 49.0.2 .And ctrl+f5 doesn't help.
- XDTM
- Github User
- Joined: Fri Mar 04, 2016 8:38 pm
- Byond Username: XDTM
- Github Username: XDTM
- Location: XDTM
Re: You can now add tabs and dropdowns to wiki pages
I was using firefox 49.0.2 as well, and the issue remains on google chrome.
EDIT: It doesn't seem to load the tab stylesheet properly, but on preview it does.
EDIT: It doesn't seem to load the tab stylesheet properly, but on preview it does.
a.k.a. Duke Hayka
Coder of golems, virology, hallucinations, traumas, nanites, and a bunch of miscellaneous stuff.
Coder of golems, virology, hallucinations, traumas, nanites, and a bunch of miscellaneous stuff.
- Armhulen
- Global Moderator
- Joined: Thu Apr 28, 2016 4:30 pm
- Byond Username: Armhulenn
- Github Username: bazelart
- Location: The Grand Tournament
Re: You can now add tabs and dropdowns to wiki pages
can confirm, only previews
- MrStonedOne
- Host
- Joined: Mon Apr 14, 2014 10:56 pm
- Byond Username: MrStonedOne
- Github Username: MrStonedOne
Re: You can now add tabs and dropdowns to wiki pages
ok, ya, i see it if im not logged in...... odd
- MrStonedOne
- Host
- Joined: Mon Apr 14, 2014 10:56 pm
- Byond Username: MrStonedOne
- Github Username: MrStonedOne
Re: You can now add tabs and dropdowns to wiki pages
Fixed. I had to flush the caches.
- XDTM
- Github User
- Joined: Fri Mar 04, 2016 8:38 pm
- Byond Username: XDTM
- Github Username: XDTM
- Location: XDTM
Re: You can now add tabs and dropdowns to wiki pages
The caches will have to be flushed every time a tab is added, unless there is a way to force a flush on a page after an edit.
EDIT: For now if anyone wants to add tabs, to flush a page's cache, add ?action=purge to its url
EDIT: For now if anyone wants to add tabs, to flush a page's cache, add ?action=purge to its url
a.k.a. Duke Hayka
Coder of golems, virology, hallucinations, traumas, nanites, and a bunch of miscellaneous stuff.
Coder of golems, virology, hallucinations, traumas, nanites, and a bunch of miscellaneous stuff.
- oranges
- Code Maintainer
- Joined: Tue Apr 15, 2014 9:16 pm
- Byond Username: Optimumtact
- Github Username: optimumtact
- Location: #CHATSHITGETBANGED
- Iatots
- Joined: Thu Oct 13, 2016 3:17 pm
- Byond Username: Iatots
- Github Username: Iatots
Re: You can now add tabs and dropdowns to wiki pages
How to fix this?=== Hotlinking tabs ===
It is possible to hotlink tabs the same way as hotlinking sections on pages. Simply put the tab label in the URL, and the page will automatically scroll to the top of the tab, and open the selected tab. This will always open only the very first tab that has the specified tab label (for example, if there are two tab boxes that both have a tab labelled "Tab 1", putting #Tab_1 in the URL will scroll to the first one on the page). If there is already another element on the page that could be scrolled to, such as a page section, that other element will have priority, and the tab will not be focused.
- MrStonedOne
- Host
- Joined: Mon Apr 14, 2014 10:56 pm
- Byond Username: MrStonedOne
- Github Username: MrStonedOne
Re: You can now add tabs and dropdowns to wiki pages
Figure out a way to have the tab and other element have different names.
- Iatots
- Joined: Thu Oct 13, 2016 3:17 pm
- Byond Username: Iatots
- Github Username: Iatots
Re: You can now add tabs and dropdowns to wiki pages
I am not sure that is the issue, since on all pages I took care to have "MetaStation" as the tab label, and Meta Station when mentioning the map. "MetaStation" appears exactly once in the source code.
examples:
https://tgstation13.org/wiki/Bridge#MetaStation
https://tgstation13.org/wiki/Supplies#MetaStation
https://tgstation13.org/wiki/Hydroponics#MetaStation
Maybe it's worded badly in the guide, and they actually mean any other scrollable element, irrespective of the name?
Though even with this interpretation I don't see anything.
examples:
https://tgstation13.org/wiki/Bridge#MetaStation
https://tgstation13.org/wiki/Supplies#MetaStation
https://tgstation13.org/wiki/Hydroponics#MetaStation
Maybe it's worded badly in the guide, and they actually mean any other scrollable element, irrespective of the name?
Though even with this interpretation I don't see anything.
- Iatots
- Joined: Thu Oct 13, 2016 3:17 pm
- Byond Username: Iatots
- Github Username: Iatots
Re: You can now add tabs and dropdowns to wiki pages
I still cannot figure this out.
Take the bar page for example: it has tabs for BoxStation, MetaStation, EfficiencyStation, BirdboatStation and DreamStation.
Adding #[tabname] to the URL correctly scrolls to the top of the tabs, but does not focus.
Adding #Meta_Station correctly scrolls to the locations template at the bottom too, still without focusing.
Just what is the holdup here?
Take the bar page for example: it has tabs for BoxStation, MetaStation, EfficiencyStation, BirdboatStation and DreamStation.
Adding #[tabname] to the URL correctly scrolls to the top of the tabs, but does not focus.
Adding #Meta_Station correctly scrolls to the locations template at the bottom too, still without focusing.
Just what is the holdup here?
- Iatots
- Joined: Thu Oct 13, 2016 3:17 pm
- Byond Username: Iatots
- Github Username: Iatots
Re: You can now add tabs and dropdowns to wiki pages
necro triplepost but goonstation has tabs with working #links now. Any way to check which plugins they are using?
- Qbopper
- Joined: Fri Jul 10, 2015 6:34 pm
- Byond Username: Qbopper
- Github Username: Qbopper
- Location: Canada
- Iatots
- Joined: Thu Oct 13, 2016 3:17 pm
- Byond Username: Iatots
- Github Username: Iatots
Re: You can now add tabs and dropdowns to wiki pages
Well it looks like MSO started this thread the same day the master version goon is using was pushed, so unless he installed the extension late at night and had a good sleep before making this post we are running the same as goon. They have a shitload of libraries though.
- Bawhoppennn
- Github User
- Joined: Wed Jan 14, 2015 11:42 pm
- Byond Username: Bawhoppennn
- Github Username: Bawhoppen
Re: You can now add tabs and dropdowns to wiki pages
Conspiracy?Iatots wrote:Well it looks like MSO started this thread the same day the master version goon is using was pushed, so unless he installed the extension late at night and had a good sleep before making this post we are running the same as goon. They have a shitload of libraries though.
I consider myself a /tg/station historian. If you're interested in the server history at all, feel free to ask me and I'll try and get you an answer! #ConcurForever
<KorMobile> you're a hero
[21:20:53] <%oranges> Baw "has cute legs" hoppen
DEAD: ADMIN(Owegno) says, "Nothing lewd happens in adminbus sadly."
[07:13:57] <Rockdtben> Keep in mind that I'm an extremely successful and wealthy male in his late twenties.
(F) DEAD: Professor DonkPocket says, "Admins preventchaos with good messages"
OOC: Pogoman122: Fun fact if someone trespasses on your kitchen just turn them into a nugget
<+KorPhaeron> russians have no souls so magic enrages them
<+KorPhaeron> people who don't like rng are not from /tg/ and are likely redditors
<KorMobile> you're a hero
[21:20:53] <%oranges> Baw "has cute legs" hoppen
DEAD: ADMIN(Owegno) says, "Nothing lewd happens in adminbus sadly."
[07:13:57] <Rockdtben> Keep in mind that I'm an extremely successful and wealthy male in his late twenties.
(F) DEAD: Professor DonkPocket says, "Admins preventchaos with good messages"
OOC: Pogoman122: Fun fact if someone trespasses on your kitchen just turn them into a nugget
<+KorPhaeron> russians have no souls so magic enrages them
<+KorPhaeron> people who don't like rng are not from /tg/ and are likely redditors
ausops wrote:apart from this there is literally nothing more to say other than that this is the first thread in five years to have achieved something.
Who is online
Users browsing this forum: No registered users