Category:OSW77e749fc598341ac8b6d2fff21574058: Difference between revisions

no edit summary
(Created blank page)
 
No edit summary
Tag: Metadata slot edit
Line 1: Line 1:
== Attribute Candidates ==


* Licence, populate e. g. from https://opensource.org/licenses/, https://en.wikipedia.org/wiki/List_of_free-content_licences
footer
Line 1: Line 1:
 
{{#invoke:Entity|footer}}
header
Line 1: Line 1:
 
{{#invoke:Entity|header}}
jsondata
Line 1: Line 1:
{}
{
    "subclass_of": [
        "Category:OSWe427aafafbac4262955b9f690a83405d"
    ],
    "uuid": "77e749fc-5983-41ac-8b6d-2fff21574058",
    "label": [
        {
            "text": "Software",
            "lang": "en"
        },
        {
            "text": "Software",
            "lang": "de"
        }
    ],
    "name": "Software",
    "type": [
        "Category:Category"
    ]
}
jsonschema
Line 1: Line 1:
{}
{
    "type": "object",
    "@context": [
        "/wiki/Category:OSWe427aafafbac4262955b9f690a83405d?action=raw\u0026slot=jsonschema",
        {
            "repository": "Property:HasRepository"
        }
    ],
    "allOf": [
        {
            "$ref": "/wiki/Category:OSWe427aafafbac4262955b9f690a83405d?action=raw\u0026slot=jsonschema"
        }
    ],
    "title": "Software",
    "properties": {
        "type": {
            "default": [
                "Category:OSW77e749fc598341ac8b6d2fff21574058"
            ]
        },
        "repository": {
            "type": "array",
            "title": "Repositories",
            "eval_template": {
                "type": "mustache",
                "mode": "render",
                "value": "{{#repository}}{{{.}}} {{/repository}}"
            },
            "items": {
                "type": "string",
                "title": "Repository",
                "format": "url"
            }
        },
        "readme": {
            "type": "string",
            "title": "ReadMe",
            "format": "url"
        }
    },
    "required": [
        "type"
    ]
}
header_template
Line 1: Line 1:
<table class="info_box">
<tr>
<th class="heading" colspan="2">{{{_label_schema|Software}}}</th>
</tr>
<tr>
<th>{{#switch:{{USERLANGUAGECODE}}|en=Repository|de=Repository}}</th>
<td>{{#arraymap:{{{repository|}}}|<nowiki> </nowiki>|__REPO__|* [__REPO__ {{#explode: {{#explode: __REPO__ |//|1}} |/|0}}]|\n}}<!-- create a link list with domains as labels --></td>
</tr>
</table>


{{#if: {{{readme|}}}|
= Readme =
{{Template:Viewer/Github/Code|url={{{readme|}}} }}<!-- display the Readme -->|
{{#ifeq: {{#explode: {{#explode: {{#explode:{{{repository|}}}| |0}} |//|1}} |/|0}}|github.com|
= Readme =
{{Template:Viewer/Github/Code|url={{#explode:{{{repository|}}}| |0}}/blob/main/README.md| |0}} }}<!-- display the Readme of the first repo if it's a github repo -->|}} }}