Editing Template talk:VP

Jump to: navigation, search

Warning: You are not logged in.

Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 4: Line 4:
 
=== Problems ===
 
=== Problems ===
 
==== Scaled variants ====
 
==== Scaled variants ====
Scaled variants of the template don't match their correponding scaled variants of the {{Cost}} icon.
+
Scaled variants of the template don't match their correponding scaled variants of the{{Cost}} icon.
 
* That results in weird looking instances where both icons are displayed close to each other (e.g. [[Harem]]).
 
* That results in weird looking instances where both icons are displayed close to each other (e.g. [[Harem]]).
 
* The problem was fixed for all instances in version tables with a rather verbose form: <tt><nowiki><span style="font-family:Times New Roman; font-size:250%;">'''2'''[[File:VP.png|27px|bottom]]</span></nowiki></tt>
 
* The problem was fixed for all instances in version tables with a rather verbose form: <tt><nowiki><span style="font-family:Times New Roman; font-size:250%;">'''2'''[[File:VP.png|27px|bottom]]</span></nowiki></tt>
Line 20: Line 20:
 
==== Usage ====
 
==== Usage ====
 
The recommended usage of the template is changed to use ''amount'' per default. That way all problems from above can be handled internally and editors don't have to care.
 
The recommended usage of the template is changed to use ''amount'' per default. That way all problems from above can be handled internally and editors don't have to care.
* If ''size'' is omitted it is considered to be displayed inline with text. In that case ''amount'' is styled like the text around it and the editor has to take care of differing font weight if needed (e.g. <tt><nowiki>{{VP|'''2'''}}</nowiki></tt> for bold).
+
* If ''size'' is omitted it is considered to be displayed inline with text. In that case ''amount'' is styled like the text around it and the editor has to take care of differing font styles if needed (e.g. <tt><nowiki>{{VP|'''2'''}}</nowiki></tt> for bold).
* If ''size'' is given it is considered to be displayed separately from text (e.g. [[Harem]]). In that case an editor only has to write e.g. <tt><nowiki>{{VP|2|l}}</nowiki></tt> and all styling (font family, font size, font style, font weight) is done by the template to match the corresponding {{Cost}} icon.
+
* If ''size'' is given it is considered to be displayed separately from text (e.g. [[Harem]]). In that case an editor only has to write e.g. <tt><nowiki>{{VP|2|l}}</nowiki></tt> and all styling (font family, font size, font style) is done by the template to match the corresponding {{Cost}} icon.
 
* Independet of ''size'' the template ensures a non-breaking behavior and a correct spacing between ''amount'' and icon.
 
* Independet of ''size'' the template ensures a non-breaking behavior and a correct spacing between ''amount'' and icon.
  
Line 28: Line 28:
 
* All changes are implemented in a backwards compatible way. This means that all different usage forms of this template that already exist throughout the wiki will still work (see [[Template:VP/doc#Backwards compatibility]] for different usage forms). Therefore existing usages can but don't have to be updated.
 
* All changes are implemented in a backwards compatible way. This means that all different usage forms of this template that already exist throughout the wiki will still work (see [[Template:VP/doc#Backwards compatibility]] for different usage forms). Therefore existing usages can but don't have to be updated.
  
[[User:TaDe|TaDe]] ([[User talk:TaDe|talk]]) 12:23, 21 August 2022 (EDT)<br>
+
[[User:TaDe|TaDe]] ([[User talk:TaDe|talk]]) 12:23, 21 August 2022 (EDT)
Edited: [[User:TaDe|TaDe]] ([[User talk:TaDe|talk]]) 16:03, 22 August 2022 (EDT)
+

Please note that all contributions to DominionStrategy Wiki are considered to be released under the Creative Commons Attribution Non-Commercial Share Alike (see DominionStrategy Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)

Templates used on this page:

Personal tools
Namespaces

Variants
Views
Actions
Navigation
Toolbox