Last active
August 18, 2018 21:29
-
-
Save georgy7/7d1a2f362c300f34e50e0344571335f1 to your computer and use it in GitHub Desktop.
Карточка для родословной в MediaWiki
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{Персона | |
| birthday = 1 января 1970 | |
| birthplace = Новосибирск | |
| photo = [[Файл:Старое_фото.jpg]] | |
| mother = [[Полное Имя|Кратко]] | |
| father = [[Полное Имя|Кратко]] | |
| spouse = [[Полное Имя|Кратко]] | |
| siblings = | |
<ul> | |
<li>[[Брат]] (1938)</li> | |
<li>[[Сестра]] (1941)</li> | |
<li>[[Другой брат]] (1944)</li> | |
<li>[[Другая сестра]] (1946)</li> | |
</ul> | |
| children = [[Сын]], [[Еще один сын]] | |
}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* MediaWiki:Common.css */ | |
.infobox { | |
border: 1px solid #a2a9b1; | |
background: #f8f9fa; | |
font-size: 88%; | |
min-width: 20em; | |
float: right; | |
clear: right; | |
margin-bottom: .5em; | |
margin-left: 1em; | |
padding: .4em; | |
border-spacing: 0; | |
} | |
.infobox td, .infobox th { | |
background: #eaecf0; | |
vertical-align: top; | |
padding-left: .2em; | |
padding-right: .2em; | |
} | |
.infobox th { | |
font-weight: bold; | |
text-align: left; | |
} | |
.infobox td.header { | |
text-align: center; | |
font-weight: bold; | |
} | |
.infobox tr.photorow td { | |
text-align: center; | |
background: #7e9caa; | |
padding: 0; | |
} | |
.infobox tr.photorow td img { | |
max-width: 25em; | |
height: auto; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table class="infobox"> | |
<tr> | |
<td class="header" colspan="2">Персона</td> | |
</tr> | |
<tr> | |
<td colspan="2"></td> | |
</tr> | |
<tr class="photorow"> | |
<td colspan="2">{{{photo|}}}</td> | |
</tr> | |
<tr> | |
<td colspan="2" style="height: .5em;"></td> | |
</tr> | |
<tr> | |
<th>Дата рождения</th> | |
<td>{{{birthday|}}}</td> | |
</tr> | |
<tr> | |
<th>Место рождения</th> | |
<td>{{{birthplace|}}}</td> | |
</tr> | |
{{ | |
#if: {{{death|}}} | |
| <tr> | |
<th>Дата смерти</th> | |
<td>{{{death|}}}</td> | |
</tr> | |
}} | |
<tr> | |
<th>Мать</th> | |
<td>{{{mother|}}}</td> | |
</tr> | |
<tr> | |
<th>Отец</th> | |
<td>{{{father|}}}</td> | |
</tr> | |
{{ | |
#if: {{{siblings|}}} | |
| <tr> | |
<th>Сиблинги</th> | |
<td>{{{siblings|}}}</td> | |
</tr> | |
}} | |
{{ | |
#if: {{{spouse|}}} | |
| <tr> | |
<th>Супруг(а)</th> | |
<td>{{{spouse|}}}</td> | |
</tr> | |
}} | |
{{ | |
#if: {{{children|}}} | |
| <tr> | |
<th>Дети</th> | |
<td>{{{children|}}}</td> | |
</tr> | |
}} | |
</table> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment