Template:Format release and Template:Social media/Instagram: Difference between pages

From SPCodex, The Smashing Pumpkins wiki
(Difference between pages)
No edit summary
 
(Created page with "=== {{{type|Instagram}}} === <div class="mw-code social-ig-text">{{{1|Foo bar Baz}}}</div>")
 
Line 1: Line 1:
<!-- DOESN'T WORK. ALWAYS SHOWS AS IF SONGS -->
=== {{{type|Instagram}}} ===
{{#if:{{#cargo_query:
 
tables=songs, albums, releases
<div class="mw-code social-ig-text">{{{1|Foo bar
|fields=IF(songs._ID IS NULL, "album", "song")
 
|where=songs._pageTitle = "{{{1|Today}}}" OR albums._pageTitle = "{{{1|Today}}}"
Baz}}}</div>
|join on=releases._pageName = songs._pageName, releases._pageName = albums._pageName
|limit=1
|format=
}}|{{#if:{{{2|}}}|"'''[[{{{1|Today}}}]]'''"|"[[{{{1|Today}}}]]"}}|{{#if:{{{2|}}}|'''''{{{1|Today}}}'''''|'''{{{1|Today}}}'''}}}}
<noinclude>
<templatedata>
{
"params": {
"1": {
"label": "Page title",
"type": "wiki-page-name",
"required": true
},
"2": {
"label": "Bold?",
"description": "Set this to show the title in bold formatting.",
"type": "boolean",
"autovalue": "0",
"suggested": true
}
},
"description": "Formats a title based on whether it refers to an album or a song.",
"paramOrder": [
"1",
"2"
]
}
</templatedata>
</noinclude>

Revision as of 04:13, 10 December 2021

Instagram