This module displays organisms from Wikidata property P703 ("found in taxon") with inline citations extracted directly from Wikidata references. It is completel
This module displays organisms from Wikidata property P703 ("found in taxon") with inline citations extracted directly from Wikidata references. It is completely self-contained with zero external module dependencies, making it easily transferable across all Wikimedia projects.
{{#invoke:P703|main}}
{{#invoke:P703|main|qid=Q3613679|numval=10|sources=true}}
|organisms={{#if: {{#property:P703}} | {{#invoke:P703|main}} | }}
| Parameter | Description | Default Value | Valid Values |
|---|---|---|---|
qid |
Wikidata entity ID to query | Current page's QID | Any valid Q-identifier (e.g., Q3613679)
|
numval |
Maximum organisms to display | 5 |
Any positive integer |
sources |
Display inline citations | true |
true, false, yes, no
|
The module adapts its output based on the number of organisms found:
| Scenario | Output Format | Example |
|---|---|---|
| No organisms | Returns localized "no known organism" message | no known organism
|
| 1–n organisms | Shows count and complete list | 3 organisms: Human, Mouse, Rat
|
| More than n organisms | Shows count with "including" prefix | 15 organisms, including: Human, Mouse, Rat, Dog, Cat
|
{{#invoke:P703|main}}
Output: 2 organisms: Human, Mouse
{{#invoke:P703|main|qid=Q3613679}}
Output: Displays organisms for Wikidata item Q3613679
{{#invoke:P703|main|numval=20}}
Output: 25 organisms, including: [first 20 organisms]
{{#invoke:P703|main|sources=false}}
Output: 5 organisms: Human, Mouse, Rat, Dog, Cat (no reference tags)
{{#invoke:P703|main|qid=Q2079986|numval=3|sources=true}}
Output: 10 organisms, including: Organism₁[1], Organism₂[2], Organism₃[3]
When sources=true (default), the module automatically extracts and formats bibliographic data from Wikidata references:
Supported Fields:
Example Citation:
Smith J, Jones A, Williams B et al. "Protein Expression in Model Organisms". Nature Genetics 45 (3): pp. 123-130. (2023). doi:10.1038/ng.3456. pmid:12345678.
The module intelligently chooses the best link for each organism:
[[Local Article|Label]]Label (lang)Label (d)This ensures users can always access information about the organism, even if no local article exists.
To adapt this module for other languages, edit the i18n table in the code:
local i18n = {
no_organism = "aucun organisme connu", -- French example
including = "dont",
wd_label = "d",
separator = ", ",
organism = "organisme",
organisms = "organismes"
}
numval limitUnlike most modules, P703 is completely self-contained:
Module:LanguageSpecificModuleThis makes it:
| Scenario | Module Response |
|---|---|
| No QID provided | Uses current page's Wikidata item |
| Invalid QID | Returns "no known organism" |
| No P703 claims | Returns "no known organism" |
| Missing reference data | Gracefully omits citation |
| Malformed citation data | Includes available fields only |
This module is released under CC0 (Public Domain). Feel free to adapt, translate, and deploy on any Wikimedia project without attribution.
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.