Difference between revisions of "Template:Infobox letter"

From Teopedia library
Jump to navigation Jump to search
m (+sub-categories)
m
Line 47: Line 47:
 
</noinclude><includeonly>{{Hide title}} __NOFACTBOX__ <div style="margin-left: 10px; border: 1px #120a8f solid;  font-family:Arial, sans-serif; width:300px; float: right; {{css|border-radius|10}}">
 
</noinclude><includeonly>{{Hide title}} __NOFACTBOX__ <div style="margin-left: 10px; border: 1px #120a8f solid;  font-family:Arial, sans-serif; width:300px; float: right; {{css|border-radius|10}}">
  
<div style="text-align: center;">'''Letter data''' </div>
+
<div style="text-align: center;">'''Letter data'''</div><div style="float: right;"><small>[[Template:Infobox letter|T]]</small></div>
 
<div style="font-size:80%; text-align: left; width: 98%; margin: 0 auto; ">  
 
<div style="font-size:80%; text-align: left; width: 98%; margin: 0 auto; ">  
 
{| width=100%
 
{| width=100%
Line 71: Line 71:
 
! {{#arraymap:{{{to_person|}}}|;|@@| {{#set:Name=@@|Letter receiver=@@}} {{#formredlink:target=@@|form=ETG_article}} [[Category: Letters to @@]]|;&#32;}}
 
! {{#arraymap:{{{to_person|}}}|;|@@| {{#set:Name=@@|Letter receiver=@@}} {{#formredlink:target=@@|form=ETG_article}} [[Category: Letters to @@]]|;&#32;}}
 
|- valign=top
 
|- valign=top
| style="text-align: right;" | Place:
+
| style="text-align: right;" |  {{tip|Place|Where sent to, or where received}}:
 
! [[Letter send to::{{{to_place|}}}]]
 
! [[Letter send to::{{{to_place|}}}]]
 
|- valign=top
 
|- valign=top
| style="text-align: right;" | Date:
+
| style="text-align: right;" | {{tip|Date|When received}}:
 
! [[Letter receiving date::{{{to_date|}}}]]
 
! [[Letter receiving date::{{{to_date|}}}]]
  

Revision as of 07:28, 24 February 2022

This template creates information box for a letter and places the page into «Letters» category and "Letters from ..." and "Letters to ..." sub-categories.

To copy Description
{{Infobox letter
 | from_person = 
 | from_place  = 
 | from_date   = 
 | language = 
 | to_person = 
 | to_place  = 
 | to_date   = 
 | mentioned_persons = 
 | mentioned_places  = 
 | mentioned_other   = 
 | summary = 
 | location = 
 | files = 
}}
Use semicolon to separate several items.

For persons use the pattern as for ETG. For example:

  1. one person: Blavatsky H. P.
  2. several persons: Zhelikhovsky V. P.; Olcott H. S.

Date format: YYYY-MM-DD. For example: 1891-07-16