Template:Person: Difference between revisions

From TANGOWIKI-TITAF
No edit summary
No edit summary
Line 25: Line 25:
<span style="display:none">{{#arraymap:{{{alternative_search|}}}|;;|@@@|[[alternative_search::@@@]]| }}</span>
<span style="display:none">{{#arraymap:{{{alternative_search|}}}|;;|@@@|[[alternative_search::@@@]]| }}</span>


<!-- Layout with infobox right, FreeText left -->
<!-- Layout: float infobox right -->
<div style="display: flex; flex-wrap: wrap; align-items: flex-start; gap: 2em;">
<div style="float:right; clear:right; width:340px; margin-left: 1em; border:1px solid #aaa; padding:10px; background:#f9f9f9; font-family:'DM Sans'; font-size:0.9em;">
 
<!-- Left column: FreeText -->
<div style="flex: 1 1 60%;">
  {{{FreeText}}}
</div>
 
<!-- Right column: Infobox -->
<div style="flex: 0 0 340px; border:1px solid #aaa; padding:10px; background:#f9f9f9; font-family:'DM Sans'; font-size:0.9em;">
   {{#if:{{{Commons image URL short|}}}|
   {{#if:{{{Commons image URL short|}}}|
     <div style="margin-bottom: 10px; text-align: center;">
     <div style="margin: 0.5em 1em 1em 1em; text-align: center;">
       [[File:{{{Commons image URL short}}}|frameless|300px]]
       [[File:{{{Commons image URL short}}}|frameless|300px]]
     </div>
     </div>
   }}
   }}
   {{#if:{{{Name_real|}}}|
   {{#if:{{{Name_real|}}}|
     <p><b>Real name:</b> {{{Name_real}}}</p>
     <div style="margin: 0.5em 1em;">
      <p style="margin: 0;"><b>Real name</b> {{{Name_real}}}</p>
    </div>
   }}
   }}
   {{#if:{{{birthDate|}}}{{{deathDate|}}}|
   {{#if:{{{birthDate|}}}{{{deathDate|}}}|
     <p><b>Life:</b>
     <div style="margin: 0.5em 1em;">
       {{#switch:{{#len:{{{birthDate}}}}}
      <p style="margin-bottom: 0.2em;"><b>Life</b>
        |4={{{birthDate}}}
       {{#if:{{{birthDate|}}}|
        |7={{#time:F Y|{{{birthDate}}}}}
        {{#switch:{{#len:{{{birthDate}}}}}
        |10={{#time:j F Y|{{{birthDate}}}}}
        |4={{{birthDate}}}
        |#default={{{birthDate}}}
        |7={{#time:F Y|{{{birthDate}}}}}
      }}
        |10={{#time:j F Y|{{{birthDate}}}}}
       {{#if:{{{birthDate|}}{{{deathDate|}}}| – }}
        |#default={{{birthDate}}}
      {{#switch:{{#len:{{{deathDate}}}}}
        }}
        |4={{{deathDate}}}
       }}{{#if:{{{birthDate|}}{{{deathDate|}}}| – }}{{#if:{{{deathDate|}}}|
        |7={{#time:F Y|{{{deathDate}}}}}
        {{#switch:{{#len:{{{deathDate}}}}}
        |10={{#time:j F Y|{{{deathDate}}}}}
        |4={{{deathDate}}}
        |#default={{{deathDate}}}
        |7={{#time:F Y|{{{deathDate}}}}}
       }}
        |10={{#time:j F Y|{{{deathDate}}}}}
     </p>
        |#default={{{deathDate}}}
        }}
       }}</p>
     </div>
   }}
   }}
  {{#if:{{{Pseudonyms-nicknames|}}}|
    <p><b>Pseudonyms:</b><br />
    {{#arraymap:{{{Pseudonyms-nicknames}}}|;;|@@@|• @@@<br />|}}</p>
  }}
   {{#if:{{{Occupation|}}}|
   {{#if:{{{Occupation|}}}|
     <p><b>Occupation:</b><br />
     <div style="margin: 0.5em 1em;">
    {{#arraymap:{{{Occupation}}}|;;|@@@|@@@<br />|}}</p>
      <p style="margin-bottom: 0.2em;"><b>Occupation</b></p>
      <ul style="margin: 0 0 0.5em 1.2em; font-size: 1em;">
        {{#arraymap:{{{Occupation}}}|;;|@@@|<li>@@@</li>}}
      </ul>
    </div>
   }}
   }}
   {{#if:{{{instrument|}}}|
   {{#if:{{{instrument|}}}|
     <p><b>Instrument:</b><br />
     <div style="margin: 0.5em 1em;">
    {{#arraymap:{{{instrument}}}|;;|@@@|@@@<br />|}}</p>
      <p style="margin-bottom: 0.2em;"><b>Instrument</b></p>
      <ul style="margin: 0 0 0.5em 1.2em; font-size: 1em;">
        {{#arraymap:{{{instrument}}}|;;|@@@|<li>@@@</li>}}
      </ul>
    </div>
   }}
   }}
   {{#if:{{{birthPlaceLabel|}}}|
   {{#if:{{{birthPlaceLabel|}}}|
     <p><b>Place of birth:</b> {{{birthPlaceLabel}}}</p>
     <div style="margin: 0.5em 1em;">
      <p style="margin: 0;"><b>Place of birth</b> {{{birthPlaceLabel}}}</p>
    </div>
   }}
   }}
   {{#if:{{{birthPlaceCountryLabel|}}}|
   {{#if:{{{birthPlaceCountryLabel|}}}|
     <p><b>Country of birth:</b> {{{birthPlaceCountryLabel}}}</p>
     <div style="margin: 0.5em 1em;">
  }}
      <p style="margin: 0;"><b>Country of birth</b> {{{birthPlaceCountryLabel}}}</p>
 
     </div>
  {{#if:{{{citizenshipLabel|}}}|
    <p><b>Citizenship:</b><br />
    {{#arraymap:{{{citizenshipLabel}}}|;;|@@@|• @@@<br />|}}</p>
  }}
 
  {{#if:{{{siblingsLabel|}}}|
    <p><b>Siblings:</b><br />
    {{#arraymap:{{{siblingsLabel}}}|;;|@@@|• @@@<br />|}}</p>
  }}
 
  {{#if:{{{spouseLabel|}}}|
    <p><b>Spouse:</b><br />
    {{#arraymap:{{{spouseLabel}}}|;;|@@@|• @@@<br />|}}</p>
  }}
 
  {{#if:{{{Todotango_links|}}}|
     <p><b>TodoTango:</b> [{{{Todotango_links}}} Link]</p>
   }}
   }}
</div>
</div>


</div>
<!-- Orchestras below -->
 
<div style="clear:both;"></div>
<!-- Membership section -->
== Orchestras ==
== Orchestras ==
{{#ask:
{{#ask:

Revision as of 18:35, 20 April 2025

This template stores structured data about a Tango-related person.