Template:Infobox document: Difference between revisions
No edit summary |
m (ETG is an outdated name for CTD (same dictionary); update form reference and link label) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 7: | Line 7: | ||
|<pre> | |<pre> | ||
{{Infobox document | {{Infobox document | ||
| title = | | type = | ||
| subtitle = | | title = | ||
| number = | | subtitle = | ||
| from_person = | | number = | ||
| from_organization = | | from_person = | ||
| from_organization = | |||
| from_place = | | from_place = | ||
| from_date = | | from_date = | ||
| Line 25: | Line 26: | ||
| location = | | location = | ||
| files = | | files = | ||
| categories = | | categories = | ||
| section_russian = | | section_russian = | ||
}}</pre> | }}</pre> | ||
| Use semicolon to separate several items. | | Use semicolon to separate several items. | ||
For persons use the pattern as for [[Form: | For persons use the pattern as for [[Form:CTD_article|CTD]]. For example: | ||
:# one person: Blavatsky H. P. | :# one person: Blavatsky H. P. | ||
:# several persons: Zhelikhovsky V. P.; Olcott H. S. | :# several persons: Zhelikhovsky V. P.; Olcott H. S. | ||
| Line 36: | Line 37: | ||
Date format: YYYY-MM-DD. For example: 1891-07-16 | Date format: YYYY-MM-DD. For example: 1891-07-16 | ||
* ''' | * '''type''' -- document type: letter, passport, etc.; {{p|Document type}} | ||
* '''title''' -- document title; {{p|Document title}} | |||
* '''subtitle''' -- document subtitle; {{p|Document subtitle}} | * '''subtitle''' -- document subtitle; {{p|Document subtitle}} | ||
* '''number''' -- document number; {{p|Document number}} | * '''number''' -- document number; {{p|Document number}} | ||
| Line 60: | Line 62: | ||
[[Category: Templates]] | [[Category: Templates]] | ||
[[t-ru-lib:Шаблон:Карточка документа]] | [[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}}"> | </noinclude><includeonly>{{Hide title}} __NOFACTBOX__ {{#set:Document type={{{type|}}}}}<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;">'''[[Document title::{{{title|}}}]]'''</div> | <div style="text-align: center;">'''[[Document title::{{{title|}}}]]'''</div> | ||
<div style="text-align: center; font-size: 80%;">{{#if: {{{subtitle|}}}| [[Document subtitle::{{{subtitle|}}}]]<br>|}}{{#if: {{{number|}}}|No. [[Document number::{{{number}}}]]|}}</div> | <div style="text-align: center; font-size: 80%;">{{#if: {{{subtitle|}}}| [[Document subtitle::{{{subtitle|}}}]]<br>|}}{{#if: {{{number|}}}|No. [[Document number::{{{number}}}]]|}}</div> | ||
| Line 69: | Line 71: | ||
|- valign=top | |- valign=top | ||
| style="text-align: right; width: 75px;" | Author(s): | | style="text-align: right; width: 75px;" | Author(s): | ||
! {{#arraymap:{{{from_person|}}}|;|@@| {{#set:Name=@@|Document author=@@}} {{#formredlink:target=@@|form= | ! {{#arraymap:{{{from_person|}}}|;|@@| {{#set:Name=@@|Document author=@@}} {{#formredlink:target=@@|form=CTD_article}} |; }} | ||
|- valign=top | |- valign=top | ||
| style="text-align: right;" | Organization: | | style="text-align: right;" | Organization: | ||
| Line 87: | Line 89: | ||
|- valign=top | |- valign=top | ||
| style="text-align: right;" | Receiver(s): | | style="text-align: right;" | Receiver(s): | ||
! {{#arraymap:{{{to_person|}}}|;|@@| {{#set:Name=@@|Document receiver=@@}} {{#formredlink:target=@@|form= | ! {{#arraymap:{{{to_person|}}}|;|@@| {{#set:Name=@@|Document receiver=@@}} {{#formredlink:target=@@|form=CTD_article}}|; }} | ||
|- valign=top | |- valign=top | ||
| style="text-align: right;" | {{tip|Place|Where sent to, or where received}}: | | style="text-align: right;" | {{tip|Place|Where sent to, or where received}}: | ||
| Line 99: | Line 101: | ||
|- valign=top | |- valign=top | ||
| style="text-align: right;" | Person(s): | | style="text-align: right;" | Person(s): | ||
! {{#arraymap:{{{mentioned_persons|}}}|;|@@| {{#set:Name=@@|Mentioned person=@@}} {{#formredlink:target=@@|form= | ! {{#arraymap:{{{mentioned_persons|}}}|;|@@| {{#set:Name=@@|Mentioned person=@@}} {{#formredlink:target=@@|form=CTD_article}} |; }} | ||
|- valign=top | |- valign=top | ||
| style="text-align: right;" | Place(s): | | style="text-align: right;" | Place(s): | ||
Latest revision as of 03:32, 27 October 2026
This template creates information box for an archives item and places the page into «Documents» category.
| To copy | Description |
|---|---|
{{Infobox document
| type =
| title =
| subtitle =
| number =
| from_person =
| from_organization =
| from_place =
| from_date =
| language =
| to_person =
| to_place =
| to_date =
| mentioned_persons =
| mentioned_places =
| mentioned_other =
| concerns =
| summary =
| location =
| files =
| categories =
| section_russian =
}}
|
Use semicolon to separate several items.
For persons use the pattern as for CTD. For example:
Date format: YYYY-MM-DD. For example: 1891-07-16
|