Difference between revisions of "Template:Book-person"

From Buddha-Nature
((by SublimeText.Mediawiker))
m (Text replacement - "images-commons" to "images")
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="bnw-author-description grey-hoverlay mb-4 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 | }}} |?FirstImageURL#}}
+
|filepath={{filepath:{{#titleparts:{{PAGENAME:{{#show: {{{ PersonPage | }}} |?FirstImage#}}}}}}|300}}
 
|link={{{ PersonPage | }}}
 
|link={{{ PersonPage | }}}
 +
|linkclasses=none
 
|size=200px
 
|size=200px
 
|depth=2
 
|depth=2
 +
|classes=m-auto
 
}}
 
}}
  
<span style="font-size: 1.3em;">[[{{{ PersonPage | }}}|{{{ PersonName | }}}]]</span>{{#if: {{#show:{{{ PersonPage | }}}|?AffiliationRaw}}|<br><em>{{#show:{{{ PersonPage | }}}|?AffiliationRaw}}</em>}}
+
<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> }}

Latest revision as of 14:20, 1 February 2023


Page not created.
Click to create, but first make sure it exists on commons.tsadra.org.