此主题已被锁定
Blitz4 2017 年 8 月 25 日 下午 3:36
Linking to sections inside of guides?
How do you link to a section within a Steam Guide? Some would take hours to read and I want to hilight parts of a guide, but not quote that section of a guide as it could be updated in the future.
< >
正在显示第 1 - 10 条,共 10 条留言
HEART 2017 年 8 月 25 日 下午 3:38 
You cannot link to guide sections.
Blitz4 2017 年 8 月 25 日 下午 4:02 
Some huge guides I came across are written like an entire wiki and updated often.
You want to link to a section of them as that can help speed up threads going on for too long and could be solved by linking to a section of a guide.


One link I found:

if you add
#GuideTableOfContents
to the end of the guide url, it takes you to the TOC, but in some guides, the TOC spans several pages.
HEART 2017 年 8 月 25 日 下午 4:09 
If you click on anything in the guide index (either as the creator or non-creator), it takes you to that section, however the weblink does not change, thus, there is no way to do this.
Blitz4 2017 年 8 月 25 日 下午 4:14 
ok thanks. good explanation.
it's hard to ignore all of that info in those guides.
i'm no good at javascript. i'm guessing adding &var=value or using javascript embedded in a bookmark wouldn't work either?
HEART 2017 年 8 月 25 日 下午 4:16 
引用自 Blitz4
ok thanks. good explanation.
it's hard to ignore all of that info in those guides.
i'm no good at javascript. i'm guessing adding &var=value or using javascript embedded in a bookmark wouldn't work either?
I'm rather surprised it is that way, but when you look at the guide entity as a whole, it makes sense. Since it is "one piece", that won't work.
Blitz4 2017 年 8 月 25 日 下午 4:59 
I'm not a fan of the current TOC and how it works. It's great that it follows along with you so you know where you are in the guide, but it's poor when dealing with huge guides with a TOC that goes off screen.

Here's my attempt at bookmarking sections:
For general tips, click this link, press CTRL+F, type General tips, press ENTER

If you're 100% sure that everybody reading is computer literate:
For general tips, find the General tips section

But even then, those links are forced to open in the Steam Client, which you can't use Ctrl+F!


And if the guide author ever edits the guide and adds the term 'General tips' in the guide, before the category I'm directing people to: General tips, well - that would make what I said wrong. So the guide is ignored.

The good old gamefaqs.com guides had text links with crazy letters&numbers in them that they would never type to prevent this from happening.
最后由 Blitz4 编辑于; 2017 年 8 月 25 日 下午 5:01
Nyerguds 2023 年 3 月 26 日 上午 7:26 
It seems this is actually possible. If you press "inspect element" on an item in the TOC, you see it has a javascript that does this:

javascript:SelectGuideSection( '4303333', 'changeHash' )

If you take the numeric id there, you can add it to the url as #4303333 and the link will indeed jump to that section.

It's pretty janky though; the system that remembers your position in these guides at all times seems to often mess it up, sometimes requiring a page reload before it actually jumps to the section.
最后由 Nyerguds 编辑于; 2023 年 3 月 26 日 上午 7:52
DisgustingLeftistQxji 2023 年 7 月 9 日 下午 12:47 
引用自 Nyerguds
It seems this is actually possible. If you press "inspect element" on an item in the TOC, you see it has a javascript that does this:

javascript:SelectGuideSection( '4303333', 'changeHash' )

If you take the numeric id there, you can add it to the url as #4303333 and the link will indeed jump to that section.

It's pretty janky though; the system that remembers your position in these guides at all times seems to often mess it up, sometimes requiring a page reload before it actually jumps to the section.

You can also look at the div id of that section, this is functionally the same. The only problem is that it scrolls up again because it wants to reset your position. Would be nice if steam fixed that.
Blitz4 2023 年 7 月 9 日 下午 10:30 
引用自 Nyerguds
It seems this is actually possible. If you press "inspect element" on an item in the TOC, you see it has a javascript that does this:

javascript:SelectGuideSection( '4303333', 'changeHash' )

If you take the numeric id there, you can add it to the url as #4303333 and the link will indeed jump to that section.

It's pretty janky though; the system that remembers your position in these guides at all times seems to often mess it up, sometimes requiring a page reload before it actually jumps to the section.

You can also look at the div id of that section, this is functionally the same. The only problem is that it scrolls up again because it wants to reset your position. Would be nice if steam fixed that.
Yes it would!

I would be comfortable sharing more links to steam guides if they did. For example in Discord.

It's valuable info. I'd like to believe Valve feels the same.
Nanami 1 月 29 日 上午 12:35 
This thread was quite old before the recent post, so we're locking it to prevent confusion.
< >
正在显示第 1 - 10 条,共 10 条留言
每页显示数: 1530 50

发帖日期: 2017 年 8 月 25 日 下午 3:36
回复数: 10