Template:Table tools/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(New examples, and also added parameter section and table itself.)
(Bug fixed, now supports spaces.)
Line 2: Line 2:
This template is intended to be used in template tables, it adds a button which leads to the template page (including talk page) itself, or allows you to edit the template directly. The purge button will clear the cache of the page that you are currently on, to reload the recently edited template.
This template is intended to be used in template tables, it adds a button which leads to the template page (including talk page) itself, or allows you to edit the template directly. The purge button will clear the cache of the page that you are currently on, to reload the recently edited template.


{{Bug|All buttons on the table tools template will stops working correctly if there's space on the template name. Please use "_" (underscore) instead.}}
== Parameters and Examples ==
== Parameters and Examples ==
{| width="100%" class="unsortable" style="overflow: hidden; border-radius:.4em; border:2px solid #525252"
{| width="100%" class="unsortable" style="overflow: hidden; border-radius:.4em; border:2px solid #525252"
Line 12: Line 11:
|-
|-
| bgcolor="#3A3A3A" align="center" | {{Code|style=2|{{Param|1}}}}
| bgcolor="#3A3A3A" align="center" | {{Code|style=2|{{Param|1}}}}
| bgcolor="#3A3A3A" align="center" | Template name.<br>{{Important|Template with spacing between text must have "_" (underscore),<br>otherwise the button will stops working and rendering correctly.}}
| bgcolor="#3A3A3A" align="center" | Template name.
| bgcolor="#3A3A3A" | {{CodeBlock|margin=5px|<nowiki>{{Table tools|Sdktools}}</nowiki>}}<Br>{{CodeBlock|margin=5px|<nowiki>{{Table tools|Source_games}} </nowiki>}}
| bgcolor="#3A3A3A" | {{CodeBlock|margin=5px|<nowiki>{{Table tools|Sdktools}}</nowiki>}}<Br>{{CodeBlock|margin=5px|<nowiki>{{Table tools|Source_games}} </nowiki>}}
| bgcolor="#3A3A3A" | {{Doc/PreviewBlock|{{Table tools|Sdktools}}}}<br>{{Doc/PreviewBlock|{{Table tools|Source_games}}}}
| bgcolor="#3A3A3A" | {{Doc/PreviewBlock|{{Table tools|Sdktools}}}}<br>{{Doc/PreviewBlock|{{Table tools|Source_games}}}}
|}
|}

Revision as of 05:01, 14 August 2025

Edit-copy.png
This is a documentation subpage for Template:Table tools.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

This template is intended to be used in template tables, it adds a button which leads to the template page (including talk page) itself, or allows you to edit the template directly. The purge button will clear the cache of the page that you are currently on, to reload the recently edited template.

Parameters and Examples

Parameter Description Value Previews
{{{1}}} Template name.
{{Table tools|Sdktools}}

{{Table tools|Source_games}}
ViewDiscussEdit templatePurge

ViewDiscussEdit templatePurge