انتقل إلى المحتوى

قالب:Examine Wikidata item/شرح

من ويكيبيديا، الموسوعة الحرة

A wrapper template for the examine call in وحدة:WikidataIB.

The template takes two parameters: the propertyID and the entityID. These may be unnamed or given as |pid= and |qid= or any combination.

The propertyID must begin with "P" and the entityID must begin with "Q".

If the entityId is omitted, the template will look at Wikidata for the entity connected to the current page.

Usage[عدل]

Example
Examining مزرعة الحيوان (Q1396889) الصورة (P18)

All of the following produce the same result:

  • {{examine |pid=P18 |qid=Q1396889}}
  • {{examine |P18 |qid=Q1396889}}
  • {{examine |pid=P18 |Q1396889}}
  • {{examine |P18 |Q1396889}}
  • {{examine |qid=Q1396889 |pid=P18}}
  • {{examine |Q1396889 |pid=P18}}
  • {{examine |qid=Q1396889 |P18}}
  • {{examine |Q1396889 |P18}}
  • {{examine |P18}} (if used in the مزرعة الحيوان article)
  • {{examine Wikidata item |pid=P18 |qid=Q1396889}}
  • {{#invoke:WikidataIB |examine |P18 |Q1396889}}

Result:

table#1 {
    table#2 {
        ["id"] = "Q1396889$152458fe-434e-a46e-299c-36f3ffdb2c6b",
        ["mainsnak"] = table#3 {
            ["datatype"] = "commonsMedia",
            ["datavalue"] = table#4 {
                ["type"] = "string",
                ["value"] = "Animal Farm - 1st edition.jpg",
            },
            ["property"] = "P18",
            ["snaktype"] = "value",
        },
        ["qualifiers"] = table#5 {
            ["P2096"] = table#6 {
                table#7 {
                    ["datatype"] = "monolingualtext",
                    ["datavalue"] = table#8 {
                        ["type"] = "monolingualtext",
                        ["value"] = table#9 {
                            ["language"] = "en",
                            ["text"] = "First edition cover",
                        },
                    },
                    ["hash"] = "719fdb5af8c9cf202f12c986beda9207ac699d04",
                    ["property"] = "P2096",
                    ["snaktype"] = "value",
                },
            },
        },
        ["qualifiers-order"] = table#10 {
            "P2096",
        },
        ["rank"] = "normal",
        ["type"] = "statement",
    },
}

انظر أيضًا[عدل]