Hello
I was wondering if there was a simple way to write links with #anchor for anchor links
i'm using the Textile Editor, since the CkEditor is clunky, i know you can easily make them in that.
Currently i use [[ Link | Text ]] to write internal wiki links, this is all well and good but for some pages i need to use anchor links such ash /wiki/cities#name as an example, i currently write them as normal links, however they show up as off-site links with different styling, is there a way to write something link [[ Link | #anchor | Text ]] to solve this?
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
You can look at @UselessTriviaMan Ptolus Campaign he setup some anchors there.
Basically, you can create the anchors like this throughout your text where you want the anchors to jump to.
And then create your clickable links like this.
They are among us!
XCom: Defiance - Campaign of the Month November 2016
Yes i do that currently by making normal links, but i need to link to another page and was wondering if i can do that somehow using built in link expressions?
i currently write my links as
[[classes | Classes]] for normal internal links
"Classes":/wikis/classes#Fighter for anchor links
The first way gives the link the class "wiki-page-link" since it's an internal link, however the secound way doesn't, i can manually give the link by writing the <a> tag manually but that defeats the purpose of having link expressions
-Phratzz
I see what you want. You are trying to create a CSS following wikipedia's coloring coding for links and the class of anchor links vs wiki links is causing the style to be different.
Short answer is there is no easy way I know of to change the class of the anchor link to a wiki-page-link class. That being said you could look at modifying a subset of the external-link class to mimic the wiki-page-link class
They are among us!
XCom: Defiance - Campaign of the Month November 2016
Okay, that's what i thought, just wanted to make sure i wasn't missing anything.
Then i'm just gonna check for internal links via css instead using something like this.
-Phratzz
Yeah, great idea.
They are among us!
XCom: Defiance - Campaign of the Month November 2016