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 container: free text on left, infobox on right -->
<!-- Layout container -->
<div style="overflow: hidden;">
<div style="overflow: hidden;">


<!-- Free text (to the left of infobox) -->
<!-- FreeText (left side) -->
<div style="margin-right:360px;">
{{#if:{{{FreeText|}}}|
  {{{FreeText}}}
  <div style="margin-right:360px;">
</div>
    {{{FreeText}}}
  </div>
}}


<!-- Infobox on the right -->
<!-- Infobox (right side) -->
<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;">
<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;">
  <!-- Infobox content (unchanged) -->
   {{#if:{{{Commons image URL short|}}}|
   {{#if:{{{Commons image URL short|}}}|
     <div style="margin: 0.5em 1em 1em 1em; text-align: center;">
     <div style="margin: 0.5em 1em 1em 1em; text-align: center;">
Line 41: Line 42:
     </div>
     </div>
   }}
   }}
   {{#if:{{{Name_real|}}}|
   {{#if:{{{Name_real|}}}|
     <div style="margin: 0.5em 1em;">
     <div style="margin: 0.5em 1em;">
Line 46: Line 48:
     </div>
     </div>
   }}
   }}
   {{#if:{{{birthDate|}}}{{{deathDate|}}}|
   {{#if:{{{birthDate|}}}{{{deathDate|}}}|
     <div style="margin: 0.5em 1em;">
     <div style="margin: 0.5em 1em;">
Line 66: Line 69:
     </div>
     </div>
   }}
   }}
   <!-- Continue infobox fields as in your version... -->
 
   <!-- Pseudonyms -->
  {{#if:{{{Pseudonyms-nicknames|}}}|
    <div style="margin: 0.5em 1em;">
      <p style="margin-bottom: 0.2em;"><b>Pseudonyms</b></p>
      <ul style="padding-left: 1.5em;">
        {{#arraymap:{{{Pseudonyms-nicknames}}}|;;|@@@|<li>@@@</li>}}
      </ul>
    </div>
  }}
 
  <!-- Occupation -->
  {{#if:{{{Occupation|}}}|
    <div style="margin: 0.5em 1em;">
      <p style="margin-bottom: 0.2em;"><b>Occupation</b></p>
      <ul style="padding-left: 1.5em;">
        {{#arraymap:{{{Occupation}}}|;;|@@@|<li>@@@</li>}}
      </ul>
    </div>
  }}
 
  <!-- Instrument -->
  {{#if:{{{instrument|}}}|
    <div style="margin: 0.5em 1em;">
      <p style="margin-bottom: 0.2em;"><b>Instrument</b></p>
      <ul style="padding-left: 1.5em;">
        {{#arraymap:{{{instrument}}}|;;|@@@|<li>@@@</li>}}
      </ul>
    </div>
  }}
 
  <!-- Place of birth -->
  {{#if:{{{birthPlaceLabel|}}}|
    <div style="margin: 0.5em 1em;"><p style="margin: 0;"><b>Place of birth</b> {{{birthPlaceLabel}}}</p></div>
  }}
  {{#if:{{{birthPlaceCountryLabel|}}}|
    <div style="margin: 0.5em 1em;"><p style="margin: 0;"><b>Country of birth</b> {{{birthPlaceCountryLabel}}}</p></div>
  }}
 
  <!-- Citizenship -->
  {{#if:{{{citizenshipLabel|}}}|
    <div style="margin: 0.5em 1em;">
      <p style="margin-bottom: 0.2em;"><b>Citizenship</b></p>
      <ul style="padding-left: 1.5em;">
        {{#arraymap:{{{citizenshipLabel}}}|;;|@@@|<li>@@@</li>}}
      </ul>
    </div>
  }}
 
  <!-- Siblings -->
  {{#if:{{{siblingsLabel|}}}|
    <div style="margin: 0.5em 1em;">
      <p style="margin-bottom: 0.2em;"><b>Siblings</b></p>
      <ul style="padding-left: 1.5em;">
        {{#arraymap:{{{siblingsLabel}}}|;;|@@@|<li>@@@</li>}}
      </ul>
    </div>
  }}
 
  <!-- Spouse -->
  {{#if:{{{spouseLabel|}}}|
    <div style="margin: 0.5em 1em;">
      <p style="margin-bottom: 0.2em;"><b>Spouse</b></p>
      <ul style="padding-left: 1.5em;">
        {{#arraymap:{{{spouseLabel}}}|;;|@@@|<li>@@@</li>}}
      </ul>
    </div>
  }}
 
  <!-- TodoTango -->
  {{#if:{{{Todotango_links|}}}|
    <div style="margin: 0.5em 1em;"><p style="margin: 0;"><b>TodoTango:</b> [{{{Todotango_links}}} Link]</p></div>
  }}
</div>
</div>
</div> <!-- end layout container -->
</div> <!-- end layout container -->


Line 86: Line 160:


{{#if:{{{nocat|}}}||[[Category:Person]][[Category:TangoPeople]]}}
{{#if:{{{nocat|}}}||[[Category:Person]][[Category:TangoPeople]]}}
</includeonly>
<noinclude>This template stores structured data about a Tango-related person.</noinclude>

Revision as of 18:11, 20 April 2025


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