Jump to content

Template:Featured: Difference between revisions

From TOE-E Archive
No edit summary
No edit summary
Line 1: Line 1:
<noinclude>
<noinclude>
= Featured Template =
= Featured Template =
Use this to spotlight a branch on the homepage or elsewhere.
Used by an SMW #ask query to render one featured branch.


== Usage ==
Supports BOTH named args (link, abstract) and positional args (1=link, 2=abstract).
* {{Featured
  |title=Branch:0.0.3
  |abstract=Introduces the first cross-domain integration of physics and cognition.
  |link=Branch:0.0.3
}}
</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);">
<!-- Determine the link target (named or positional) -->
  <b>[[{{{link}}}|{{PAGENAME:{{{link}}}}}]]</b><br/>
{{#if:{{{link|{{{1|}}}}}}|
   <div style="margin-top:4px;">{{{abstract|}}}</div>
  <!-- If link provided -->
</div>
  <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|{{{1}}}}}}|{{#titleparts:{{{link|{{{1}}}}}}|-1}}]]</b><br/>
    <div style="margin-top:4px;">{{{abstract|{{{2|}}}}}}</div>
  </div>
|
  <!-- If NO link provided -->
   <div style="border:1px solid #ccc; background:#f9f9f9; padding:12px; margin:8px 0; box-shadow:0 1px 4px rgba(0,0,0,.1);">
    <b><span style="color:#999;">(no page selected)</span></b><br/>
    <div style="margin-top:4px;">{{{abstract|{{{2|}}}}}}</div>
  </div>
}}
</includeonly>
</includeonly>

Revision as of 17:50, 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).