---
name: "MojoMojo::Formatter::WikipediaLink"
section: "3pm"
platform: "linux"
package: "libmojomojo-perl"
version: "1.12+dfsg-1"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/MojoMojo::Formatter::WikipediaLink"
---

# MojoMojo::Formatter::WikipediaLink(3pm)

Linked Wikipedia by writing {{wikipedia:\<lang\> \<word\>}}

## NAME

MojoMojo::Formatter::WikipediaLink - Linked Wikipedia by writing {{wikipedia:\<lang\> \<word\>}}

## DESCRIPTION

Normally, to hyperlink to the Wikipedia, you'd write:

```
    [wikipedia Hello](http://en.wikipedia.org/wiki/Hello)
```

This plugin lets you write just

```
    {{wikipedia Hello}}
```

not just Link to Wikipedia in English page, you can use many languages

```
    {{wikipedia:ja こんにちは}}
    {{wikipedia:fr Salut}}
```

Actually, if you wrote this without a language ex.{{wikipedia Foo}}, select location of Wikipedia Link is getting default-language setting of MojoMojo.

## METHODS

### format\_content\_order

The WikipediaLink formatter has no special requirements in terms of the order it gets run in, so it has a priority of 17.

### format\_content

Calls the formatter. Takes a ref to the content as well as the context object.

### process

Here the actual formatting is done.

## SEE ALSO

MojoMojo and Module::Pluggable::Ordered.

## AUTHORS

Dai Okabayashi, "bayashi at cpan . org"

## LICENSE

This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.
