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: Infobox floats right, FreeText starts top left -->
<!-- Layout with infobox right, FreeText left -->
<div style="overflow:auto;">
<div style="display: flex; flex-wrap: wrap; align-items: flex-start; gap: 2em;">


<!-- Infobox (floats right) -->
<!-- Left column: FreeText -->
<div style="float:right; width:340px; margin-left:1.5em; margin-bottom:1em; border:1px solid #aaa; padding:10px; background:#f9f9f9; font-family:'DM Sans'; font-size:0.9em;">
<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: 0.5em 1em 1em 1em; text-align: center;">
     <div style="margin-bottom: 10px; 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|}}}|
     <div style="margin: 0.5em 1em;">
     <p><b>Real name:</b> {{{Name_real}}}</p>
      <p style="margin: 0;"><b>Real name</b> {{{Name_real}}}</p>
    </div>
   }}
   }}
   {{#if:{{{birthDate|}}}{{{deathDate|}}}|
   {{#if:{{{birthDate|}}}{{{deathDate|}}}|
     <div style="margin: 0.5em 1em;">
     <p><b>Life:</b>
      <p style="margin-bottom: 0.2em;"><b>Life</b>
       {{#switch:{{#len:{{{birthDate}}}}}
       {{#if:{{{birthDate|}}}|
        |4={{{birthDate}}}
        {{#switch:{{#len:{{{birthDate}}}}}
        |7={{#time:F Y|{{{birthDate}}}}}
        |4={{{birthDate}}}
        |10={{#time:j F Y|{{{birthDate}}}}}
        |7={{#time:F Y|{{{birthDate}}}}}
        |#default={{{birthDate}}}
        |10={{#time:j F Y|{{{birthDate}}}}}
      }}
        |#default={{{birthDate}}}
       {{#if:{{{birthDate|}}{{{deathDate|}}}| – }}
        }}
      {{#switch:{{#len:{{{deathDate}}}}}
       }}{{#if:{{{birthDate|}}{{{deathDate|}}}| – }}{{#if:{{{deathDate|}}}|
        |4={{{deathDate}}}
        {{#switch:{{#len:{{{deathDate}}}}}
        |7={{#time:F Y|{{{deathDate}}}}}
        |4={{{deathDate}}}
        |10={{#time:j F Y|{{{deathDate}}}}}
        |7={{#time:F Y|{{{deathDate}}}}}
        |#default={{{deathDate}}}
        |10={{#time:j F Y|{{{deathDate}}}}}
      }}
        |#default={{{deathDate}}}
    </p>
        }}
  }}
      }}</p>
 
     </div>
  {{#if:{{{Pseudonyms-nicknames|}}}|
    <p><b>Pseudonyms:</b><br />
    {{#arraymap:{{{Pseudonyms-nicknames}}}|;;|@@@|• @@@<br />|}}</p>
  }}
 
  {{#if:{{{Occupation|}}}|
    <p><b>Occupation:</b><br />
    {{#arraymap:{{{Occupation}}}|;;|@@@|• @@@<br />|}}</p>
  }}
 
  {{#if:{{{instrument|}}}|
    <p><b>Instrument:</b><br />
    {{#arraymap:{{{instrument}}}|;;|@@@|• @@@<br />|}}</p>
  }}
 
  {{#if:{{{birthPlaceLabel|}}}|
    <p><b>Place of birth:</b> {{{birthPlaceLabel}}}</p>
  }}
 
  {{#if:{{{birthPlaceCountryLabel|}}}|
    <p><b>Country of birth:</b> {{{birthPlaceCountryLabel}}}</p>
  }}
 
  {{#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>


<!-- FreeText on the left -->
<div>
  {{{FreeText}}}
</div>
</div>


</div> <!-- END layout -->
<!-- Membership section -->
 
== Orchestras ==
== Orchestras ==
{{#ask:
{{#ask:
Line 85: Line 123:
{{#if:{{{nocat|}}}||[[Category:Person]][[Category:TangoPeople]]}}
{{#if:{{{nocat|}}}||[[Category:Person]][[Category:TangoPeople]]}}
</includeonly>
</includeonly>
<noinclude>This template stores structured data about a Tango-related person.</noinclude>

Revision as of 18:25, 20 April 2025

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