SpaceBadger
Yeah, I already read the Help item stating that you cannot yet link to a specific section within a Wiki page. The only suggested workaround was to use HTML "name=" tags instead. This somewhat ruins the usefulness of such things as glossaries or lists of minor items that you don't want to have clogging up the works with their own wiki pages. Also prevents the handy content list at the top of a page with links to sections within the page.
Is there really no better work-around figured out yet, allowing sections of a page to be labeled and referenced in links? If somebody has a better method, please share!
If there really is none now, is it reasonably near the top of the priority list to fix?
Never saw a wiki that wouldn't allow this, including (IIRC) the ones here at OP a few years ago when I was working on them as a player fleshing out details for the GM.
Comments
@[1]@
is associated with
@fn1. blah blah@
- Kallak
So. Instead of normal pages with subdivisions which can be linked, just lots of shorter top level pages? Maybe instead of TOCs at the top of the page with links to sections, just separate TOC pages linking to the other section pages? Not as neat and tidy, but you work with what you have... :(
@"Link":#link@
And a line where you want it to go:
@@
And if you want to link it from off page, just use the full URL with the # anchor on the end.
Is there some specific functionality that doesn't cover that you are looking for? Maybe we can point out some alternatives.
One of the nice things about wikis, as opposed to just doing a bunch of HTML pages, is that once you make a link to a page like [[History]] you can then use that same link-word to link to sections on that page like [[History#Exodus|The Great Exodus]] rather than copy/pasting an HTML link.
Just easier, for me at least, and also the way it works in most other wikis I've used, and I am pretty sure it worked that way here a couple years ago, so not sure why that would have been changed.
Shadowrun: The Rat's Nest - COTM November 2014
But I just tried the above and found a problem, and a solution.
The actual anchor works as Baselius showed it. But it is offset a few lines because of the fixed header.
This is how I solved it:
The link itself:
@"Link":#link@
The anchor:
@@
Then, in my custom css, I added:
@.anchor{top:-75px;display: block; position: relative;}@
This way, I "move" the anchor 75px, and it lines up perfectly. Just thought I could share it if anybody else (like me), searched for the answer to this.
Just trying to help out.
Well done...
Unconquered Kingdoms, July 2016 CotM
p=. "A":#A
I just tried Ikabodo's CSS fix, but it isn't consistently working. I've been gaming the system and placing the anchors a line or two higher in the text so it'll jump to the point I want.
This is becoming ridiculously frustrating. (I kinda wish I'd kept going with my low-tech fix, rather than messing with this.) The really puzzling part is that _some_ of the links will get offset, but others completely ignore the CSS.
Question:
bc. If I use "Link1":#link1 and "Link2":#link2 along with and on the same wiki page,
Shouldn't the "anchor" class CSS apply to both links 1 and 2 when they're both on the same page? Because for me, the class (my custom CSS was copy/pasted from Ikabodo's) appears to work for Link 1 but not Link 2.
Ptolus, City by the Spire - 2016 Campaign of the Year
"Please pay attention very carefully, because this is the truest thing a stranger will ever say to you: In the face of such hopelessness as our eventual, unavoidable death, there is little sense in not at least TRYING to accomplish all your wildest dreams in life." - - Kevin Smith