Template talk:Attribute

From Guild Wars 2 Wiki
Jump to navigationJump to search
+158
 Power.png Power
+68
 Vitality.png Vitality

Thoughts on creating an option to display it like the above? (wrapping the number and the % sign if its there in a min width div, where the min-width+align right is only set if you've set something like {{{display}}} = block) -Chieftain AlexUser Chieftain Alex sig.png 01:15, 20 December 2013 (UTC)

I'd prefer to have format it using a class like ingredients.--Relyk ~ talk < 04:20, 20 December 2013 (UTC)
you'd still have to wrap all the invocations in a div with the equivalent of the "ingredients" class, and because this is a line by line template, there would be a div on each line... and if you're putting a div on each line, you might as well put the style inline rather than cluttering the css. -Chieftain AlexUser Chieftain Alex sig.png 10:08, 20 December 2013 (UTC)
really I can't think of a situation where I wouldn't want it aligning (k we lose a few px on a few tables). -Chieftain AlexUser Chieftain Alex sig.png 13:03, 31 December 2013 (UTC)
You're trying to complicate it, if we want to align the text for listing a group of attributes, that can be handled in a separate template. This template is just an icon template. Was thinking {{prefix attributes}} could be worked for displaying a custom list of attributes since it needs to be aligned anyways. I can't think of a case where we are listing more than 3 aligned attributes unless having that capability should be available.--Relyk ~ talk < 15:58, 31 December 2013 (UTC)
Is this ever used inline? I'm pretty sure it's only ever used block-level for a list of attributes, so I agree with Alex - there's no reason not to change this to always align the numbers. However, I disagree with him on using inline styles - if a style is used repeatedly, it should be converted to a class. —Dr Ishmael User Dr ishmael Diablo the chicken.png 16:01, 31 December 2013 (UTC)
Hmm ok then. Ideas on name for class? "attribute-block" is my suggestion. -Chieftain AlexUser Chieftain Alex sig.png 16:25, 31 December 2013 (UTC)
I added it, and it works fine, but I'm wondering if minwidth is a bit big. perhaps 30px would have been alright (I set it for the widest characters "+10%")
+251 Power.png Power
+179 Precision.png Precision
+179 Ferocity.png Ferocity
-Chieftain AlexUser Chieftain Alex sig.png 10:55, 1 January 2014 (UTC)
and amusingly, I think that it looks better without the block formatting in {{item variant table row}}. (without: User:Chieftain Alex/sandbox. with: Hunter's Short Bow). this might be due to the placement of the uslot item though (if it were within another column it would look fine) -Chieftain AlexUser Chieftain Alex sig.png 11:00, 1 January 2014 (UTC)

Blurry icons[edit]

Can we please make attribute icons crispy for the template's default 20px? As crispy as <Profession>_tango_icon_20px.png --BryghtShadow (talk) 10:32, 14 November 2019 (UTC)