Difference between revisions of "Template:Book-person"
From Buddha-Nature
((by SublimeText.Mediawiker)) |
m (Text replacement - "images-commons" to "images") |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <div class="bnw-author-description text-center grey-hoverlay p-3">{{#subobject: | + | {{#ifexist: {{{ PersonPage | }}} | <div class="bnw-author-description text-center grey-hoverlay p-3">{{#subobject: |
|PersonName={{{ PersonName | }}} | |PersonName={{{ PersonName | }}} | ||
|PersonPage={{{ PersonPage | }}} | |PersonPage={{{ PersonPage | }}} | ||
}}{{#widget:PersonPageRoundImage | }}{{#widget:PersonPageRoundImage | ||
− | |filepath={{#show: {{{ PersonPage | }}} |? | + | |filepath={{filepath:{{#titleparts:{{PAGENAME:{{#show: {{{ PersonPage | }}} |?FirstImage#}}}}}}|300}} |
|link={{{ PersonPage | }}} | |link={{{ PersonPage | }}} | ||
|linkclasses=none | |linkclasses=none | ||
Line 13: | Line 13: | ||
<span style="font-size: 1.3em;">[[{{{ PersonPage | }}}|{{{ PersonName | }}}]]</span> | <span style="font-size: 1.3em;">[[{{{ PersonPage | }}}|{{{ PersonName | }}}]]</span> | ||
− | </div> | + | </div> | |
+ | <div class="position-relative p-2 grey-hoverlay text-center">{{#widget:PersonPageRoundImage | ||
+ | |filepath= https://commons.tsadra.org/images/f/f6/Teaching_Mudra_2.jpg | ||
+ | |link={{{ PersonPage | }}} | ||
+ | |size=200px | ||
+ | |depth=2 | ||
+ | |linkclasses=d-none | ||
+ | |classes=m-auto | ||
+ | }} | ||
+ | |||
+ | <span style="font-size: 1.3em; line-height: 1;">{{{ PersonName | }}}<br><small style="color: darkred;">''Page not created.''<br>Click to create, but first make sure it exists on commons.tsadra.org.</small></span>{{#widget:OverlayLink | ||
+ | |link=/index.php?title=People/{{urlencode:{{PAGENAME:{{{ PersonPage | }}}}}|WIKI}}&action=edit&preload=Template:AddPersonCallTag | ||
+ | |classes=none | ||
+ | |target=_blank | ||
+ | |title={{{ PersonName | }}} | ||
+ | }} | ||
+ | </div> }} |