Template:Infobox letter: Difference between revisions
(Created page with "<noinclude>This template creates information box for a letter. {| class=wikitable ! width=285px | To copy ! Description |- valign=top |<pre> {{Infobox letter | from_person =...") |
m (Undo extra categories) Tag: Undo |
||
(30 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude>This template creates information box for a letter. | <noinclude>This template creates information box for a letter and places the page into {{c|Letters}} category and "Letters from ..." and "Letters to ..." sub-categories. | ||
Use template {{t|Letter properties}} if you don't want to show any information about letter. | |||
{| class=wikitable | {| class=wikitable | ||
Line 11: | Line 13: | ||
| from_date = | | from_date = | ||
| language = | | language = | ||
| translator = | |||
| to_person = | | to_person = | ||
| to_place = | | to_place = | ||
Line 17: | Line 20: | ||
| mentioned_places = | | mentioned_places = | ||
| mentioned_other = | | mentioned_other = | ||
| concerns = | |||
| summary = | | summary = | ||
| location = | | location = | ||
| files = | | files = | ||
| russian_section = | |||
}}</pre> | }}</pre> | ||
| Use | | Use semicolon to separate several items. | ||
* '''from_person''' -- properties: {{p|Name}}, {{p|Letter | |||
For persons use the pattern as for [[Form:ETG_article|ETG]]. '''Note''': avoid space between initials. For example: | |||
:# one person: Blavatsky H.P. | |||
:# several persons: Zhelikhovsky V.P.; Olcott H.S. | |||
Date format: YYYY-MM-DD. For example: 1891-07-16 | |||
* '''from_person''' -- properties: {{p|Name}}, {{p|Letter sender}} | |||
* '''from_place''' -- property {{p|Letter send from}} | * '''from_place''' -- property {{p|Letter send from}} | ||
* '''from_date''' -- when a letter was written; property {{p|Letter sending date}} | * '''from_date''' -- when a letter was written; property {{p|Letter sending date}} | ||
* '''language''' -- property {{p|Used language}} | * '''language''' -- property {{p|Used language}} | ||
* '''translator''' -- translator into English; property {{p|Translator}} | |||
* '''to_person''' -- properties: {{p|Name}}, {{p|Letter receiver}} | * '''to_person''' -- properties: {{p|Name}}, {{p|Letter receiver}} | ||
* '''to_place''' -- where a letter was received; property {{p|Letter send to}} | * '''to_place''' -- where a letter was received; property {{p|Letter send to}} | ||
Line 32: | Line 45: | ||
* '''mentioned_places''' -- property {{p|Mentioned place}} | * '''mentioned_places''' -- property {{p|Mentioned place}} | ||
* '''mentioned_other''' -- something important, mentioned in a letter; property {{p|Mentioned item}} | * '''mentioned_other''' -- something important, mentioned in a letter; property {{p|Mentioned item}} | ||
* '''concerns''' -- something or someone the letter concerns, which may or may not be mentioned or named directly {{p|Letter concerns}} | |||
* '''summary''' -- brief summary of content; property {{p|Summary note}} | * '''summary''' -- brief summary of content; property {{p|Summary note}} | ||
* '''location''' -- where the original letter is located now, its archive index; property {{p|Location of original}} | * '''location''' -- where the original letter is located now, its archive index; property {{p|Location of original}} | ||
* '''files''' -- property {{p|Files of original}} | * '''files''' -- property {{p|Files of original}} | ||
* '''russian_section''' -- wiki page in Russian section | |||
|} | |} | ||
[[Category: Templates]] | [[Category: Templates]] | ||
</noinclude><includeonly><div style="border: 1px #120a8f solid; font-family:Arial, sans-serif; width:300px; float: right; {{css|border-radius|10}}"> | [[t-ru-lib:Шаблон:Карточка письма]] | ||
</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="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 47: | Line 62: | ||
|- valign=top | |- valign=top | ||
| style="text-align: right; width: 75px;" | Author(s): | | style="text-align: right; width: 75px;" | Author(s): | ||
! {{#arraymap:{{{from_person|}}}| | ! {{#arraymap:{{{from_person|}}}|;|@@| {{#set:Name=@@|Letter sender=@@}} {{#formredlink:target=@@|form=ETG_article}} [[Category: Letters from @@]]|; }} | ||
|- valign=top | |- valign=top | ||
| style="text-align: right;" | Place: | | style="text-align: right;" | Place: | ||
! | ! [[Letter send from::{{{from_place|}}}]] | ||
|- valign=top | |- valign=top | ||
| style="text-align: right;" | Date: | | style="text-align: right;" | Date: | ||
Line 56: | Line 71: | ||
|- valign=top | |- valign=top | ||
| style="text-align: right;" | Language(s): | | style="text-align: right;" | Language(s): | ||
! {{#arraymap:{{{language|}}}| | ! {{#arraymap:{{{language|}}}|;|@@| [[Used language::@@]]}}{{#if: {{{translator|}}}|<br>({{tip|trans.|Translated into English}} by {{{translator}}})|}} | ||
|- | |- | ||
Line 62: | Line 77: | ||
|- valign=top | |- valign=top | ||
| style="text-align: right;" | Receiver(s): | | style="text-align: right;" | Receiver(s): | ||
! {{#arraymap:{{{to_person|}}}| | ! {{#arraymap:{{{to_person|}}}|;|@@| {{#set:Name=@@|Letter receiver=@@}} {{#formredlink:target=@@|form=ETG_article}} [[Category: Letters to @@]]|; }} | ||
|- 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|}}}]] | ||
|- | |- | ||
! colspan=2 | <div style="background: #9999ff; padding-left: 5px;"> | ! colspan=2 | <div style="background: #9999ff; padding-left: 5px;">Mentioned</div> | ||
|- valign=top | |- valign=top | ||
| style="text-align: right;" | Person(s): | | style="text-align: right;" | Person(s): | ||
! {{#arraymap:{{{mentioned_persons|}}}| | ! {{#arraymap:{{{mentioned_persons|}}}|;|@@| {{#set:Name=@@|Mentioned person=@@}} {{#formredlink:target=@@|form=ETG_article}} |; }} | ||
|- valign=top | |||
| style="text-align: right;" | Place(s): | |||
! {{#arraymap:{{{mentioned_places|}}}|;|@@| [[Mentioned place::@@]] |; }} | |||
|- valign=top | |- valign=top | ||
| style="text-align: right;" | | | style="text-align: right;" | Other: | ||
! | ! {{#arraymap:{{{mentioned_other|}}}|;|@@| [[Mentioned item::@@]] |; }} | ||
|- valign=top | |- valign=top | ||
| style="text-align: right;" | | | style="text-align: right;" | {{tip|Concerns|Something or someone the letter concerns, which may or may not be mentioned or named directly}}: | ||
! | ! {{#arraymap:{{{concerns|}}}|;|@@| [[Letter concerns::@@]] |; }} | ||
|- | |- | ||
! colspan=2 | <div style="background: #9999ff; padding-left: 5px;">Summary</div> | ! colspan=2 | <div style="background: #9999ff; padding-left: 5px;">Summary and notes</div> | ||
|- | |- | ||
| colspan=2 | [[Summary note::{{{summary|}}}]] | | colspan=2 | [[Summary note::{{{summary|}}}]] | ||
Line 91: | Line 109: | ||
|- valign=top | |- valign=top | ||
| style="text-align: right;" | Location: | | style="text-align: right;" | Location: | ||
! | ! {{{location|}}} {{#set:Files of original={{{location|}}}}} | ||
|- valign=top | |||
| colspan=2 | {{#arraymap:{{{files|}}}|;|@@|[[File:@@|90px]]{{#set:Files of original=@@}}| }} | |||
|- valign=top | |||
! colspan=2 | <div style="background: #9999ff; padding-left: 5px;">Other languages</div> | |||
|- valign=top | |- valign=top | ||
| colspan=2 | {{# | | colspan=2 | {{#if: {{{russian_section|}}}| [[:t-ru-lib:{{{russian_section}}}|Russian]]|}} | ||
|- | |- | ||
| colspan=2 | __TOC__ | | colspan=2 | __TOC__ | ||
|} | |} | ||
</div> | </div> | ||
</div> | <div style="background:#9999ff; text-align: center; font-weight: bold; font-size:90%; -webkit-border-bottom-left-radius:8px; -webkit-border-bottom-right-radius:8px; -moz-border-radius-bottomleft:8px; -moz-border-radius-bottomright:8px; border-bottom-left-radius:8px; border-bottom-right-radius:8px"><div style="float: right; font-size: 80%; margin-right: 5px;">[[Template:Infobox letter|T]]</div> | ||
[[:Category: Letters|All letters]]</div> | |||
</div> | |||
{{Style P-Title|Letter}} | |||
{| style="margin: 0 auto;" | |||
|- | |||
| align=right | from: || '''{{{from_person|}}}''' | |||
|- | |||
| align=right | to: || '''{{{to_person|}}}''' | |||
|- | |||
| align=right | date: || ''{{{from_date|}}}'' | |||
|} | |||
[[Category: Letters]] | |||
{{#if: {{{russian_section|}}}| [[t-ru-lib:{{{russian_section}}}]]|}} | |||
</includeonly> |
Latest revision as of 04:28, 28 September 2023
This template creates information box for a letter and places the page into «Letters» category and "Letters from ..." and "Letters to ..." sub-categories.
Use template {{Letter properties}} if you don't want to show any information about letter.
To copy | Description |
---|---|
{{Infobox letter | from_person = | from_place = | from_date = | language = | translator = | 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:
Date format: YYYY-MM-DD. For example: 1891-07-16
|