Template:Infobox song: Difference between revisions
Content deleted Content added
Johnrdorazio (talk | contribs) m 1 revision imported |
Johnrdorazio (talk | contribs) No edit summary |
||
(9 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<!--begin short description-->{{#ifeq:{{#invoke:Is infobox in lead|main|[Ii]nfobox [Ss]ong}}|true|{{#if:{{Has short description}} |<!--Do nothing--> |{{short description|{{#invoke:Plain text|main|{{#if:{{#invoke:string|match|{{{released|{{{Released|}}}}}}|%d%d%d%d|ignore_errors = true}}|{{#invoke:string|match|{{{released|{{{Released|}}}}}}|%d%d%d%d|ignore_errors = true}} {{lc:{{Infobox song/link|{{{type|{{{Type|}}}}}} }}}}|{{Infobox song/link|{{{type|{{{Type|}}}}}} }}}} {{#if:{{{artist|}}}{{{Artist|}}}{{{original_artist|}}}|by {{If empty|{{{artist|}}}|{{{Artist|}}}|{{{original_artist|}}}}}}}}}|noreplace}}}}}}<!-- end short description |
|||
{{ {{{|safesubst:}}}#invoke:Unsubst-infobox||$params=name,cover,cover_size,alt,border,caption,type,artist,album,EP,language,English_title,A-side,B-side,written,published,released,format,recorded,studio,venue,genre,length,label,writer,composer,lyricist,producer,chronology,prev_title,prev_title2,prev_year,title,title2,year,next_title,next_title2,next_year,tracks,misc|$set1={{{{{|safesubst:}}}#switch:{{{{{|safesubst:}}}lc:{{{type|{{{Type|}}}}}}}}|single|[[single (music)|single]]|singles|[[single (music)|singles]]=name,cover,cover_size,alt,border,caption,type,artist,{{{{{|safesubst:}}}#if:{{{EP|}}}|EP,|album,}}language,English_title,A-side,B-side,released,format,recorded,studio,venue,genre,length,label,{{{{{|safesubst:}}}#if:{{{writer|{{{Writer|}}}}}}|writer,|composer,lyricist,}}producer,chronology,prev_title,prev_title2,prev_year,{{{{{|safesubst:}}}#if:{{{title2|}}}|title,}}title2,year,next_title,next_title2,next_year,misc|name,cover,cover_size,alt,border,caption,type,artist,{{{{{|safesubst:}}}#if:{{{EP|}}}|EP,|album,}}language,English_title,released,format,recorded,studio,venue,genre,length,label,{{{{{|safesubst:}}}#if:{{{writer|{{{Writer|}}}}}}|writer,|composer,lyricist,}}producer,chronology,{{{{{|safesubst:}}}#if:{{{tracks|{{{Tracks|}}}}}}|tracks,}}misc}}|$set3=name,cover,cover_size,alt,border,caption,type,language,English_title,written,published,{{{{{|safesubst:}}}#if:{{{recorded|{{{Recorded|}}}}}}{{{length|{{{Length|}}}}}}|recorded,length,}}writer,composer,lyricist,misc|$extra=cover_size,border,caption,language,English_title,A-side,B-side,chronology,prev_title2,title2,year,next_title2,prev_no,next_no,prev,next,tracks,misc|$aliases={{{{{|safesubst:}}}#if:{{{title2|}}}||title>name,}}Name>name,image>cover,Cover>cover,cover size>cover_size,Cover size>cover_size,Alt>alt,Border>border,Caption>caption,Type>type,Artist>artist,original_artist>artist,Album>album,from_album>album,from Album>album,Language>language,english_title>English_title,Writer>writer,Composer>composer,Lyricist>lyricist,Written>written,Published>published,Genre>genre,Recorded>recorded,Studio>studio,Venue>venue,Length>length,Producer>producer,Released>released,Label>label,Format>format,a-side>A-side,b-side>B-side,Chronology>chronology,Tracks>tracks,Misc>misc|prev_track={{{{{|safesubst:}}}#if:{{{prev_track|}}}|{{{prev_track}}}|{{{{{|safesubst:}}}#if:{{{prev|}}}|{{{{{|safesubst:}}}#invoke:String|match|error_category=Music infoboxes with Module:String errors{{!}}C|1={{{prev|}}}|2=^["“‘'](.+)["”’']$|nomatch=}}}}}}|prev={{{{{|safesubst:}}}#if:{{{prev|}}}|{{{{{|safesubst:}}}#if:{{{{{|safesubst:}}}#invoke:String|match|error_category=Music infoboxes with Module:String errors{{!}}C|1={{{prev|}}}|2=^["“‘'](.+)["”’']$|nomatch=}}||{{{prev}}}}}}}|next_track={{{{{|safesubst:}}}#if:{{{next_track|}}}|{{{next_track}}}|{{{{{|safesubst:}}}#if:{{{next|}}}|{{{{{|safesubst:}}}#invoke:String|match|error_category=Music infoboxes with Module:String errors{{!}}C|1={{{next|}}}|2=^["“‘'](.+)["”’']$|nomatch=}}}}}}|next={{{{{|safesubst:}}}#if:{{{next|}}}|{{{{{|safesubst:}}}#if:{{{{{|safesubst:}}}#invoke:String|match|error_category=Music infoboxes with Module:String errors{{!}}C|1={{{next|}}}|2=^["“‘'](.+)["”’']$|nomatch=}}||{{{next}}}}}}}|prev_no={{{{{|safesubst:}}}#if:{{{prev_no|}}}|{{{{{|safesubst:}}}#ifeq:{{{{{|safesubst:}}}#expr:{{{track_no|0}}}-1}}|{{{prev_no}}}||{{{prev_no}}}}}}}|next_no={{{{{|safesubst:}}}#if:{{{next_no|}}}|{{{{{|safesubst:}}}#ifeq:{{{{{|safesubst:}}}#expr:{{{track_no|0}}}+1}}|{{{next_no}}}||{{{next_no}}}}}}}|chronology={{{{{|safesubst:}}}#if:{{{chronology|{{{Chronology|}}}}}}|{{{{{|safesubst:}}}#switch:{{{{{|safesubst:}}}lc:{{{type|{{{Type|}}}}}}}}|single|[[single (music)|single]]|singles|[[single (music)|singles]]={{{{{|safesubst:}}}#invoke:String|replace|error_category=Music infoboxes with Module:String errors{{!}}C|1={{{chronology|{{{Chronology}}}}}}|2=%s*singles$|5=false}}|{{{chronology|{{{Chronology|}}}}}}}}}}|recorded={{{{{|safesubst:}}}#if:{{{recorded|{{{Recorded|}}}}}}|{{{{{|safesubst:}}}#invoke:String|replace|error_category=Music infoboxes with Module:String errors{{!}}C|1={{{recorded|{{{Recorded}}}}}}|2=[ ]–[ ]|3={{snd}}|plain=false}}}}|$flags=override|$B={{Infobox |
|||
-->{{Infobox |
|||
| bodyclass = vevent |
| bodyclass = vevent |
||
| aboveclass = summary |
| aboveclass = summary |
||
| abovestyle = background-color: {{Infobox song/color|{{{type |
| abovestyle = background-color: {{Infobox song/color|{{{type|}}} }}; font-size: 125%; |
||
| above = "{{if empty|{{{name |
| above = "{{if empty|{{{name|}}}|{{#if:{{{title2|}}}||{{{title|}}}}}|{{PAGENAMEBASE}}}}" |
||
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{{cover| |
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{{cover|}}}}}}|size={{{cover_size|}}}|upright={{{cover_upright|}}}|sizedefault=frameless|alt={{{alt|}}}|title={{{alt|}}}|border={{{border|}}}}} |
||
| caption = {{{caption |
| caption = {{{caption|}}} |
||
| headerstyle = background-color: {{Infobox song/color|{{{type |
| headerstyle = background-color: {{Infobox song/color|{{{type|}}} }}; |
||
| headerclass = description |
| headerclass = description |
||
| rowclass1 = description |
| rowclass1 = description |
||
| header1 = {{Infobox song/link|{{{type| |
| header1 = {{Infobox song/link|{{{type|}}} }} {{#if:{{{artist|}}}|by {{{artist}}}}} |
||
| rowclass2 = description |
| rowclass2 = description |
||
| header2 = {{#if:{{{album |
| header2 = {{#if:{{{album|}}}{{{from_album|}}}|from the album ''{{If empty|{{{album|}}}|{{{from_album|}}}|}}''|{{#if:{{{EP|}}}|from the EP ''{{{EP|}}}''}}}} |
||
| label3 = Language |
| label3 = Language |
||
| data3 = {{{language |
| data3 = {{{language|}}} |
||
| label4 = English title |
| label4 = English title |
||
| data4 = {{{English_title|{{{english_title|}}}}}} |
| data4 = {{{English_title|{{{english_title|}}}}}} |
||
| label5 = <span class="nowrap">[[A-side and B-side|A-side]]</span> |
| label5 = <span class="nowrap">[[wikipedia:A-side and B-side|A-side]]</span> |
||
| data5 = {{#if:{{{A-side| |
| data5 = {{#if:{{{A-side|}}}|{{#if:{{#invoke:String|match|error_category=Music infoboxes with Module:String errors{{!}}C|1={{{A-side}}}|2="|nomatch=}}|{{{A-side}}}|"{{{A-side}}}"}}}} |
||
| class5 = plainlist |
| class5 = plainlist |
||
| label6 = <span class="nowrap">[[A-side and B-side|B-side]]</span> |
| label6 = <span class="nowrap">[[wikipedia:A-side and B-side|B-side]]</span> |
||
| data6 = {{#if:{{{B-side| |
| data6 = {{#if:{{{B-side|}}}|{{#if:{{#invoke:String|match|error_category=Music infoboxes with Module:String errors{{!}}C|1={{{B-side}}}|2="|nomatch=}}|{{{B-side}}}|"{{{B-side}}}"}}}} |
||
| class6 = plainlist |
| class6 = plainlist |
||
| label7 = Written |
| label7 = Written |
||
| data7 = {{{written |
| data7 = {{{written|}}} |
||
| label8 = Published |
| label8 = Published |
||
| data8 = {{{published |
| data8 = {{{published|}}} |
||
| label10 = Released |
| label10 = Released |
||
| data10 = {{{released |
| data10 = {{{released|}}} |
||
| class10 = plainlist |
| class10 = plainlist |
||
| label12 = Recorded |
| label12 = Recorded |
||
| data12 = {{{recorded |
| data12 = {{{recorded|}}} |
||
| class12 = plainlist |
| class12 = plainlist |
||
| label13 = [[Recording studio|Studio]] |
| label13 = [[wikipedia:Recording studio|Studio]] |
||
| data13 = {{{studio |
| data13 = {{{studio|}}} |
||
| class13 = plainlist |
| class13 = plainlist |
||
| label14 = Venue |
| label14 = Venue |
||
| data14 = {{{venue |
| data14 = {{{venue|}}} |
||
| label15 = [[Music genre|Genre]] |
| label15 = [[wikipedia:Music genre|Genre]] |
||
| data15 = {{{genre |
| data15 = {{{genre|}}} |
||
| class15 = category hlist |
| class15 = category hlist |
||
| label16 = Length |
| label16 = Length |
||
| data16 = {{#invoke:hms|main|duration={{{length |
| data16 = {{#invoke:hms|main|duration={{{length|}}}}} |
||
| class16 = plainlist |
| class16 = plainlist |
||
| label17 = [[Record label|Label]] |
| label17 = [[wikipedia:Record label|Label]] |
||
| data17 = {{{label |
| data17 = {{{label|}}} |
||
| class17 = hlist |
| class17 = hlist |
||
| label40 = <span class="nowrap">[[Songwriter|Songwriter(s)]]</span> |
| label40 = <span class="nowrap">[[wikipedia:Songwriter|Songwriter(s)]]</span> |
||
| data40 = {{{writer |
| data40 = {{{writer|}}} |
||
| class40 = hlist |
| class40 = hlist |
||
| label41 = <span class="nowrap">[[Composer|Composer(s)]]</span> |
| label41 = <span class="nowrap">[[wikipedia:Composer|Composer(s)]]</span> |
||
| data41 = {{{composer |
| data41 = {{{composer|}}} |
||
| class41 = hlist |
| class41 = hlist |
||
| label42 = <span class="nowrap">[[Lyricist|Lyricist(s)]]</span> |
| label42 = <span class="nowrap">[[wikipedia:Lyricist|Lyricist(s)]]</span> |
||
| data42 = {{{lyricist |
| data42 = {{{lyricist|}}} |
||
| class42 = hlist |
| class42 = hlist |
||
| label43 = <span class="nowrap">[[Record producer|Producer(s)]]</span> |
| label43 = <span class="nowrap">[[wikipedia:Record producer|Producer(s)]]</span> |
||
| data43 = {{{producer |
| data43 = {{{producer|}}} |
||
| class43 = hlist |
| class43 = hlist |
||
| header44 = {{#if:{{{tracks| |
| header44 = {{#if:{{{tracks|}}}||{{#if:{{{prev_title|}}}{{{next_title|}}}|{{#if:{{{chronology|}}}|{{#invoke:String|replace|error_category=Music infoboxes with Module:String errors{{!}}C|{{{chronology}}}{{#switch:{{lc:{{{type|}}}}}|single|[[wikipedia:single (music)|single]]|singles|[[wikipedia:single (music)|singles]]= singles}}|singles singles|singles}}|{{#ifeq: {{str letter|{{delink| {{{artist|}}} }}}}|0|{{{artist|}}}|{{#invoke:String2 | ucfirst |{{{artist|}}}}}}} singles}} chronology}}}} |
||
| rowcellstyle45 = {{#if:{{{__µ|}}}|display: none;}} |
| rowcellstyle45 = {{#if:{{{__µ|}}}|display: none;}} |
||
| data45 = {{#if:{{{tracks |
| data45 = {{#if:{{{tracks|}}}||{{#if:{{{prev_title|}}}{{{next_title|}}}| |
||
{{(!}} style="background: transparent; width: 100%; min-width: 100%; border-collapse: collapse;" |
{{(!}} style="background: transparent; width: 100%; min-width: 100%; border-collapse: collapse; display: inline-table;" |
||
{{!}}- style="line-height: 1.4em;" |
{{!}}- style="line-height: 1.4em;" |
||
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em .1em .2em 0;" {{!}} {{#if:{{{prev_title|}}}|"{{{prev_title|}}}" {{#if:{{{prev_title2|}}}| / "{{{prev_title2|}}}"}}{{#if:{{{prev_year|}}}|<br />({{{prev_year|}}})}} }} |
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em .1em .2em 0;" {{!}} {{#if:{{{prev_title|}}}|"{{{prev_title|}}}" {{#if:{{{prev_title2|}}}| / "{{{prev_title2|}}}"}}{{#if:{{{prev_year|}}}|<br />({{{prev_year|}}})}} }} |
||
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding:.2em .1em;" {{!}} {{#if:{{{title2|}}}|"{{if empty|{{#switch:{{{title|}}}|{{BASEPAGENAME}}|{{PAGENAMEBASE}}='''{{{title}}}'''|{{{title|}}}}}|'''{{if empty|{{{name |
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding:.2em .1em;" {{!}} {{#if:{{{title2|}}}|"{{if empty|{{#switch:{{{title|}}}|{{BASEPAGENAME}}|{{PAGENAMEBASE}}='''{{{title}}}'''|{{{title|}}}}}|'''{{if empty|{{{name|}}}|{{PAGENAMEBASE}}}}'''}}" / "{{#switch:{{{title2}}}|{{BASEPAGENAME}}|{{PAGENAMEBASE}}='''{{{title2}}}'''|{{{title2}}}}}"|"'''{{if empty|{{{name|}}}|{{{title|}}}|{{PAGENAMEBASE}}}}'''"}} {{#if:{{{prev_year|}}}{{{next_year|}}}|<br />({{{year|{{#invoke:String|match|error_category=Music infoboxes with Module:String errors{{!}}C|{{{released|}}}|%d%d%d+}}}}})}} |
||
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em 0 .2em .1em;" {{!}} {{#if:{{{next_title|}}}|"{{{next_title|}}}" {{#if:{{{next_title2|}}}| / "{{{next_title2|}}}"}}{{#if:{{{next_year|}}}|<br />({{{next_year|}}})}} }} |
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em 0 .2em .1em;" {{!}} {{#if:{{{next_title|}}}|"{{{next_title|}}}" {{#if:{{{next_title2|}}}| / "{{{next_title2|}}}"}}{{#if:{{{next_year|}}}|<br />({{{next_year|}}})}} }} |
||
{{!)}} |
{{!)}} |
||
Line 91: | Line 93: | ||
| data46 = {{{__µ|}}} |
| data46 = {{{__µ|}}} |
||
| header62 = {{#if:{{{tracks| |
| header62 = {{#if:{{{tracks|}}}| {{#if: {{{chronology|}}}|{{{chronology}}}|{{#if:{{{album|}}}{{{EP|}}}|''{{{album|}}}{{{EP|}}}'' {{nowrap|track listing}}|Track listing}} }} }} |
||
| rowcellstyle63 = {{#if:{{{tracks |
| rowcellstyle63 = {{#if:{{{tracks|}}}|text-align:left}} |
||
| data63 = {{{tracks |
| data63 = {{{tracks|}}} |
||
| below = {{{misc |
| below = {{{misc|}}} |
||
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox song with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox song]] with unknown parameter "_VALUE_"|ignoreblank=y | type | EP | writer | title2 | tracks | recorded | length | prev_track | next_track | chronology | name | title | image | cover | cover_size | cover_upright | alt | border | caption | artist | album | language | English_title | english_title | A-side | B-side | written | published | released | studio | venue | genre | label | composer | lyricist | producer | prev_title | next_title | prev_title2 | prev_year | next_year | year | next_title2 | misc}}{{main other|{{#if:{{{length|}}}|{{#if:{{#invoke:String|match|error_category=Music infoboxes with Module:String errors{{!}}C|1={{#invoke:hms|main|duration={{{length|}}}}}|2=class="duration"|plain=true|nomatch=}}|[[Category:Articles with hAudio microformats]]}}{{#if:{{{writer|}}}{{{composer|}}}{{{lyricist|}}}||[[Category:Song articles with missing songwriters]]}}{{#if:{{both|{{{writer|}}}|{{{composer|}}}}}|[[Category:Song articles with both composer and songwriter]]}}{{#if:{{both|{{{writer|}}}|{{{lyricist|}}}}}|[[Category:Song articles with both lyricist and songwriter]]}}{{#if:{{{lyricist|}}}|{{#if:{{{composer|}}}||[[Category:Song articles with lyricist but not composer]]}}}}}}{{#if:{{#invoke:String|match|error_category=Music infoboxes with Module:String errors{{!}}C|1={{{name|}}}{{{cover|}}}{{{cover_size|}}}{{{alt|}}}{{{border|}}}{{{caption|}}}{{{type|}}}{{{artist|}}}{{{album|}}}{{{EP|}}}{{{language|}}}{{{English_title|}}}{{{writer|}}}{{{composer|}}}{{{lyricist|}}}{{{written|}}}{{{published|}}}{{{genre|}}}{{{recorded|}}}{{{studio|}}}{{{venue|}}}{{{length|}}}{{{producer|}}}{{{released|}}}{{{label|}}}{{{A-side|}}}{{{B-side|}}}{{{chronology|}}}{{{prev_title|}}}{{{prev_title2|}}}{{{prev_year|}}}{{{title|}}}{{{title2|}}}{{{year|}}}{{{next_title|}}}{{{next_title2|}}}{{{next_year|}}}{{{tracks|}}}{{{image|}}}{{{from_album|}}}{{{english_title|}}}x|2=</?t[drh][ >]|nomatch=}}|[[Category:Music infoboxes with malformed table placement|S]]}}}}<includeonly>{{Namespace detect |
|||
| main = [[Category:Music]] |
|||
}}<noinclude> |
}}</includeonly><noinclude> |
||
<!-- please place language and category links on the /doc page and not here --> |
<!-- please place language and category links on the /doc page and not here --> |
||
{{documentation}} |
{{documentation}} |