mozilla

Revision 80072 of Template:Embed text

  • Revision slug: Template:Embed_text
  • Revision title: Template:Embed text
  • Revision id: 80072
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment 57 words added
Tags: 

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);
  }

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 />
  }<br />
</span></p>