From c3c56543c6febe8fd4c66dda5551abe965efff7f Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Thu, 1 Dec 2022 14:15:07 +0100 Subject: initial commit --- examples/languages.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 examples/languages.php (limited to 'examples/languages.php') diff --git a/examples/languages.php b/examples/languages.php new file mode 100644 index 0000000..3710f86 --- /dev/null +++ b/examples/languages.php @@ -0,0 +1,12 @@ +$wgCode_languages[] = [ + 'tag' => 'query', + 'pygmentsLexer' => 'sparql', + 'actions' => [ + 'run' => 'https://query.wikidata.org/#$code', + 'embed' => 'https://query.wikidata.org/embed.html#$code', + ], + 'linkifiers' => [ + '/\\b[QP][0-9]+\\b/' => 'https://www.wikidata.org/entity/$1', + ], + 'suffix' => '.rq', +]; -- cgit v1.2.3