Template:Substance overview: Difference between revisions

From Whitepill Wisdom Wiki
(Create the shared At a glance card)
 
(Add shared article navigation with category and backlink links)
 
Line 1: Line 1:
<includeonly><div class="wpw-overview" role="note" aria-label="At a glance" style="border:1px solid #a2a9b1; border-radius:.35em; box-sizing:border-box; max-width:32em; margin:0 0 1em; padding:.7em .9em;">
<includeonly><div class="wpw-overview" data-wpw-category="{{{category|Categories}}}" role="group" aria-label="At a glance">
<div style="font-size:1.05em; font-weight:bold; margin-bottom:.35em;">At a glance</div>
<div class="wpw-overview-heading">At a glance</div>
<div style="display:flex; flex-wrap:wrap; align-items:center; gap:.45em 1em;">
<div class="wpw-overview-body">
<div style="flex:1 1 13em; min-width:0;">'''Category''' [[:Category:{{{category|Categories}}}|{{{category|Categories}}}]]{{{details|}}}</div>{{{image|}}}
<div class="wpw-overview-details">'''Category''' [[:Category:{{{category|Categories}}}|{{{category|Categories}}}]]{{{details|}}}</div>{{{image|}}}
</div></div></includeonly><noinclude>
</div>
Add this overview at the top of an article. Set <code>category</code> to its primary category. Use <code>details</code> for a verified symbol, formula or structure link. Use <code>image</code> for a diagram of the exact form shown.
<div class="wpw-overview-navigation"><span class="wpw-related-jump">[[:Category:{{{category|Categories}}}|Related pages]]</span><span class="wpw-backlinks-jump">[[Special:WhatLinksHere/{{FULLPAGENAME}}|Backlinks]]</span></div>
</div></includeonly><noinclude>
Add this overview at the top of an article. Set <code>category</code> to its primary category. Use <code>details</code> for a verified symbol, formula or structure link. Use <code>image</code> for a diagram of the exact form shown. A topic tag uses a normal category link, such as <code><nowiki>[[Category:Topic: Vitamin C]]</nowiki></code>. The reader's related list uses these tags and the primary category.
</noinclude>
</noinclude>

Latest revision as of 19:13, 5 December 2026

Add this overview at the top of an article. Set category to its primary category. Use details for a verified symbol, formula or structure link. Use image for a diagram of the exact form shown. A topic tag uses a normal category link, such as [[Category:Topic: Vitamin C]]. The reader's related list uses these tags and the primary category.