Template:Format release: Difference between revisions
MusikAnimal (talk | contribs) No edit summary |
MusikAnimal (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{{# | {{#if:{{#cargo_query: | ||
tables=songs, albums, releases | tables=songs, albums, releases | ||
|fields=IF(songs._ID IS NULL, "album", "song") | |fields=IF(songs._ID IS NULL, "album", "song") | ||
|where=songs._pageTitle = "{{{1|Today}}}" OR albums._pageTitle = "{{{1|Today}}}" | |where=songs._pageTitle = "{{{1|Today}}}" OR albums._pageTitle = "{{{1|Today}}}" | ||
|join on=releases._pageName = songs._pageName, releases._pageName = albums._pageName | |join on=releases._pageName = songs._pageName, releases._pageName = albums._pageName | ||
|limit=1 | |limit=1 | ||
}} | |format= | ||
}}|{{#if:{{{2|}}}|"'''[[{{{1|Today}}}]]'''"|"[[{{{1|Today}}}]]"}}|{{#if:{{{2|}}}|'''''{{{1|Today}}}'''''|'''{{{1|Today}}}'''}}}} | |||
<noinclude> | <noinclude> | ||
<templatedata> | <templatedata> |
Revision as of 05:54, 29 November 2021
"Today"
Formats a title based on whether it refers to an album or a song.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Page title | 1 | no description | Page name | required |
Bold? | 2 | Set this to show the title in bold formatting.
| Boolean | suggested |