Difference between revisions of "Template:TextsInPosition"

From Buddha-Nature
((by SublimeText.Mediawiker))
 
((by SublimeText.Mediawiker))
Line 2: Line 2:
 
<div class="position-relative grey-hoverlay py-2" style="border-radius: 5px;">
 
<div class="position-relative grey-hoverlay py-2" style="border-radius: 5px;">
 
<div class="position-relative">{{#widget:PersonPageRoundImage
 
<div class="position-relative">{{#widget:PersonPageRoundImage
|filepath={{filepath:Sutra.jpg|150}}
+
|filepath={{filepath:{{#switch: {{{ 3 | }}}
 +
|Tibetan Text=Text-tile.png
 +
|Sanskrit Text=Sutra.jpg
 +
|Chinese Text=Handwritten_diamond_sutra_zhang_jizhi_song_dynasty_1253.jpg
 +
|
 +
}}|150}}
 
|size=100px
 
|size=100px
 
|depth=1
 
|depth=1
Line 16: Line 21:
 
</div>
 
</div>
 
<div style="text-align: center; margin: .6em auto; font-size: .8em; max-width: 140px;">
 
<div style="text-align: center; margin: .6em auto; font-size: .8em; max-width: 140px;">
<div class="line12">{{#if: {{#show:{{{1}}}|?MainNamePhon}}
+
<div class="line12">{{SUBPAGENAME:{{{1}}}}}</div>
|{{#show:{{{1}}}|?MainNamePhon}}
+
<div class="grey-color" style="font-size: .8em;">{{{ 2 | }}}</div>
|{{#if: {{#show:{{{1}}}|?MainNameSkt}}
 
| {{#show:{{{1}}}|?MainNameSkt}}
 
| {{#if: {{#show:{{{1}}}|?namefirst}} {{#show:{{{1}}}|?namelast}}
 
| {{#show:{{{1}}}|?namefirst}} {{#show:{{{1}}}|?namelast}}
 
| {{#ifexist: {{{1|}}}
 
| {{SUBPAGENAME:{{{1}}}}}
 
| <span style="color: rgb(146, 27, 38);">{{{1}}}</span>
 
}}
 
}}
 
}}
 
}}
 
</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 | {{#replaceset:{{#show:{{{1}}}|?yearbirth}}|/c\. /=}} }} }} {{#if: {{#show:{{{1}}}|?yeardeath}}
 
|~ {{#iferror: {{#time: Y | {{#show:{{{1}}}|?yeardeath}} }} | {{#show:{{{1}}}|?yeardeath}} | {{#time: Y | {{#show:{{{1}}}|?yeardeath}} }} }}
 
|
 
}}</div>
 
|
 
}} }}
 
 
</div>
 
</div>
 
</div>
 
</div>
 
</div>
 
</div>

Revision as of 13:45, 24 February 2021