Category:OSW5a06d049e4e04215bef72aacf7f95fe7: Difference between revisions

no edit summary
No edit summary
Tag: Metadata slot edit
 
No edit summary
Tag: Metadata slot edit
 
(7 intermediate revisions by the same user not shown)
footer
Line 1: Line 1:
 
{{#invoke:Entity|footer}}
header
Line 1: Line 1:
 
{{#invoke:Entity|header}}
jsondata
Line 1: Line 1:
{}
{
    "subclass_of": [
        "Category:OSW37a57741ae2e4dd4b29b1172b6848be8"
    ],
    "type": [
        "Category:Category"
    ],
    "uuid": "5a06d049-e4e0-4215-bef7-2aacf7f95fe7",
    "label": [
        {
            "text": "Physical Sample",
            "lang": "en"
        }
    ],
    "description": [
        {
            "text": "Identical to physical sample but SampleClass is within SampleBasic",
            "lang": "en"
        }
    ],
    "name": "PhysicalSample"
}
jsonschema
Line 2: Line 2:
     "@context": [
     "@context": [
         "/wiki/Category:Item?action=raw\u0026slot=jsonschema",
         "/wiki/Category:Item?action=raw\u0026slot=jsonschema",
        "/wiki/Category:OSWc93485b34c3d42a78c66f42f744f9528?action=raw\u0026slot=jsonschema",
        "/wiki/Category:OSWd85e1f32e2314a6aa8a468de1264d3e1?action=raw\u0026slot=jsonschema",
         {
         {
             "SampleBasic": {
             "SampleBasic": {
Line 83: Line 81:
     "properties": {
     "properties": {
         "type": {
         "type": {
            "propertyOrder": 2000,
             "default": [
             "default": [
                 "Category:OSW5a06d049e4e04215bef72aacf7f95fe7"
                 "Category:OSW5a06d049e4e04215bef72aacf7f95fe7"
Line 116: Line 115:
                 "Project"
                 "Project"
             ],
             ],
            "additionalProperties": false,
             "properties": {
             "properties": {
                 "uuid": {
                 "uuid": {
Line 138: Line 138:
                     "enum": [
                     "enum": [
                         "Thin Film",
                         "Thin Film",
                        "Bulk",
                         "Powder"
                         "Powder"
                     ]
                     ]
Line 208: Line 207:
                 }
                 }
             },
             },
            "eval_template": {
                "type": "wikitext",
                "mode": "render",
                "value": "{{#if:{{{Parent|}}}|Parent: {{{Parent|}}}}}"
            },
            "additionalProperties": false,
             "properties": {
             "properties": {
                 "uuid": {
                 "uuid": {
Line 221: Line 226:
                     "title": "Sample Parent",
                     "title": "Sample Parent",
                     "description": "Leave empty if your sample is not created out of an other sample which should be listed.",
                     "description": "Leave empty if your sample is not created out of an other sample which should be listed.",
                    "eval_template": {
                        "type": "mustache-wikitext",
                        "mode": "render",
                        "value": "{{=\u003C% %\u003E=}}\u003C%#Parent%\u003E[[:\u003C%.%\u003E]] \u003Cbr\u003E \u003C%/Parent%\u003E"
                    },
                     "items": {
                     "items": {
                         "type": "string",
                         "type": "string",
                         "title": "Parent",
                         "title": "Parent",
                         "format": "autocomplete",
                         "format": "autocomplete",
                        "range": "Category:OSW8f0b764ce20e493eb297af62894beead",
                         "options": {
                         "options": {
                             "inputAttributes": {
                             "inputAttributes": {
                                 "placeholder": "ExSample-0"
                                 "placeholder": "ExSample-0"
                            },
                            "autocomplete": {
                                "category": "Category:OSW5a06d049e4e04215bef72aacf7f95fe7"
                             }
                             }
                         }
                         }
Line 252: Line 264:
                 "InvolvedPerson"
                 "InvolvedPerson"
             ],
             ],
            "eval_template": {
                "type": "wikitext",
                "mode": "render",
                "value": "{{#if:{{{InvolvedPersons|}}}|{{{InvolvedPersons|}}}}}"
            },
             "items": {
             "items": {
                 "type": "object",
                 "type": "object",
Line 260: Line 277:
                     }
                     }
                 },
                 },
                "eval_template": {
                    "type": "wikitext",
                    "mode": "render",
                    "value": "{{#if:{{{InvolvedPersonID|}}}|{{{PersonRole|}}}: {{{InvolvedPersonID|}}}\u003Cbr\u003E}}"
                },
                "additionalProperties": false,
                 "properties": {
                 "properties": {
                     "uuid": {
                     "uuid": {
Line 285: Line 308:
                 }
                 }
             }
             }
        },
        "description": {
            "propertyOrder": 2010
         }
         }
     }
     }
}
}
header_template
Line 1: Line 1:
 
<table class="info_box">
<tr>
<th class="heading" colspan="2">Physical Sample</th>
</tr>
<tr><td class="subheading" colspan="2">
  {{#switch:{{USERLANGUAGECODE}}
    |en=Basic information
    |de=Allgemeine Angaben
  }}</td>
</tr>
{{#ask: [[-Has subobject::{{FULLPAGENAME}}]] [[HasNormalizedLabel::samplebasic]]
|?HasSampleName
|?HasSampleSeries
|?HasDescription
|?HasOwnerID
|?HasPhysicalLocationNote
|?HasProject
|?HasSampleClass
|format=template
|mainlabel=-
|userparam=Sample Name,Sample Series,Description,Owner ID,Physical Location Note,Project,Sample Class
|template=Template:General:HeaderTemplateTableRows
}}
<tr><td class="subheading" colspan="2">{{#switch:{{USERLANGUAGECODE}}
    |en=Sample Relations
    |de=Verwandte Proben
    }}</td>
</tr>
{{#ask: [[-Has subobject::{{FULLPAGENAME}}]] [[HasNormalizedLabel::samplerelations]]
|?HasParent
|format=template
|mainlabel=-
|userparam=Parent
|template=Template:General:HeaderTemplateTableRows
}}
<tr><td class="subheading" colspan="2">{{#switch:{{USERLANGUAGECODE}}
    |en=Involved Persons
    |de=Involvierte Personen
    }}</td>
</tr>
{{#ask: [[-Has subobject::{{FULLPAGENAME}}]] [[HasNormalizedLabel::involvedpersons]]
|?HasInvolvedPersonID
|?HasPersonRole
|format=template
|mainlabel=-
|named args=1
|template=Template:ELN:HeaderTemplateInvolvedPerson
}}
</table>