Template:MusicalGroup: Difference between revisions

From TANGOWIKI-TITAF
No edit summary
No edit summary
 
(88 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
{{#if:{{{MusicalGroupName|}}}|{{DISPLAYTITLE:{{{MusicalGroupName}}}}}}}
<!-- Float the infobox right for desktop -->
<div style="float:right; clear:right; width:340px; margin-left: 1em; padding:10px; background:#f9f9f9; border:1px solid #ccc; border-radius:10px; font-size:95%;">
  <!-- Image: prefer GroupPix, fallback to Commons -->
  {{#if:{{{GroupPix|}}}
    | <div style="text-align:center; margin-bottom:10px;">
        [[File:{{{GroupPix}}}|frameless|300px]]
      </div>
    | {{#if:{{{Commons image URL short|}}}
        | <div style="text-align:center; margin-bottom:10px;">
            [[File:{{{Commons image URL short}}}|frameless|300px]]
          </div>
    }}
  }}
  {{#if:{{{GroupStartYear|}}}{{{GroupEndYear|}}}|
    <p><b>Active</b> {{{GroupStartYear}}}{{#if:{{{GroupEndYear|}}}|&nbsp;–&nbsp;{{{GroupEndYear}}}}}</p>
  }}
  {{#if:{{{GroupType|}}}|
    <p><b>Type:</b> {{{GroupType}}}</p>
  }}
  {{#if:{{{GroupGenre|}}}|
    <p><b>Genre:</b> {{{GroupGenre}}}</p>
  }}
  {{#if:{{{GroupCountry|}}}|
    <p><b>Country:</b> {{{GroupCountry}}}</p>
  }}
  {{#if:{{{GroupHomepage|}}}|
    <p><b>Homepage:</b> [{{{GroupHomepage}}} Link]</p>
  }}
  {{#if:{{{GroupFreeTextInfoBox|}}}|
    <p>{{{GroupFreeTextInfoBox}}}</p>
  }}
</div>
<!-- Semantic data -->
{{#set:
{{#set:
  |MusicalGroupName={{{MusicalGroupName|}}}
  |MusicalGroupName={{{MusicalGroupName|{{FULLPAGENAME}}}}}
  |GroupType={{{GroupType|}}}
  |GroupType={{{GroupType|}}}
  |GroupGenre={{{GroupGenre|}}}
  |GroupGenre={{{GroupGenre|}}}
  |StartYear={{{StartYear|}}}
  |GroupStartYear={{{GroupStartYear|}}}
  |EndYear={{{EndYear|}}}
  |GroupEndYear={{{GroupEndYear|}}}
  |GroupCountry={{{GroupCountry|}}}
  |GroupCountry={{{GroupCountry|}}}
|GroupHomepage={{{GroupHomepage|}}}
|GroupPix={{{GroupPix|}}}
}}
}}


<!-- Infobox -->
<!-- Clear float for mobile and allow long text -->
<div style="float:right; clear:right; width:350px; margin-left: 1em; border:1px solid #aaa; padding:10px; background:#f9f9f9; font-size:95%;">
<div class="mobile-only-clear" style="clear:both;"></div>
  <div style="font-size:110%; font-weight:bold; text-align:center; margin-bottom:8px;">
    {{{MusicalGroupName}}}
  </div>


  {{#if:{{{GroupType|}}}|<b>Type:</b> {{{GroupType}}}<br />}}
<!-- Main description -->
  {{#if:{{{GroupGenre|}}}|<b>Genre:</b> {{{GroupGenre}}}<br />}}
{{#if:{{{GroupFreeText|}}}|
  {{#if:{{{GroupCountry|}}}|<b>Country:</b> {{{GroupCountry}}} {{#ifexist:File:Flag of {{{GroupCountry}}}.svg|[[File:Flag of {{{GroupCountry}}}.svg|20px]]}}<br />}}
<div style="margin-top:1.5em;">
{{{GroupFreeText}}}
</div>
}}


  {{#if:{{{StartYear|}}}{{{EndYear|}}}|
{{#ask:
  <b>Active:</b>
[[Group::{{FULLPAGENAME}}]]
  <span style="white-space:nowrap;">{{{StartYear}}}</span>{{#if:{{{EndYear|}}}|&nbsp;–&nbsp;<span style="white-space:nowrap;">{{{EndYear}}}</span>}}<br />
| ?PersonInGroup=Person
  }}
| ?RolePersonInGroup=Role
| ?StartYearPersonInGroup=StartYear
| ?EndYearPersonInGroup=EndYear
| format=template
| template=GroupMemberInstrumentDisplay
| named args=yes
| limit=100
| default=No known group memberships.
}}
 
== Recordings ==
<div style="font-size:90%; line-height:1.3em;">
{{#ask:
[[Category:Recording]]
[[RecordingOrchestraLeader::{{FULLPAGENAME}}]]
|?RecordingSinger
|?RecordingRecDate
|?RecordingLabel
|?RecordingDiscType
|?RecordingDiscoNo
|?RecordingMatrixNo
|?RecordingSide
|?RecordingSoundfile
|mainlabel=Recording
|format=template
|template=TuneRecordings
|introtemplate=TuneRecordingsIntro
|outrotemplate=TuneRecordingsOutro
|headers=plain
|link=all
|limit=100
|default=''No recordings found for this group.''
}}
</div>
</div>


<!-- Optional descriptive paragraph -->
<div style="margin-top: 1em;">
{{{GroupFreeText|}}}
</div>


<!-- Categories -->
[[Category:MusicalGroups]]
[[Category:MusicalGroups]]
</includeonly>
</includeonly>
<noinclude>This template stores structured data about a tango musical group.</noinclude>
<noinclude>This template stores structured data about a tango musical group.</noinclude>

Latest revision as of 08:20, 11 June 2025


This template stores structured data about a tango musical group.