https://pool.publicdomainproject.org/index.php?title=Template:ExtractFlacFileUrl&feed=atom&action=historyTemplate:ExtractFlacFileUrl - Revision history2024-03-28T09:59:33ZRevision history for this page on the wikiMediaWiki 1.27.5https://pool.publicdomainproject.org/index.php?title=Template:ExtractFlacFileUrl&diff=33407&oldid=prevImportbot: Created page with "<noinclude> This is the "ExtractFlacFileUrl" template. It should be called in the following format: <pre> {{ExtractFlacFileUrl|<Text which includes a link in single [] to an a..."2017-03-14T14:44:47Z<p>Created page with "<noinclude> This is the "ExtractFlacFileUrl" template. It should be called in the following format: <pre> {{ExtractFlacFileUrl|<Text which includes a link in single [] to an a..."</p>
<p><b>New page</b></p><div><noinclude><br />
This is the "ExtractFlacFileUrl" template.<br />
It should be called in the following format:<br />
<pre><br />
{{ExtractFlacFileUrl|<Text which includes a link in single [] to an audio file>}}<br />
</pre><br />
It will extract the URL from this and set it as value to the Schema:audio property.<br />
Edit the page to see the template text.<br />
</noinclude><includeonly><br />
{{#if: {{{1|}}} |<br />
{{#vardefine:start|{{#pos:{{{1|}}}|http}} }}<br />
{{#if: {{#var:start|}} |<br />
{{#vardefine:stop| {{#pos:{{{1|}}}|.flac|{{#var:start}} }} }}<br />
{{#if: {{#var:stop|}} |<br />
{{#vardefine:stop| {{#expr: {{#var:stop}} + 5}} }}<br />
{{#vardefine:length| {{#expr: {{#var:stop}} - {{#var:start}} }} }}<br />
{{#vardefine:Link| {{#sub:{{{1|}}}|{{#var:start}}|{{#var:length}} }} }}<br />
{{#if: {{#var:Link|}} | <br />
[[Schema:audio::{{#var:Link|}}| ]] [[Schema:fileFormat::audio/x-flac| ]] [[Schema:isAccessibleForFree::true| ]] [[Dcterms:hasFormat::{{#var:Link|}}| ]] [[FlacFileLink::{{#var:Link|}}| ]]<br />
}}<br />
}}<br />
}}<br />
}}<br />
</includeonly></div>Importbot