Difference between revisions of "Template:Letter properties"

From Teopedia library
Jump to navigation Jump to search
(Created page with "<noinclude>This template based on template {{t|Infobox letter}}, it implements one part of it – it sets the same semantic properties for a letter, but do not display any inf...")
 
m
 
(One intermediate revision by the same user not shown)
Line 52: Line 52:
 
</noinclude><includeonly><!--
 
</noinclude><includeonly><!--
 
   Process lists
 
   Process lists
-->{{#arraymap:{{{from_person|}}}|;|@@| {{#set:Name=@@|Letter sender=@@}} [[Category: Letters from @@]] |}}<!--
+
-->{{#arraymap:{{{from_person|}}}|;|@@| {{#set:Name=@@|Letter sender=@@}} [[Category: Letters from @@]] }}<!--
-->{{#arraymap:{{{language|}}}|;|@@| {{#set:Used language=@@}}<!--
+
-->{{#arraymap:{{{language|}}}|;|@@| {{#set:Used language=@@}} }}<!--
-->{{#arraymap:{{{to_person|}}}|;|@@| {{#set:Name=@@|Letter receiver=@@}} [[Category: Letters to @@]] |}}<!--
+
-->{{#arraymap:{{{to_person|}}}|;|@@| {{#set:Name=@@|Letter receiver=@@}} [[Category: Letters to @@]] }}<!--
-->{{#arraymap:{{{mentioned_persons|}}}|;|@@| {{#set:Name=@@|Mentioned person=@@}} |}}<!--
+
-->{{#arraymap:{{{mentioned_persons|}}}|;|@@| {{#set:Name=@@|Mentioned person=@@}} }}<!--
-->{{#arraymap:{{{mentioned_places|}}}|;|@@| {{#set:Mentioned place=@@|}}<!--
+
-->{{#arraymap:{{{mentioned_places|}}}|;|@@| {{#set:Mentioned place=@@}} }}<!--
-->{{#arraymap:{{{mentioned_other|}}}|;|@@| {{#set:Mentioned item=@@|}}<!--
+
-->{{#arraymap:{{{mentioned_other|}}}|;|@@| {{#set:Mentioned item=@@}} }}<!--
-->{{#arraymap:{{{concerns|}}}|;|@@| {{#set:Letter concerns=@@|}}<!--
+
-->{{#arraymap:{{{concerns|}}}|;|@@| {{#set:Letter concerns=@@}} }}<!--
-->{{#arraymap:{{{files|}}}|;|@@| {{#set:Files of original=@@}}|&#32;}}<!--
+
-->{{#arraymap:{{{files|}}}|;|@@| {{#set:Files of original=@@}} }}<!--
 
 
 
   Process single properties
 
   Process single properties
 
-->{{#set: Letter send from={{{from_place|}}}  
 
-->{{#set: Letter send from={{{from_place|}}}  
Line 68: Line 67:
 
  | Summary note={{{summary|}}}
 
  | Summary note={{{summary|}}}
 
  | Files of original={{{location|}}}
 
  | Files of original={{{location|}}}
| Property2=value2
 
| Property2=value2
 
| Property2=value2
 
 
}}<!--
 
}}<!--
 
 
   Add to category and set link to Russian page
 
   Add to category and set link to Russian page
 
-->[[Category: Letters]]{{#if: {{{russian_section|}}}| [[t-ru-lib:{{{russian_section}}}]]|}}</includeonly>
 
-->[[Category: Letters]]{{#if: {{{russian_section|}}}| [[t-ru-lib:{{{russian_section}}}]]|}}</includeonly>

Latest revision as of 04:00, 20 July 2022

This template based on template {{Infobox letter}}, it implements one part of it – it sets the same semantic properties for a letter, but do not display any information on the page. The purpose is to include the page in query result on givven properties. The page is placed into «Letters» category and "Letters from ..." and "Letters to ..." sub-categories.

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

For persons use the pattern as for ETG. Note: avoid space between initials. 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