Get rid of wikiwordification
Bug #1595294 reported by
kaputtnik
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Widelands Website |
Fix Released
|
High
|
Unassigned |
Bug Description
This is just a reminder to get rid of wikiwordification (automatically turn words like "WikiHelp" or "GameHelpMultip
We should instead use markdowns wikilinks extension: http://
This needs scanning all wikiarticles for "WikiLinksWords" and replace them with the markdown syntax. I think an admin action could this.
Related branches
lp:~widelands-dev/widelands-website/get_rid_of_wikiwords
- GunChleoc: Approve
-
Diff: 547 lines (+321/-71)12 files modifiedmainpage/templatetags/wl_markdown.py (+5/-18)
markdownextensions/semanticwikilinks/ChangeLog.md (+22/-0)
markdownextensions/semanticwikilinks/LICENSE.md (+30/-0)
markdownextensions/semanticwikilinks/README.md (+78/-0)
markdownextensions/semanticwikilinks/mdx_semanticwikilinks.py (+168/-0)
pybb/models.py (+1/-1)
pybb/views.py (+1/-1)
templates/wiki/article_content.html (+4/-4)
wiki/forms.py (+1/-1)
wiki/templatetags/wiki_extras.py (+0/-27)
wiki/urls.py (+1/-1)
wiki/views.py (+10/-18)
Changed in widelands-website: | |
status: | New → Triaged |
Changed in widelands-website: | |
importance: | Undecided → High |
Changed in widelands-website: | |
status: | Triaged → In Progress |
Changed in widelands-website: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
The wikilinks extension of markdown has one disadvantage: It is not possible to give a different label, e.g. it is not possible to have a link like:
<a href="/ wiki/GameHelpMu ltiplayer" >Multiplayer< /a>
or, as bad example but often used:
<a href="/ wiki/GameHelpMu ltiplayer" >see here</a>
There is a third party extension to markdown called semanticwikilinks which could solve this, so the syntax is a bit different. The following examples will produce the above links:
[[ GameHelpMultiplayer | Multiplayer ]]
[[ GameHelpMultiplayer | see here ]]
But this extension is quite old and some of the benefits do not work as described. I have proposed a change but had no answer yet.
https:/ /github. com/aleray/ mdx_semanticwik ilinks