Template:MusicalGroup: Difference between revisions

From TANGOWIKI-TITAF
No edit summary
Tag: Reverted
No edit summary
 
(22 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
{{#if:{{{MusicalGroupName|}}}|{{DISPLAYTITLE:{{{MusicalGroupName}}}}}}}
{{#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|}}}
Line 12: Line 55:
}}
}}


== Members ==
<!-- Clear float for mobile and allow long text -->
<div class="mobile-only-clear" style="clear:both;"></div>
 
<!-- Main description -->
{{#if:{{{GroupFreeText|}}}|
<div style="margin-top:1.5em;">
{{{GroupFreeText}}}
</div>
}}
 
{{#ask:
{{#ask:
  [[Group::{{FULLPAGENAME}}]]
  [[Group::{{FULLPAGENAME}}]]
  | ?PersonInGroup=Person
  | ?PersonInGroup=Person
  | ?PersonInGroup.instrument=instrument
  | ?RolePersonInGroup=Role
  | ?StartYearPersonInGroup=StartYear
  | ?StartYearPersonInGroup=StartYear
  | ?EndYearPersonInGroup=EndYear
  | ?EndYearPersonInGroup=EndYear
  | format=template
  | format=template
  | template=GroupMemberInstrument
  | template=GroupMemberInstrumentDisplay
  | named args=yes
  | named args=yes
  | limit=100
  | limit=100
Line 26: Line 78:
}}
}}


<!-- Infobox -->
== Recordings ==
<div style="float:right; clear:right; width:340px; margin-left: 1em; solid #aaa; padding:10px; background:#f9f9f9;">
<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>


  <!-- Image logic: GroupPix first, 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|}}}|
    <b>Active</b> {{{GroupStartYear}}}{{#if:{{{GroupEndYear|}}}|&nbsp;–&nbsp;{{{GroupEndYear}}}}}<br />
  }}
  {{#if:{{{GroupType|}}}|
    <b>Type</b> {{{GroupType}}}<br />
  }}
  {{#if:{{{GroupGenre|}}}|
    <b>Genre</b> {{{GroupGenre}}}<br />
  }}
  {{#if:{{{GroupCountry|}}}|
    <b>Country</b> {{{GroupCountry}}}<br />
  }}
  {{#if:{{{GroupHomepage|}}}|
    <b>Homepage:</b> [{{{GroupHomepage}}} Link]<br />
  }}
  {{#if:{{{GroupFreeText|}}}|
    <div style="margin-top:1em;">
      {{{GroupFreeText}}}
    </div>
  }}
</div>


[[Category:MusicalGroups]]
[[Category:MusicalGroups]]

Latest revision as of 08:20, 11 June 2025


This template stores structured data about a tango musical group.