Category:Item: Difference between revisions

m
Reverted edits by Maintenance script (talk) to last revision by Admin
(Install package: OSW Core)
 
m (Reverted edits by Maintenance script (talk) to last revision by Admin)
Tag: Rollback
 
(5 intermediate revisions by 2 users not shown)
footer_template
Line 1: Line 1:
=={{#switch:{{USERLANGUAGECODE}}|en=Graph|de=Graph}}==
=={{#switch:{{USERLANGUAGECODE}}|en=Graph|de=Graph}}==
<div style="width: 100%;" class="InteractiveSemanticGraph" data-config='{ "root":"{{FULLPAGENAME}}", "properties":["Subcategory of","-Subcategory of","-IsASubcategoryOf","IsASubcategoryOf","-IsInstanceOf","IsLocatedIn"], "ignore_properties":["IsA"], "permalink":true, "depth":2, "edit": true}'></div>
<div style="width: 100%;" class="InteractiveSemanticGraph" data-config='{ "root":"{{FULLPAGENAME}}", "properties":["Subcategory of","-Subcategory of","-IsASubcategoryOf","IsASubcategoryOf","-IsInstanceOf","IsLocatedIn", "SubClassOf", "-SubClassOf"], "ignore_properties":["IsA"], "permalink":true, "depth":2, "edit": true}'></div>
<br>
<br>
<br>
<br>
jsonschema
Line 29: Line 29:
             "type": "array",
             "type": "array",
             "format": "table",
             "format": "table",
            "eval_template": [
                {
                    "type": "mustache-wikitext",
                    "mode": "render",
                    "value": "{{#type}} [[:{{{.}}}]] \u003Cbr\u003E{{/type}}"
                }
            ],
             "items": {
             "items": {
                 "title": "Type",
                 "title": "Type",
Line 36: Line 43:
                 "type": "string",
                 "type": "string",
                 "format": "autocomplete",
                 "format": "autocomplete",
                 "query": "[[IsA::Category:Category]] |?Display_title_of=label",
                 "options": {
                "previewWikiTextTemplate": "[[:{{result.fulltext}}]]",
                    "autocomplete": {
                "labelTemplate": "{{result.printouts.label.[0]}}"
                        "query": "[[IsA::Category:Category]] |?Display_title_of=label",
                        "render_template": {
                            "type": [
                                "handlebars"
                            ],
                            "value": "\u003Ca href='/wiki/{{result.fulltext}}'\u003E{{result.printouts.label.[0]}}\u003C/a\u003E"
                        }
                    }
                }
             },
             },
             "minLength": 1,
             "minLength": 1,
header_template
Line 11: Line 11:
<tr>
<tr>
<th>{{{_label_type|Type(s)/Category(s)}}}</th>
<th>{{{_label_type|Type(s)/Category(s)}}}</th>
<td>{{#ask:[[{{FULLPAGENAME}}]]|?HasType=|format=plain|mainlabel=-}}</td>
<td>{{{type|}}}</td>
</tr>
</tr>
</table>
</table>