diff --git "a/include/class-wb\\DataValueCommonsCategory.php" "b/include/class-wb\\DataValueCommonsCategory.php" new file mode 100644 index 0000000..e3d8cbf --- /dev/null +++ "b/include/class-wb\\DataValueCommonsCategory.php" @@ -0,0 +1,35 @@ +. + +# Wikibase +namespace wb; + +/** + * A DataValue for a Wikimedia Commons category. + * + * There is no special datavalue for a Wikimedia Commons file :^) + */ +class DataValueCommonsCategory extends DataValueCommonsCategory { + + /** + * @return string + */ + public function __toString() { + return "[[c:Category:{$this->getValue()}]]"; + } + +}