mirror of
https://github.com/foo-dogsquared/asciidoctor-foodogsquared-extensions.git
synced 2025-01-31 04:58:07 +00:00
.. | ||
extension.rb | ||
README.adoc |
Table of Contents
An inline macro for easily creating Wikipedia links (i.e., wikipedia.org
).
Synopsis
wikipedia:PAGE[$CAPTION]
Where if $CAPTION
is present, it will be used as the link text.
Otherwise, it will just be the page.
Attributes
-
lang
is the language domain to be linked into. By default, it is set toen
.
Example usage
-
wikipedia:Diff[]
should link to the Diff page on English Wikipedia. -
wikipedia:Diff[lang=ja]
should link to the Diff page on Japanese Wikipedia. -
wikipedia:Photosynthesis[lang=simple]
should link to the Photosynthesis page on Simple English Wikipedia. -
wikipedia:Diff[diff in Japanese Wikipedia, lang=ja]
should link to the Diff page on Japanese Wikipedia with thediff in Japanese Wikipedia
as the link text.