Aller au contenu

Module:Wikidata/doc

Si Wikipedia, tasanayt tilellit.

Ceci est la page de documentation pour Module:Wikidata

Examples

[ẓreg aɣbalu]

# Pseudo code Code Result
Q234227.getLabel(lang=, linked=yes, editicon=yes) {{#invoke:Wikidata
          |getLabel
          |item=Q234227
          |linked=yes}}
Tawilayt n Skikda
Q234227.getLabel(lang=, linked=false, editicon=yes) {{#invoke:Wikidata
          |getLabel
          |item=Q234227}}
Tawilayt n Skikda
Q234227.getLabel(lang=en, linked=yes, editicon=yes) {{#invoke:Wikidata
          |getLabel
          |item=Q234227
          |linked=yes
          |lang=en}}
Skikda Province
Q234227.getLabel(lang=en, linked=false, editicon=yes) {{#invoke:Wikidata
          |getLabel
          |item=Q234227
          |lang=en}}
Skikda Province
Q234227.P150
        .select(x=> x.getLabel(lang=, linked=false, editicon=yes))
        .first()
{{#invoke:Wikidata
          |claim
          |item=Q234227
          |property=P150
          |formatting=label
          |list=false}}
Tadayra n Ɛin Qecra
Q234227.P150
        .select(x=> x.getLabel(lang=, linked=yes, editicon=yes))
        .first()
{{#invoke:Wikidata
          |claim
          |item=Q234227
          |property=P17
          |list=false}}
Tadayra n Ɛin Qecra
Q234227.P17
        .select(x=> x.getLabel(lang=ar, linked=yes, editicon=yes))
        .first()
{{#invoke:Wikidata
          |claim
          |item=Q234227
          |property=P150
          |lang=ar
          |list=false}}
دائرة عين قشرة
Q234227.P150
        .select(x=> x.id)
        .first()
{{#invoke:Wikidata
          |claim
          |item=Q234227
          |property=P150
          |formatting=raw
          |list=false}}
Q4833282
Q234227.P150
        .select(x=> x.getLabel(lang=, linked=yes, editicon=yes))
        .toArray()
        .stringJoin(", ")
{{#invoke:Wikidata
          |claim
          |item=Q234227
          |property=P150}}
Tadayra n Ɛin Qecra, Tadayra n Ɛezzaba, Tadayra n Ben Ɛezzuz, Tadayra n Lqull, Tadayra n Leḥdayeq, Tadayra n Lḥerruc, Tadayra n Wlad Ɛṭeyya, Tadayra n Um Ṭṭub, Tadayra n Remḍan Ǧamal, Tadayra n Sidi Mezɣic, Tadayra n Skikda, Tadayra n Tmalus d Tadayra n Zituna
Q234227.P150
        .select(x=> String.Format("• [[{0}]]", x.getLabel(lang=, linked=false, editicon=yes)))
        .toArray()
        .stringJoin("<br/>")
{{#invoke:Wikidata
          |claim
          |item=Q234227
          |property=P150
          |formatting= • [[$1]]
          |separator=<br/>}}
Tadayra n Ɛin Qecra
Tadayra n Ɛezzaba
Tadayra n Ben Ɛezzuz
Tadayra n Lqull
Tadayra n Leḥdayeq
Tadayra n Lḥerruc
Tadayra n Wlad Ɛṭeyya
Tadayra n Um Ṭṭub
Tadayra n Remḍan Ǧamal
Tadayra n Sidi Mezɣic
Tadayra n Skikda
Tadayra n Tmalus
Tadayra n Zituna
Q234227.P150
        .select(x=> String.Format("• {0}", x.getLabel(lang=, linked=true, editicon=yes)))
        .toArray()
        .stringJoin("<br/>")
{{#invoke:Wikidata
          |claim
          |item=Q234227
          |formatting=table
          |property=P150
          |rowformat= • $0
          |separator=<br/>}}
Tadayra n Ɛin Qecra
Tadayra n Ɛezzaba
Tadayra n Ben Ɛezzuz
Tadayra n Lqull
Tadayra n Leḥdayeq
Tadayra n Lḥerruc
Tadayra n Wlad Ɛṭeyya
Tadayra n Um Ṭṭub
Tadayra n Remḍan Ǧamal
Tadayra n Sidi Mezɣic
Tadayra n Skikda
Tadayra n Tmalus
Tadayra n Zituna
Q234227.P150
        .select(x=> String.Format("• {0}, tamanaɣt-is: {1}",
               x.getLabel(lang=, linked=true, editicon=yes),
               x.P36.select(y=> y.getLabel(lang=, linked=yes, editicon=yes)).first()))
        .toArray()
        .stringJoin("<br/>")
{{#invoke:Wikidata
          |claim
          |item=Q234227
          |formatting=table
          |property=P150
          |qualifier=P150/P36
          |rowformat= • $0, tamanaɣt-is: $1
          |separator=<br/>}}
Tadayra n Ɛin Qecra, tamanaɣt-is: Ɛin Qecra
Tadayra n Ɛezzaba, tamanaɣt-is: Ɛezzaba
Tadayra n Ben Ɛezzuz, tamanaɣt-is: Ben Ɛezzuz
Tadayra n Lqull, tamanaɣt-is: Lqull
Tadayra n Leḥdayeq, tamanaɣt-is: Leḥdayeq
Tadayra n Lḥerruc, tamanaɣt-is: Lḥerruc
Tadayra n Wlad Ɛṭeyya, tamanaɣt-is: Wlad Ɛṭeyya
Tadayra n Um Ṭṭub, tamanaɣt-is: Um Ṭṭub
Tadayra n Remḍan Ǧamal, tamanaɣt-is: Remḍan Ǧamal
Tadayra n Sidi Mezɣic, tamanaɣt-is: Sidi Mezɣic
Tadayra n Skikda, tamanaɣt-is: Skikda
Tadayra n Tmalus, tamanaɣt-is: Tamalus
Tadayra n Zituna, tamanaɣt-is: Zituna
Q234227.P150
        .select(x=> String.Format([[{0}|{1}]],
               x.getLabel(lang=, linked=no, editicon=no),
               x.150.select(y=> y.getLabel(lang=, linked=no, editicon=no)).first()
               ?? x.getLabel(lang=, linked=no, editicon=no)))
        .toArray()
        .stringJoin(", ")
{{#invoke:Wikidata
          |claim
          |item=Q141026
          |formatting=table
          |property=P150
          |qualifier=P150/P150
          |editicon=false
          |colformat0=label
          |colformat1=label
          |rowformat=[[$0|{{((}}#if:$1|$1|$0{{))}}]]
          |separator=,{{Nbsp}}
          |conjunction={{Nbsp}}d{{Nbsp}}}}


and its shorter equivalent:

{{#invoke:wikidata
          |linkWithParentLabel
          |item=Q141026
          |property=P150
          |parent=P150}}
Bab Lwad, Berraqi, Bir Murad Rayes, Birtuta, Benɛeknun, Ɛin Benyan, Ɛin Ṭaya, Baba Ḥsen, Bac Jerraḥ, Maqareyya, Rrwiba, Lezzayer Talemmast d Mɛalma

Bab Lwad, Berraqi, Bir Murad Rayes, Birtuta, Benɛeknun, Ɛin Benyan, Ɛin Ṭaya, Baba Ḥsen, Bac Jerraḥ, Maqareyya, Rrwiba, Lezzayer Talemmast d Mɛalma

  • separator=&#8203; won't be ignored. (&#8203; is the html entity for ZERO WIDTH SPACE)