Template:domxref

  • Revision slug: Template:domxref
  • Revision title: Template:domxref
  • Revision id: 56076
  • Created:
  • Creator: chukito
  • Is current revision? No
  • Comment page content-type changed to 'application/x.deki0805+xml'; page display name changed to 'Template:domxref'

Revision Content

mediawiki.internal('DOM:' + $0 + '|' + $0, "en") mediawiki.internal('DOM:' + $0 + '|' + $0, "es") mediawiki.internal('DOM:' + $0 + '|' + $0, "en")

string.trim(($1 || '')) !== '' ? web.html(mediawiki.internal('DOM:' + $0 + '|' + $1, "de")) : web.html(mediawiki.internal('DOM:' + $0 + '|' + $0, "de"))

Parameter

  1. DOM-Element
  2. Linkbeschriftung (optional)

Beispiel

Eingabe Ausgabe
{{domxref|window.dump|dump()}} template.Domxref("window.dump", "dump()")
{{domxref|window.dump}} template.Domxref("window.dump", "")
mediawiki.internal('DOM:' + $0 + '|' + $0, "fr") mediawiki.internal('DOM:' + $0 + '|' + $0, "ja") mediawiki.internal('DOM:' + $0 + '|' + $0, "ko") mediawiki.internal('DOM:' + $0 + '|' + $0, "pl") mediawiki.internal('DOM:' + $0 + '|' + $0, "zh-cn")

Revision Source

<p><span lang="en" class="lang lang-en"><code><span class="script">mediawiki.internal('DOM:' + $0 + '|' + $0, "en")</span></code> </span> <span lang="es" class="lang lang-es"><code><span class="script">mediawiki.internal('DOM:' + $0 + '|' + $0, "es")</span></code> </span> <span lang="*" class="lang lang-*"><code><span class="script">mediawiki.internal('DOM:' + $0 + '|' + $0, "en")</span></code> </span> <span lang="de" class="lang lang-de">
<div class="includeonly"><code><span class="script">string.trim(($1 || '')) !== '' ? web.html(mediawiki.internal('DOM:' + $0 + '|' + $1, "de")) : web.html(mediawiki.internal('DOM:' + $0 + '|' + $0, "de"))</span></code></div>
<div class="noinclude">
<h3 name="Parameter">Parameter</h3>
<ol> <li>DOM-Element</li> <li>Linkbeschriftung (optional)</li>
</ol>
<h3 name="Beispiel">Beispiel</h3>
<table class="standard-table"> <tbody> <tr> <td class="header">Eingabe</td> <td class="header">Ausgabe</td> </tr> <tr> <td><span class="nowiki">{{domxref|window.dump|dump()}}</span></td> <td><span class="script">template.Domxref("window.dump", "dump()")</span></td> </tr> <tr> <td><span class="nowiki">{{domxref|window.dump}}</span></td> <td><span class="script">template.Domxref("window.dump", "")</span></td> </tr> </tbody>
</table>
</div>
</span><span lang="fr" class="lang lang-fr"><code><span class="script">mediawiki.internal('DOM:' + $0 + '|' + $0, "fr")</span></code> </span><span lang="ja" class="lang lang-ja"><code><span class="script">mediawiki.internal('DOM:' + $0 + '|' + $0, "ja")</span></code> </span><span lang="ko" class="lang lang-ko"><code><span class="script">mediawiki.internal('DOM:' + $0 + '|' + $0, "ko")</span></code> </span><span lang="pl" class="lang lang-pl"><code><span class="script">mediawiki.internal('DOM:' + $0 + '|' + $0, "pl")</span></code> </span><span lang="zh-cn" class="lang lang-zh-cn"><code><span class="script">mediawiki.internal('DOM:' + $0 + '|' + $0, "zh-cn")</span></code> </span></p>
Revert to this revision