Template:Table tools/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(Adding example)
 
(2 intermediate revisions by 2 users not shown)
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.


{{Todo|Section "Examples and parameters".}}
== Parameters and Examples ==
{{Bug|All buttons on the table tools template will stops working correctly if there's space on the template name. Please use "_" (underscore) instead.}}
{| width="100%" class="unsortable" style="overflow: hidden; border-radius:.4em; border:2px solid #525252"
 
|- bgcolor="#3A3A3A" style="white-space:nowrap"
== Examples ==
! style="width:15%" style="background-color:#4f5559; color:#FFF" | {{Dictionary/common|Param}}
{{Code|<nowiki>{{Table tools|Sdktools}}</nowiki>}}
! style="width:5%" text-align:center" style="background-color:#4f5559; color:#FFF" | {{Dictionary/common|Desc}}
{{Doc/PreviewBlock|{{Table tools|Sdktools}}}}
! style="text-align:center" style="background-color:#4f5559; color:#FFF" | Value
! style="background-color:#4f5559; color:#FFF" | {{Dictionary/common|Previews}}
|-
| bgcolor="#3A3A3A" align="center" | {{Code|style=2|{{Param|1}}}}
| 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>}}<br>{{CodeBlock|margin=5px|<nowiki>{{Table tools|Source games}}</nowiki>}}
| bgcolor="#3A3A3A" | {{Doc/PreviewBlock|{{Table tools|Sdktools}}}}<br>{{Doc/PreviewBlock|{{Table tools|Source_games}}}}<br>{{Doc/PreviewBlock|{{Table tools|Source games}}}}
|}

Latest revision as of 05:03, 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}}

{{Table tools|Source games}}
ViewDiscussEdit templatePurge

ViewDiscussEdit templatePurge

ViewDiscussEdit templatePurge