Difference between revisions of "Template talk:Item link"

From Team Fortress Wiki
Jump to: navigation, search
(Color options?: new section)
 
 
(2 intermediate revisions by 2 users not shown)
Line 25: Line 25:
  
 
I tried making the item links in [https://wiki.teamfortress.com/w/index.php?title=Template:Smissmas_2018_Nav&oldid=2382876 this navbox] white (as well as the dots separating them) so that reading it would be easier as well, but I always ended up breaking it (not to mention the code became hard to understand). Having an option like the one in <code><nowiki>{{class link}}</nowiki></code> would certainly make this an easier job. - [[User:BrazilianNut|BrazilianNut]] ([[User talk:BrazilianNut|talk]]) 02:18, 15 December 2019 (UTC)
 
I tried making the item links in [https://wiki.teamfortress.com/w/index.php?title=Template:Smissmas_2018_Nav&oldid=2382876 this navbox] white (as well as the dots separating them) so that reading it would be easier as well, but I always ended up breaking it (not to mention the code became hard to understand). Having an option like the one in <code><nowiki>{{class link}}</nowiki></code> would certainly make this an easier job. - [[User:BrazilianNut|BrazilianNut]] ([[User talk:BrazilianNut|talk]]) 02:18, 15 December 2019 (UTC)
 +
 +
== Link Insertion Template ==
 +
 +
shouldn't this be in [[:Category:Link insertion templates]]? (in addition to its other categories, that is.) I'd add it myself, but the page is protected. [[User:Kestrelguy|Kestrelguy]] ([[User talk:Kestrelguy|talk]]) 18:49, 5 September 2021 (UTC)
 +
 +
== Option for prefix ==
 +
 +
Would it be possible to add an option to include a prefix in the link, so instead of something like
 +
 +
<code><nowiki>[[Well-Rounded Rifleman|The Well-Rounded Rifleman]]</nowiki></code>, we can have something simpler like<br>
 +
<code><nowiki>{{item link|Well-Rounded Rifleman|prefix=The}}</nowiki></code>?
 +
 +
 +
This may not shorten things a lot in English, but would help greatly in translantions for languages such as Spanish, Italian, and Portuguese (both PT and PT-BR), where instead of
 +
 +
<code><nowiki>[[Well-Rounded Rifleman/pt-br|O Atirador Completo]]</nowiki></code> or<br>
 +
<code><nowiki>[[Well-Rounded Rifleman/pt-br|O {{item name|Well-Rounded Rifleman}}]]</nowiki></code> (both of which are now frequently used in patch notes), it could be just<br>
 +
<code><nowiki>{{item link|Well-Rounded Rifleman|prefix=O}}</nowiki></code>.
 +
 +
- [[User:BrazilianNut|BrazilianNut]] ([[User talk:BrazilianNut|talk]]) 11:21, 10 January 2025 (UTC)
 +
 +
:A better solution would be "Full item link" that also includes Taunt: and other lang articles.<br>[[File:BLU Wiki Cap.png|20px|link=List of Wiki Cap owners]] {{!}} [[Help:Group rights|<span style="color:green;font-family:TF2 Build;">s</span>]] {{!}} [[User:GrampaSwood|<font color="DB9C1F">GrampaSwood</font>]] [[File:PraisetheSun.png|20px|alt=Praise the Sun!]] ([[User talk:GrampaSwood|<font color="DB9C1F">talk</font>]]) ([[Special:Contributions/GrampaSwood|<font color="DB9C1F">contribs</font>]]) 11:40, 10 January 2025 (UTC)

Latest revision as of 11:41, 10 January 2025

Color options?

As far as I know, the only ways to change the color of an item link's font are:

  • [[Example|<font color="X">Example</font>]]
  • [[Example|<span style="color:X">Example</span>]]

It gets bigger if you make it a link to a translated article...

  • [[Example/es|<font color="X">Ejemplo</font>]]
  • [[Example/es|<span style="color:X">Ejemplo</span>]]

...and even bigger if you make it a link with automatic translation (for something like a template).

  • [[Example{{if lang}}|<font color="X">{{item name|Example}}</font>]]
  • [[Example{{if lang}}|<span style="color:X">{{item name|Example}}</span>]]


Meanwhile, {{class link}} has a "built-in" color=X option that allows us to change the link's color much more easily - just type in a color's name ("yellow", "lime" etc) or code, and there we go.

Instead of [[Class{{if lang}}|<font color="X">{{class name|class}}</font>]]
we can just have {{class link|class|color=X}} (and it works in any language).

Now, please compare these two versions of the same table:

I think it goes without saying that the white text is easier to read than the blue text.

I tried making the item links in this navbox white (as well as the dots separating them) so that reading it would be easier as well, but I always ended up breaking it (not to mention the code became hard to understand). Having an option like the one in {{class link}} would certainly make this an easier job. - BrazilianNut (talk) 02:18, 15 December 2019 (UTC)

Link Insertion Template

shouldn't this be in Category:Link insertion templates? (in addition to its other categories, that is.) I'd add it myself, but the page is protected. Kestrelguy (talk) 18:49, 5 September 2021 (UTC)

Option for prefix

Would it be possible to add an option to include a prefix in the link, so instead of something like

[[Well-Rounded Rifleman|The Well-Rounded Rifleman]], we can have something simpler like
{{item link|Well-Rounded Rifleman|prefix=The}}?


This may not shorten things a lot in English, but would help greatly in translantions for languages such as Spanish, Italian, and Portuguese (both PT and PT-BR), where instead of

[[Well-Rounded Rifleman/pt-br|O Atirador Completo]] or
[[Well-Rounded Rifleman/pt-br|O {{item name|Well-Rounded Rifleman}}]] (both of which are now frequently used in patch notes), it could be just
{{item link|Well-Rounded Rifleman|prefix=O}}.

- BrazilianNut (talk) 11:21, 10 January 2025 (UTC)

A better solution would be "Full item link" that also includes Taunt: and other lang articles.
BLU Wiki Cap.png | s | GrampaSwood Praise the Sun! (talk) (contribs) 11:40, 10 January 2025 (UTC)