https://de.wikipedia.org/w/index.php?action=history&feed=atom&title=Module%3AWikidataDescription Modul:WikidataDescription - Versionsgeschichte 2025-06-06T19:47:27Z Versionsgeschichte dieser Seite in Wikipedia MediaWiki 1.45.0-wmf.4 https://de.wikipedia.org/w/index.php?title=Modul:WikidataDescription&diff=202580265&oldid=prev Wickie37: verhindern, dass eine fremdsprachige Beschreibung angezeigt wird, wenn keine deutsche vorhanden 2020-08-07T16:49:01Z <p>verhindern, dass eine fremdsprachige Beschreibung angezeigt wird, wenn keine deutsche vorhanden</p> <table style="background-color: #fff; color: #202122;" data-mw="interface"> <col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <tr class="diff-title" lang="de"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 7. August 2020, 18:49 Uhr</td> </tr><tr> <td colspan="2" class="diff-lineno">Zeile 9:</td> <td colspan="2" class="diff-lineno">Zeile 9:</td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> end</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> end</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> if wikidata_id then</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> if wikidata_id then</div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> local description = mw.wikibase.<del style="font-weight: bold; text-decoration: none;">getDescription</del>(wikidata_id)</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> local description<ins style="font-weight: bold; text-decoration: none;">, lang</ins> = mw.wikibase.<ins style="font-weight: bold; text-decoration: none;">getDescriptionWithLang</ins>(wikidata_id)</div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> if description then</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> if description<ins style="font-weight: bold; text-decoration: none;"> and lang and lang == "de"</ins> then</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> return description .. " ([[D:Special:SetLabelDescriptionAliases/" .. wikidata_id .. "/de|Bearbeiten]])"</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> return description .. " ([[D:Special:SetLabelDescriptionAliases/" .. wikidata_id .. "/de|Bearbeiten]])"</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> else return "&lt;keine Beschreibung angegeben&gt; ([[D:Special:SetLabelDescriptionAliases/" .. wikidata_id .. "/de|Hinzufügen]])"</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> else return "&lt;keine Beschreibung angegeben&gt; ([[D:Special:SetLabelDescriptionAliases/" .. wikidata_id .. "/de|Hinzufügen]])"</div></td> </tr> </table> Wickie37 https://de.wikipedia.org/w/index.php?title=Modul:WikidataDescription&diff=202577709&oldid=prev Wickie37: AZ: Die Seite wurde neu angelegt: local p = {} function p.description(frame) local lemma = frame.args[1] local wikidata_id if lemma… 2020-08-07T15:01:04Z <p><a href="/wiki/Hilfe:Zusammenfassung_und_Quellen#Auto-Zusammenfassung" title="Hilfe:Zusammenfassung und Quellen">AZ</a>: Die Seite wurde neu angelegt: local p = {} function p.description(frame) local lemma = frame.args[1] local wikidata_id if lemma…</p> <p><b>Neue Seite</b></p><div>local p = {}<br /> <br /> function p.description(frame)<br /> local lemma = frame.args[1]<br /> local wikidata_id<br /> if lemma then<br /> wikidata_id = mw.wikibase.getEntityIdForTitle(lemma)<br /> else wikidata_id = mw.wikibase.getEntityIdForCurrentPage()<br /> end<br /> if wikidata_id then<br /> local description = mw.wikibase.getDescription(wikidata_id)<br /> if description then<br /> return description .. &quot; ([[D:Special:SetLabelDescriptionAliases/&quot; .. wikidata_id .. &quot;/de|Bearbeiten]])&quot;<br /> else return &quot;&lt;keine Beschreibung angegeben&gt; ([[D:Special:SetLabelDescriptionAliases/&quot; .. wikidata_id .. &quot;/de|Hinzufügen]])&quot;<br /> end<br /> else return &quot;&lt;kein verknüpftes Wikidata-Objekt gefunden&gt;&quot;<br /> end<br /> end<br /> return p</div> Wickie37