Template talk:Item link
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.
| s | GrampaSwood (talk) (contribs) 11:40, 10 January 2025 (UTC)