Template:Embed text

  • Revision slug: Template:Embed_text
  • Revision title: Template:Embed text
  • Revision id: 80077
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment 7 words added, 3 words removed

Revision Content


  web.text("Embedding text: " + args[0]);
  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);
  } else {
    web.html("

Unable to find file '" + args[0] + "'.

");
  }

Revision Source

<p><span class="script"><br />
  web.text("Embedding text: " + args[0]);<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 />
  } else {<br />
    web.html("<p>Unable to find file '" + args[0] + "'.</p>");<br />
  }<br />
</span></p>
Revert to this revision