Template talk:Track: Difference between revisions

From the Portal Wiki
Jump to navigation Jump to search
(http://discovermagazine.com/2014/julyaug/20-the-ups-and-downs-of-teleportation - "Will Human Teleportation Ever Be Possible? | DiscoverMagazine.com")
 
No edit summary
Line 1: Line 1:
There needs to be an "if:copyrighted then [do not display download and play links]". It currently displays the links as red links since this website isn't about piracy; the problem with that is those mp3 links appear at [[Special:WantedFiles]]: "File:Portal no cake for you.mp3‏‎ (4 links)\nFile:Portal still alive.mp3‏‎ (4 links)". They are not wanted files.
There needs to be an "if:copyrighted then [do not display download and play links]". It currently displays the links as red links since this website isn't about piracy; the problem with that is those mp3 links appear at [[Special:WantedFiles]]: "File:Portal no cake for you.mp3‏‎ (4 links)\nFile:Portal still alive.mp3‏‎ (4 links)". They are not wanted files.


I could fix this but it would be difficult: something like if in album and album value of the "copyrighted" parameter is "yes" then hide links. --[[User:User000name|User000name]] ([[User talk:User000name|talk]]) 17:42, 3 December 2017 (UTC)
I could fix this but it would be difficult. Something like this:
* pseudo code: <s>if in album and album value of the "copyrighted" parameter is "yes" then hide links</s> doesn't really work that way?
* wikicode: <nowiki>{{#if:{{{copyrighted|}}}|| {{!}} {{Download|[[Media:{{Dictionary/audio/{{lc:{{{1|you will be perfect}}}}}|file}}|{{common string|Download-media}}]]}} <span class="audio-player" data-url="{{filepath:{{Dictionary/audio/{{lc:{{{1|you will be perfect}}}}}|file}}|nowiki}}">{{!}} [[File:Play icon.png|text-bottom|link={{filepath:{{Dictionary/audio/{{lc:{{{1|you will be perfect}}}}}|file}}}}]] [[Media:{{Dictionary/audio/{{lc:{{{1|you will be perfect}}}}}|file}}|{{common string|Play-media}}]]</span>}}</nowiki> --[[User:User000name|User000name]] ([[User talk:User000name|talk]]) 17:42, 3 December 2017 (UTC)

Revision as of 17:47, 3 December 2017

There needs to be an "if:copyrighted then [do not display download and play links]". It currently displays the links as red links since this website isn't about piracy; the problem with that is those mp3 links appear at Special:WantedFiles: "File:Portal no cake for you.mp3‏‎ (4 links)\nFile:Portal still alive.mp3‏‎ (4 links)". They are not wanted files.

I could fix this but it would be difficult. Something like this:

  • pseudo code: if in album and album value of the "copyrighted" parameter is "yes" then hide links doesn't really work that way?
  • wikicode: {{#if:{{{copyrighted|}}}|| {{!}} {{Download|[[Media:{{Dictionary/audio/{{lc:{{{1|you will be perfect}}}}}|file}}|{{common string|Download-media}}]]}} <span class="audio-player" data-url="{{filepath:{{Dictionary/audio/{{lc:{{{1|you will be perfect}}}}}|file}}|nowiki}}">{{!}} [[File:Play icon.png|text-bottom|link={{filepath:{{Dictionary/audio/{{lc:{{{1|you will be perfect}}}}}|file}}}}]] [[Media:{{Dictionary/audio/{{lc:{{{1|you will be perfect}}}}}|file}}|{{common string|Play-media}}]]</span>}} --User000name (talk) 17:42, 3 December 2017 (UTC)