Skip to content

Commit

Permalink
Amethyst: Link all wiki terms to the wiki in HTML output
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Feb 23, 2017
1 parent d18ebc4 commit c5ce45f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions doomsday/tools/amethyst/lib/amestd.ame
Expand Up @@ -230,10 +230,14 @@ $ Doomsday Engine Wiki specific macros.
@ifdef{WIKI}{
@macro{wikiterm}{[[@glue{@arg}]]}
@macro{wikilink}{[[@glue{@arg{2}}@glue{|}@glue{@arg{1}}]]}
}@else{
}@else{@ifdef{HTML}{
@macro{wikilink}{@link{@arg{1}}{@tag{http://wiki.dengine.net/w/@glue{@arg{2}}}}}
@macro{wikiterm}{@wikilink{@arg}{@arg}}
}
@else{
@macro{wikiterm}{@arg}
@macro{wikilink}{@link{@arg{1}}{http://wiki.dengine.net/w/@arg{2}}}
}
}}
@ifdef{TXT}{
$ Omit the hyperlinks in TXT files.
@macro{wikilink}{@arg}
Expand Down

0 comments on commit c5ce45f

Please sign in to comment.