diff options
author | Martin Fischer <martin@push-f.com> | 2022-12-01 14:15:07 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2022-12-03 07:33:31 +0100 |
commit | c3c56543c6febe8fd4c66dda5551abe965efff7f (patch) | |
tree | e3b831942c9e3bab2a38c0182fba0e56599b84a7 /examples |
initial commit
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; |