Template:MTile: Difference between revisions
From Buddha-Nature
((by SublimeText.Mediawiker)) |
((by SublimeText.Mediawiker)) |
||
| (7 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<div class="m-tile pop-hover | <div class="m-tile pop-hover m-3 position-relative link-no-border"> | ||
<div class="tile-image-wrapper">{{#widget: | <div class="m-tile-image-wrapper">{{#widget:mTileBackImg | ||
|src={{#if: {{{10|}}} | |src={{#if: {{{10|}}} | ||
| {{filepath:{{#titleparts:{{PAGENAME:{{{10}}}}}}}}} | | {{filepath:{{#titleparts:{{PAGENAME:{{{10}}}}}}}}} | ||
| Line 40: | Line 40: | ||
}} | }} | ||
|imageposition=center | |imageposition=center | ||
|classes=tile-image | |classes=m-tile-image | ||
}} | }} | ||
<div class="type-icon mt-auto">{{#switch: {{{18}}} | <div class="type-icon mt-auto">{{#switch: {{{18}}} | ||
| Line 59: | Line 59: | ||
</div> | </div> | ||
</div> | </div> | ||
<div class="tile-content">{{#if: {{{ content | }}} | <div class="m-tile-content">{{#if: {{{ content | }}} | ||
|{{{ content | }}} | |{{{ content | }}} | ||
|{{#ifeq: {{{21|}}} | |{{#ifeq: {{{21|}}} | ||
|Commentary | |Commentary | ||
|<div class="tile-content-header truncate-to-ellipsis">{{#if: {{{22|}}} | {{{22|}}} | {{{13|}}} }}</div>''by {{#arraymap: {{{2}}} | |<div class="m-tile-content-header truncate-to-ellipsis">{{#if: {{{22|}}} | {{{22|}}} | {{{13|}}} }}</div>''by {{#arraymap: {{{2}}} | ||
|; | |; | ||
|@@@ | |@@@ | ||
| Line 69: | Line 69: | ||
|, | |, | ||
}}''<br> | }}''<br> | ||
|<div class="tile-content-header truncate-to-ellipsis">{{#if: {{#show:{{{1}}}|?namelast}} | |<div class="m-tile-content-header truncate-to-ellipsis">{{#if: {{#show:{{{1}}}|?namelast}} | ||
| {{#show:{{{1}}}|?namefirst}} {{#show:{{{1}}}|?namelast}} | | {{#show:{{{1}}}|?namefirst}} {{#show:{{{1}}}|?namelast}} | ||
| {{#if: {{{9|}}} | | {{#if: {{{9|}}} | ||
| Line 84: | Line 84: | ||
| | | | ||
}} | }} | ||
<hr class="tile-divider"> | <hr class="m-tile-divider"> | ||
<div class="tile-description">{{#if: {{#show: {{{1|}}} |?TileDescription }} | <div class="m-tile-description">{{#if: {{#show: {{{1|}}} |?TileDescription }} | ||
| {{#show: {{{1|}}} |?TileDescription }} | | {{#show: {{{1|}}} |?TileDescription }} | ||
| {{#if: {{{6|}}} | | {{#if: {{{6|}}} | ||
| Line 120: | Line 120: | ||
|?Fulltitletrans | |?Fulltitletrans | ||
|?Fulltitle | |?Fulltitle | ||
}}</div> | }}</div>{{#ifeq: {{{1}}} | ||
| none | |||
| | |||
| {{#widget:OverlayLink | |||
|link=/index.php/{{urlencode:{{{1}}}|WIKI}} | |||
|classes=no-classes | |||
|target=_self | |||
|title={{{1}}} | |||
}} | |||
}} | |||
</div> | </div> | ||