Template:PeopleMentionedMedia: Difference between revisions
From Buddha-Nature
((by SublimeText.Mediawiker)) |
((by SublimeText.Mediawiker)) |
||
(27 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<div class="mt-0 mb-3 text-center float-left" style="width: | <div class="{{{ margins | mt-0 mb-0 mr-0 mr-lg-3 }}} text-center float-left" style="width: 150px; height: {{{ height | 222px }}};"> | ||
<div class="position-relative | <div class="position-relative overflow-hidden py-2" style="border-radius: 5px;">{{#widget:PersonPageRoundImage | ||
|filepath={{#show:{{{1}}}|? | |filepath={{filepath:{{#titleparts:{{PAGENAME:{{#show:{{{ 1 | }}}|?FirstImage#}}}}}}|150}} | ||
|size=100px | |size=100px | ||
|depth= | |depth=1 | ||
|link={{{1}}} | |link={{{ 1 | }}} | ||
|classes=mx-auto my-2 | |classes=mx-auto my-2 | ||
|linkclasses=none | |linkclasses=none | ||
}} | }} | ||
<div style="text-align: center; margin: .6em auto | <div style="text-align: center; margin: .6em auto; max-width: 140px;"> | ||
<div class="line12">{{#if: {{#show:{{{1}}}|?MainNamePhon}} | <div class="line12">{{#if: {{#show:{{{ 1 | }}}|?MainNamePhon}} | ||
|{{#show:{{{1}}}|?MainNamePhon}} | |{{#show:{{{ 1 | }}}|?MainNamePhon}} | ||
|{{#if: {{#show:{{{1}}}|?MainNameSkt}} | |{{#if: {{#show:{{{ 1 | }}}|?MainNameSkt}} | ||
| {{#show:{{{1}}}|?MainNameSkt}} | | {{#show:{{{ 1 | }}}|?MainNameSkt}} | ||
| {{#if: {{#show:{{{1}}}|?namefirst}} {{#show:{{{1}}}|?namelast}} | | {{#if: {{#show:{{{ 1 | }}}|?namefirst}} {{#show:{{{ 1 | }}}|?namelast}} | ||
| {{#show:{{{1}}}|?namefirst}} {{#show:{{{1}}}|?namelast}} | | {{#show:{{{ 1 | }}}|?namefirst}} {{#show:{{{ 1 | }}}|?namelast}} | ||
| <span style="color: | | {{#ifexist: {{{ 1 | }}} | ||
| {{SUBPAGENAME:{{{ 1 | }}}}} | |||
| <span style="color: rgb(146, 27, 38);">{{{ 1 | }}}</span> | |||
}} | |||
}} | }} | ||
}} | }} | ||
}} | }} | ||
</div>{{#if: {{#show:{{{1}}}|?yearbirth}} | </div>{{#ifeq: {{{ showdates | }}} | no | | {{#if: {{#show:{{{ 1 | }}}|?yearbirth}} | ||
| <div class="grey-color" style="font-size: .8em;">{{#iferror: {{#time: Y | {{#show:{{{1}}}|?yearbirth}} }} | {{#show:{{{1}}}|?yearbirth}} | {{#time: Y | {{#show:{{{1}}}|?yearbirth}} }} }} {{#if: {{#show:{{{1}}}|?yeardeath}} | | <div class="grey-color" style="font-size: .8em;">{{#iferror: {{#time: Y | {{#show:{{{ 1 | }}}|?yearbirth}} }} | {{#show:{{{ 1 | }}}|?yearbirth}} | {{#time: Y | {{#replaceset:{{#show:{{{ 1 | }}}|?yearbirth}}|/c\. /=}} }} }} {{#if: {{#show:{{{ 1 | }}}|?yeardeath}} | ||
|~ {{#iferror: {{#time: Y | {{#show:{{{1}}}|?yeardeath}} }} | {{#show:{{{1}}}|?yeardeath}} | {{#time: Y | {{#show:{{{1}}}|?yeardeath}} }} }} | |~ {{#iferror: {{#time: Y | {{#show:{{{ 1 | }}}|?yeardeath}} }} | {{#show:{{{ 1 | }}}|?yeardeath}} | {{#time: Y | {{#show:{{{ 1 | }}}|?yeardeath}} }} }} | ||
| | | | ||
}}</div> | }}</div> | ||
| | | | ||
}}</div> | }} }} | ||
</div>{{#if: {{{2|}}}| | </div>{{#widget:OverlayLink | ||
|link=/index.php?title={{#ifexist: People/{{{ 1 | }}} | |||
|People/{{{ 1 | }}} | |||
|{{{ 1 | }}} | |||
}} | |||
|classes=grey-hoverlay | |||
|title={{{ 1 | }}} | |||
}} | |||
</div>{{#if: {{{ 2 | }}}| | |||
<div class="position-relative grey-hoverlay" style="border-radius: 5px; padding: 12px;">{{#widget:PersonPageRoundImage | <div class="position-relative grey-hoverlay" style="border-radius: 5px; padding: 12px;">{{#widget:PersonPageRoundImage | ||
|filepath={{#show:{{{2}}}|? | |filepath={{filepath:{{#titleparts:{{PAGENAME:{{#show:{{{ 2 | }}}|?FirstImage#}}}}}}|200}} | ||
|size=180px | |size=180px | ||
|depth=3 | |depth=3 | ||
|link={{{2}}} | |link={{{ 2 | }}} | ||
|classes=mx-auto | |classes=mx-auto | ||
|linkclasses=none | |linkclasses=none | ||
}} | }} | ||
<div style="text-align: center; font-size: 1.3em; margin-top: .4em;">{{#if: {{#show:{{{2}}}|?MainNamePhon}} | <div style="text-align: center; font-size: 1.3em; margin-top: .4em;">{{#if: {{#show:{{{ 2 | }}}|?MainNamePhon}} | ||
|{{#show:{{{2}}}|?MainNamePhon}} | |{{#show:{{{ 2 | }}}|?MainNamePhon}} | ||
|{{#show:{{{2}}}|?MainNameSkt}} | |{{#show:{{{ 2 | }}}|?MainNameSkt}} | ||
}}{{#if: {{#show:{{{2}}}|?yearbirth}} | }}{{#if: {{#show:{{{ 2 | }}}|?yearbirth}} | ||
| <div class="grey-color" style="font-size: .8em;">{{#iferror: {{#time: Y | {{#show:{{{2}}}|?yearbirth}} }} | {{#show:{{{2}}}|?yearbirth}} | {{#time: Y | {{#show:{{{2}}}|?yearbirth}} }} }} {{#if: {{#show:{{{2}}}|?yeardeath}} | | <div class="grey-color" style="font-size: .8em;">{{#iferror: {{#time: Y | {{#show:{{{ 2 | }}}|?yearbirth}} }} | {{#show:{{{ 2 | }}}|?yearbirth}} | {{#time: Y | {{#show:{{{ 2 | }}}|?yearbirth}} }} }} {{#if: {{#show:{{{ 2 | }}}|?yeardeath}} | ||
|~ {{#iferror: {{#time: Y | {{#show:{{{2}}}|?yeardeath}} }} | {{#show:{{{2}}}|?yeardeath}} | {{#time: Y | {{#show:{{{2}}}|?yeardeath}} }} }} | |~ {{#iferror: {{#time: Y | {{#show:{{{ 2 | }}}|?yeardeath}} }} | {{#show:{{{ 2 | }}}|?yeardeath}} | {{#time: Y | {{#show:{{{ 2 | }}}|?yeardeath}} }} }} | ||
| | | | ||
}}</div> | }}</div> |