Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
This query is marked as a draft
This query has been published
by
Xiplus
.
Toggle Highlighting
SQL
CREATE FUNCTION `nsname`(@ns INT) RETURNS VARCHAR(255) AS BEGIN case when @ns = 0 then RETURN "" when @ns = 1 then RETURN "Talk:" when @ns = 2 then RETURN "User:" when @ns = 3 then RETURN "User talk:" when @ns = 4 then RETURN "Wikpeida:" when @ns = 5 then RETURN "Wikpeida talk:" when @ns = 6 then RETURN "File:" when @ns = 7 then RETURN "File talk:" when @ns = 8 then RETURN "Mediawiki:" when @ns = 9 then RETURN "Mediawiki talk:" when @ns = 10 then RETURN "Template:" when @ns = 11 then RETURN "Template talk:" when @ns = 12 then RETURN "Help:" when @ns = 13 then RETURN "Help talk:" when @ns = 14 then RETURN "Category:" when @ns = 15 then RETURN "Category talk:" when @ns = 100 then RETURN "Portal:" when @ns = 101 then RETURN "Portal talk:" when @ns = 118 then RETURN "Draft:" when @ns = 119 then RETURN "Draft talk:" when @ns = 828 then RETURN "Module:" when @ns = 829 then RETURN "Module talk:" end END; SELECT nsname(1);
By running queries you agree to the
Cloud Services Terms of Use
and you irrevocably agree to release your SQL under
CC0 License
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...