Property:Sourcecode lang
Jump to navigation
Jump to search
Tim Holzheim (talk | contribs) (pushed from wiki by wikipush) |
Tim Holzheim (talk | contribs) |
||
| Line 22: | Line 22: | ||
[[Has type::text]] | [[Has type::text]] | ||
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }} | This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }} | ||
| + | |||
| + | |||
| + | == Languages == | ||
| + | |||
| + | === smw === | ||
| + | If smw is defined as language of [[Concept:Sourcecode]] it is expected that the text of the sourcecode contains only the selection and variable assignment and NOT the definition that the query is a ASK query. | ||
| + | The query MUST be embedded between pre-tags to avoid syntax errors with the definition as sourcecode. | ||
| + | ==== Example ==== | ||
| + | Valid smw query for a [[Concept:Sourcecode]]: | ||
| + | <source lang="smw"> | ||
| + | <pre> | ||
| + | [[Concept:Topic]] | ||
| + | |mainlabel=Topic | ||
| + | | ?Topic name = name | ||
| + | | ?Topic pluralName = pluralName | ||
| + | | ?Topic icon = icon | ||
| + | | ?Topic iconUrl = iconUrl | ||
| + | | ?Topic documentation = documentation | ||
| + | | ?Topic wikiDocumentation = wikiDocumentation | ||
| + | | ?Topic defaultstoremode = defaultstoremode | ||
| + | | ?Topic listLimit = listLimit | ||
| + | | ?Topic cargo = cargo | ||
| + | | ?Topic headerTabs = headerTabs | ||
| + | | ?Topic context = context | ||
| + | }} | ||
| + | </pre> | ||
| + | </source> | ||
Latest revision as of 00:57, 9 February 2021
| Property | |
|---|---|
| name | lang |
| label | lang |
| type | Special:Types/text |
| index | 2 |
| sortPos | 2 |
| primary key | false |
| mandatory | false |
| namespace | |
| size | 50 |
| uploadable | false |
| default | |
| inputType | dropdown |
| allowedValues | |
| documentation | The language of the sourcecode |
| values from | property=Sourcecode_lang |
| showInGrid | |
| isLink | false |
| allow nulls? | |
| topic | Concept:Sourcecode |
| placeholder | |
| regex | |
text This is a Property with type Special:Types/text
Languages
smw
If smw is defined as language of Concept:Sourcecode it is expected that the text of the sourcecode contains only the selection and variable assignment and NOT the definition that the query is a ASK query. The query MUST be embedded between pre-tags to avoid syntax errors with the definition as sourcecode.
Example
Valid smw query for a Concept:Sourcecode:
<pre>
[[Concept:Topic]]
|mainlabel=Topic
| ?Topic name = name
| ?Topic pluralName = pluralName
| ?Topic icon = icon
| ?Topic iconUrl = iconUrl
| ?Topic documentation = documentation
| ?Topic wikiDocumentation = wikiDocumentation
| ?Topic defaultstoremode = defaultstoremode
| ?Topic listLimit = listLimit
| ?Topic cargo = cargo
| ?Topic headerTabs = headerTabs
| ?Topic context = context
}}
</pre>