Template:Featured: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
= Featured Template = | = Featured Template = | ||
Used by an SMW #ask query to render one featured branch. | |||
Supports BOTH named args (link, abstract) and positional args (1=link, 2=abstract). | |||
</noinclude> | </noinclude> | ||
<includeonly> | <includeonly> | ||
<div style="border:1px solid #ccc; background:#f9f9f9; padding:12px; margin:8px 0; box-shadow:0 1px 4px rgba(0,0,0,.1);"> | <div style="border:1px solid #ccc; background:#f9f9f9; padding:12px; margin:8px 0; box-shadow:0 1px 4px rgba(0,0,0,.1);"> | ||
<b>[[{{{link}}}|{{ | <b>[[{{{link|{{{1}}}}}}|{{#if:{{#titleparts:{{{link|{{{1}}}}}}|-1}}|{{#titleparts:{{{link|{{{1}}}}}}|-1}}|{{{link|{{{1}}}}}}}}]]</b><br/> | ||
<div style="margin-top:4px;">{{{abstract|}}}</div> | <div style="margin-top:4px;">{{{abstract|{{{2|}}}}}}</div> | ||
</div> | </div> | ||
</includeonly> | </includeonly> | ||
Latest revision as of 18:09, 21 August 2025
Featured Template
Used by an SMW #ask query to render one featured branch. Supports BOTH named args (link, abstract) and positional args (1=link, 2=abstract).