Issue/1344 (MonolingualTextValue)
https://github.com/SemanticMediaWiki/SemanticMediaWiki/pull/1344
In case where [[Has type::Monolingual text]]
is being used, php update.php
is required to run first as elements of MonolingualTextValue
are stored in separate tables.
Valid annotations
La propriété « Translation » a une zone d’application restreinte et ne peut pas être utilisée comme propriété d’annotation par un utilisateur.La propriété « Translation » a une zone d’application restreinte et ne peut pas être utilisée comme propriété d’annotation par un utilisateur.
text (fr) abc@example.com wrote an email to (en)
Invalid annotations
Pour l’annotation « Has text with language », l’analyseur n’a pas pu déterminer un code de langue (par ex. « foo@en »).
« example.com » n’a pas été reconnu comme un code de langue pris en charge.
Query examples
{{#ask: [[Has text with language::text]] |?Has text with language }}
Has text with language | |
---|---|
Issue/1344 (MonolingualTextValue) | text (fr) abc@example.com wrote an email to (en) |
{{#ask: [[Has text with language::?@en]] OR [[Has text with language::~例の*]] |?Has text with language }}
Has text with language | |
---|---|
Issue/1344 (MonolingualTextValue) | text (fr) abc@example.com wrote an email to (en) |
Issue/1344 (MonolingualTextValue) | 例の一 (ja) |
{{#ask: [[-Has text with language::{{PAGENAME}}]] |?Language code |?Language dependent text }}
Language code« Language code » est une propriété prédéfinie qui représente un code de langue au format BCP47 et est fournie par MediaWiki Sémantique. | Language dependent text | |
---|---|---|
Issue/1344 (MonolingualTextValue) | en | |
Issue/1344 (MonolingualTextValue) | fr |
{{#ask: [[Language code::ja]] |?Language dependent text |?-Has text with language }}
{{#ask: [[Has text with language::?@~zh*]] |?Has text with language=Text |+index=1 |?Has text with language=Code |+index=2 }}
Text | Code | |
---|---|---|
Issue/1344 (MonolingualTextValue) | 国 | zh-Hans |
Issue/1344 (MonolingualTextValue) | 國 | zh-Hant |