LogicAndTrick / twhl

TWHL Website
http://twhl.info
MIT License
10 stars 2 forks source link

Wiki: Can't use internal links for articles with a hash sign (#) in their name #95

Open oskarlh opened 2 months ago

oskarlh commented 2 months ago

There doesn't seem to be any obvious way to create an internal link to VERC: Style Guide #1. [[VERC: Style Guide #1]] doesn't work as seen in the description of https://twhl.info/wiki/page/upload%3AVERC_Archive%3A_style-lab1-fig1.jpg/4127

LogicAndTrick commented 1 month ago

Yeah unfortunately its a choice between allowing links to anchors in pages or allowing # in page titles.... I think making # a forbidden character might be the better option but honestly not sure... thoughts?

oskarlh commented 1 month ago

There is also the option of using an escape character. Or a double hash [[VERC: Style Guide ##1]].

oskarlh commented 1 month ago

Making # a forbidden character in article titles would prevent any mistakes when linking to such articles but for some articles the # could be meaningful, probably most with a # https://twhl.info/search/index?search=%23

LogicAndTrick commented 1 month ago

A lot of those "entity attribute: ... # " articles aren't really worth keeping though, and the rest could be renamed pretty easily. I'll have to check what the current list of restricted characters is (if any...)