Template talk:Software: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "== Parameter p == Before <code>p=4</code> comes into use, I'd like to suggest to change it such that <code>p=4</code> delivers the {{tl|game name}} look with no icon and inste...")
 
(Could also use this template to replace {{only}} etc.)
Line 1: Line 1:
== Parameter p ==
== Parameter p ==
Before <code>p=4</code> comes into use, I'd like to suggest to change it such that <code>p=4</code> delivers the {{tl|game name}} look with no icon and instead p=5 delivers the {{tl|game color}}. I'm thinking of sentences that have the game icon at the beginning, like the {{tl|base point}} templates, for example: "{{tf2}} This is a [[point entity]] available in {{game name|name=Team Fortress 2|icon=0}}". --[[User:Popcorn|Popcorn]] ([[User talk:Popcorn|talk]]) 09:38, 4 April 2022 (PDT)
Before <code>p=4</code> comes into use, I'd like to suggest to change it such that <code>p=4</code> delivers the {{tl|game name}} look with no icon and instead p=5 delivers the {{tl|game color}}. I'm thinking of sentences that have the game icon at the beginning, like the {{tl|base point}} templates, for example: "{{tf2}} This is a [[point entity]] available in {{game name|name=Team Fortress 2|icon=0}}". --[[User:Popcorn|Popcorn]] ([[User talk:Popcorn|talk]]) 09:38, 4 April 2022 (PDT)
:Thanks, good solution! By the way, I just realized, that this template would also have the potential to replace the {{tl|in}} templates, for example allow p=only and add the following switch case, however, I'm unsure if all those different but similar expressions (only, since, removed, not, also) would make this template unnecessarily complicated and whether that is useful at all.<br><code><small><nowiki>|only=<span style="background-color:#202020;font-weight:bold;padding:2px;{{border-radius|4px}}"><span title="{{{name}}}" style="color:{{{col|#ADD8E6}}}">(''only'' in [[File:{{{ico}}}|link={{{name}}}{{{suf|}}}|{{{name}}}]])</span></span></nowiki></small></code> --[[User:Popcorn|Popcorn]] ([[User talk:Popcorn|talk]]) 20:12, 4 April 2022 (PDT)

Revision as of 20:12, 4 April 2022

Parameter p

Before p=4 comes into use, I'd like to suggest to change it such that p=4 delivers the {{game name}} look with no icon and instead p=5 delivers the {{game color}}. I'm thinking of sentences that have the game icon at the beginning, like the {{base point}} templates, for example: "Team Fortress 2 This is a point entity available in Template:Game name". --Popcorn (talk) 09:38, 4 April 2022 (PDT)

Thanks, good solution! By the way, I just realized, that this template would also have the potential to replace the {{in}} templates, for example allow p=only and add the following switch case, however, I'm unsure if all those different but similar expressions (only, since, removed, not, also) would make this template unnecessarily complicated and whether that is useful at all.
|only=<span style="background-color:#202020;font-weight:bold;padding:2px;{{border-radius|4px}}"><span title="{{{name}}}" style="color:{{{col|#ADD8E6}}}">(''only'' in [[File:{{{ico}}}|link={{{name}}}{{{suf|}}}|{{{name}}}]])</span></span> --Popcorn (talk) 20:12, 4 April 2022 (PDT)