Template:Embed text

  • Revision slug: Template:Embed_text
  • Revision title: Template:Embed text
  • Revision id: 80069
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment 5 words added, 1 words removed

Revision Content


  var fileList = map.select(page.files, "string.compare($.value.name, " + args[0] + ", true)");
  if (#fileList > 0) {
    var textFile = map.values(fileList)[0];
    web.text(textFile.uri);
  }

Revision Source

<p><span class="script"><br />
  var fileList = map.select(page.files, "string.compare($.value.name, " + args[0] + ", true)");<br />
  if (#fileList > 0) {<br />
    var textFile = map.values(fileList)[0];<br />
    web.text(textFile.uri);<br />
  }<br />
</span></p>
Revert to this revision