mozilla

Revision 80074 of Template:Embed text

  • Revision slug: Template:Embed_text
  • Revision title: Template:Embed text
  • Revision id: 80074
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment 19 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);
  } else {
    web.text("Unable to find file '" + args[0] + '.");
  }
}}

Revision Source

<p>{{<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.text("Unable to find file '" + args[0] + '.");<br />
  }<br />
}}</p>