Template:AGW Category card: Difference between revisions
Install reviewed berry homepage design |
Update category card for redesigned homepage |
||
| Line 1: | Line 1: | ||
<includeonly><div class="agw-card"> | <includeonly><div class="agw-card"> | ||
<div class="agw-card-disc" aria-hidden="true"><span class="agw-icon agw-icon-{{{icon|book}}}"></span></div> | <div class="agw-card-disc" aria-hidden="true"><span class="agw-icon agw-icon-{{{icon|book}}}"></span></div> | ||
<h2>[[:{{{destination|Project:Browse}}}|{{{label| | <h2>[[:{{{destination|Project:Browse}}}|{{{label|All topics}}}]]</h2> | ||
<p>{{{description|Browse the encyclopedia}}}</p> | <p>{{{description|Browse the encyclopedia}}}</p> | ||
</div></includeonly><noinclude> | </div></includeonly><noinclude> | ||
Discovery card. Parameters: icon (name in the repository icon inventory), label, description, destination (page title, no leading colon). One link and one tab stop per card. Example: <nowiki>{{AGW Category card|icon=book|label= | Discovery card. Its label is an H2 because the cards follow the page H1 directly. Parameters: icon (name in the repository icon inventory), label, description, destination (page title, no leading colon). One link and one tab stop per card; the whole card is the link target. Keep labels identical to MediaWiki:Sidebar and describe what the destination really lists. Example: <nowiki>{{AGW Category card|icon=book|label=Books|description=Book series, stories, and reading guides|destination=Category:Books}}</nowiki>. Preview: [[Main Page]]. | ||
</noinclude> | </noinclude> | ||
Latest revision as of 07:34, 9 November 2026
Discovery card. Its label is an H2 because the cards follow the page H1 directly. Parameters: icon (name in the repository icon inventory), label, description, destination (page title, no leading colon). One link and one tab stop per card; the whole card is the link target. Keep labels identical to MediaWiki:Sidebar and describe what the destination really lists. Example: {{AGW Category card|icon=book|label=Books|description=Book series, stories, and reading guides|destination=Category:Books}}. Preview: Main Page.