diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/languages.php | 12 | ||||
-rw-r--r-- | examples/namespacesWithCodePages.php | 1 |
2 files changed, 13 insertions, 0 deletions
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', +]; diff --git a/examples/namespacesWithCodePages.php b/examples/namespacesWithCodePages.php new file mode 100644 index 0000000..b3eb4e1 --- /dev/null +++ b/examples/namespacesWithCodePages.php @@ -0,0 +1 @@ +$wgCode_namespacesWithCodePages[NS_MAIN] = true; |