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/languages.php | |
initial commit
Diffstat (limited to 'examples/languages.php')
| -rw-r--r-- | examples/languages.php | 12 | 
1 files changed, 12 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', +]; | 
