Template talk:Track: Difference between revisions

From the Portal Wiki
Jump to navigation Jump to search
No edit summary
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 this:
I fixed this; I am fairly sure it all works as intended. 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?
* 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)
* wikicode: https://theportalwiki.com/w/index.php?title=Template:Track&diff=prev&oldid=155431 --[[User:User000name|User000name]] ([[User talk:User000name|talk]]) 17:42, 3 December 2017 (UTC)

Revision as of 17:59, 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 fixed this; I am fairly sure it all works as intended. Something like this: