Template:Show Article small
| |
{| style="float:{{{align|left}}}; width:{{{width|162px}}}; padding:none; text-align:center;" | <!-- style="font-size: 9px;"| {{#titleparts: {{#sub:{{{Title|}}}| {{#expr: 1+{{#pos:{{{Title|}}} | {{!}} }} }} | -2 }} | -1}} --> {| class="wikitable" style="float:{{{align|left}}}; height:132px; width:{{{width|162px}}}; text-overflow: clip; word-wrap: break-word; margin:3px; vertical-align:top; padding:2px; background-color: WhiteSmoke; box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.2);" | style="height:94px; vertical-align:top; text-overflow: clip; word-wrap: break-word; text-align: left; background-color: WhiteSmoke; font-size: 12px; line-height: 1.3;"|{{#if:{{{Title|{{{Title|}}}}}}|{{#if:{{{#userparam|{{{#userparam|}}}}}}|'''{{#replace:{{{Title|}}}|{{!}}{{{#userparam}}}|{{!}}}}'''|'''{{StrStripLast|{{{Title}}}}}'''}}<br />}}{{{Summary|lots of text (Summary)}}} |} |- {{#if:{{{#userparam|{{{#userparam|}}}}}}|style="height:50px;"}} | | style="vertical-align:top; text-align:center; word-wrap:break-word; margin-bottom:-10px; line-height:0.9em;" | {{#if:{{{Subpages|{{{Subpages|}}}}}}|<small>{{{Subpages}}}</small>}} |}
FLOATING IMAGE <div style="position: absolute; opacity: 0.1;> {{{Image|{{{Image|}}}|[[{{{Image|}}}|]]|}}}</div><div style="position: relative; bottom: 0; left: 0px;">{{{Summary|lots of text (Summary)}}}</div>
if #userparam is set, you get more vertical spacing to enable a list of Subpages (while retaining fixed size grid alignment)
I'm not sure I understand why, but this call will not work:
* {{StrStripPath|{{{Title}}}|{{{#userparam|}}}}}
When it does the exact same thing as:
* {{#replace:{{{Title|}}}|{{!}}{{{#userparam}}}|{{!}}}}
wiki parser macros are like regular expressions: fragile, unreadable and finicky. WOM=Write Only Memory.