Template:NavTableCategory/doc: Difference between revisions

Template page
No edit summary
No edit summary
Line 4: Line 4:
== Example ==
== Example ==


Usage:
<code><nowiki>
<code><nowiki>
{{NavTableCategory|tableTitle=Buildings|catName=Large Building|objects={{NavboxIconLink2|Command Center}}{{NavboxIconLink2|name=Human Warehouse}}}}
{{NavTableCategory|tableTitle=Buildings|catName=Large Building|objects={{NavboxIconLink2|Command Center}}{{NavboxIconLink2|name=Human Warehouse}}}}
</nowiki></code>
</nowiki></code>


{{#tag:nowiki|{{NavTableCategory|tableTitle=Buildings|catName=Large Building|objects={{NavboxIconLink2|name=Command Center}}{{NavboxIconLink2|name=Human Warehouse}}}}}}
Result:
<code>{{#tag:nowiki|{{NavTableCategory|tableTitle=Buildings|catName=Large Building|objects={{NavboxIconLink2|name=Command Center}}{{NavboxIconLink2|name=Human Warehouse}}}}}}</code>

Revision as of 02:16, 6 August 2025

Description

Returns an html table row [ category | objects ]

Example

Usage: {{NavTableCategory|tableTitle=Buildings|catName=Large Building|objects={{NavboxIconLink2|Command Center}}{{NavboxIconLink2|name=Human Warehouse}}}}

Result: <tr><td>[[Buildings#Large Building|Large Building]]</td><td><div class="navbox-group"><div>[[File:Command_Center.png|32px|link=Command Center|alt=Command Center]][[Command Center]]</div><div>[[File:Human_Warehouse.png|32px|link=Human Warehouse|alt=Human Warehouse]][[Human Warehouse]]</div></div></td></tr>