Editing Template:Cost/doc

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 1: Line 1:
 +
{{Large Edits|to clean up its wikitext, fix issues, and add new functionality.}}
 
This template allows translating text cost into graphical cost.
 
This template allows translating text cost into graphical cost.
  
Line 7: Line 8:
 
* <tt><nowiki>{{Cost|?}}</nowiki> →  {{Cost|?}}</tt>
 
* <tt><nowiki>{{Cost|?}}</nowiki> →  {{Cost|?}}</tt>
 
* <tt><nowiki>{{Cost|x}}</nowiki> →  {{Cost|x}}</tt>
 
* <tt><nowiki>{{Cost|x}}</nowiki> →  {{Cost|x}}</tt>
* <tt><nowiki>{{Cost||||P}}</nowiki> →  {{Cost||||P}}</tt>
+
* <tt><nowiki>{{Cost|P}}</nowiki> →  {{Cost|P}}</tt>
* <tt><nowiki>{{Cost|6|||P}}</nowiki> →  {{Cost|6|||P}}</tt>
+
* <tt><nowiki>{{Cost|6P}}</nowiki> →  {{Cost|6P}}</tt>
 
* <tt><nowiki>{{Cost|||8}}</nowiki> →  {{Cost|||8}}</tt>
 
* <tt><nowiki>{{Cost|||8}}</nowiki> →  {{Cost|||8}}</tt>
 
* <tt><nowiki>{{Cost|6||8}}</nowiki> →  {{Cost|6||8}}</tt>
 
* <tt><nowiki>{{Cost|6||8}}</nowiki> →  {{Cost|6||8}}</tt>
* <tt><nowiki>{{Cost|-|||P}}</nowiki> →  {{Cost|-|||P}}</tt>
+
* <tt><nowiki>{{Cost|6P||8}}</nowiki> →  {{Cost|6P||8}}</tt>
* <tt><nowiki>{{Cost|6||8|P}}</nowiki> →  {{Cost|6||8|P}}</tt>
+
* <tt><nowiki>{{Cost||m|-|P}}</nowiki> →  {{Cost||m|-|P}}</tt>
+
 
* <tt><nowiki>{{Cost|5|l}}</nowiki> →  {{Cost|5|l}}</tt>
 
* <tt><nowiki>{{Cost|5|l}}</nowiki> →  {{Cost|5|l}}</tt>
* <tt><nowiki>{{Cost||l||P}}</nowiki> →  {{Cost||l||P}}</tt>
+
* <tt><nowiki>{{Cost|P|l}}</nowiki> →  {{Cost|P|l}}</tt>
 
* <tt><nowiki>{{Cost||l|8}}</nowiki> →  {{Cost||l|8}}</tt>
 
* <tt><nowiki>{{Cost||l|8}}</nowiki> →  {{Cost||l|8}}</tt>
* <tt><nowiki>{{Cost|-|l|-}}</nowiki> →  {{Cost|-|l|-}}</tt>
+
* <tt><nowiki>{{Cost|6P|l|8}}</nowiki> →  {{Cost|6P|l|8}}</tt>
* <tt><nowiki>{{Cost|6|l|8|P}}</nowiki> →  {{Cost|6|l|8|P}}</tt>
+
 
* <tt><nowiki>{{Cost|5|xl}}</nowiki> →  {{Cost|5|xl}}</tt>
 
* <tt><nowiki>{{Cost|5|xl}}</nowiki> →  {{Cost|5|xl}}</tt>
* <tt><nowiki>{{Cost|-|xl|-|P}}</nowiki> →  {{Cost|-|xl|-|P}}</tt>
 
  
==Obsolete Syntax==
+
==New Syntax==
As of June 10th 2024 5:00pm UTC, the old "P" syntax where P is found within the first parameter has been made obsolete in lieu of the new parameterized syntax where the P is separated into a new fourth parameter.<br/>
+
The old "P" syntax where P is found within the first parameter is being made obsolete in lieu of the new parameterized syntax where the P is separated into a new fourth parameter.<br/>
As such, any instances of the "P" syntax are now broken and thus need to be replaced with the new parameterized syntax.
+
Henceforth, any instances of the "P" syntax found should be replaced with the respective parameterized syntax.
 
* <tt><nowiki>{{Cost|6P}}</nowiki> →  <nowiki>{{Cost|6|||P}}</nowiki></tt>
 
* <tt><nowiki>{{Cost|6P}}</nowiki> →  <nowiki>{{Cost|6|||P}}</nowiki></tt>
 
* <tt><nowiki>{{Cost|6P||8}}</nowiki> →  <nowiki>{{Cost|6||8|P}}</nowiki></tt>
 
* <tt><nowiki>{{Cost|6P||8}}</nowiki> →  <nowiki>{{Cost|6||8|P}}</nowiki></tt>
 
* <tt><nowiki>{{Cost|P|l}}</nowiki> →  <nowiki>{{Cost||l||P}}</nowiki></tt>
 
* <tt><nowiki>{{Cost|P|l}}</nowiki> →  <nowiki>{{Cost||l||P}}</nowiki></tt>
 
* <tt><nowiki>{{Cost|6P|l|8}}</nowiki> →  <nowiki>{{Cost|6|l|8|P}}</nowiki></tt>
 
* <tt><nowiki>{{Cost|6P|l|8}}</nowiki> →  <nowiki>{{Cost|6|l|8|P}}</nowiki></tt>
<!-- This section is only to be removed after some time has passed following the deprecation of the old "P" syntax to allow others time to fix any remaining broken instances. -->
+
 
 +
If an instance of <tt><nowiki>{{Cost}}</nowiki></tt> uses the "P" syntax, it will display the following warning.<br/><p style="color:red; display:inline;"><b>[Warning: This Cost Template uses the old "P" syntax, please convert it to the [[Template:Cost#New_Syntax|new parameterized syntax]].]</b></p><p>An instance of the "P" syntax will also file the page it is in under the category titled {{Category:Pages with old "P" syntax}}.</p>
 +
 
 +
 
 +
The syntactical changes also allow for new functionality with the ability to put "-" in the Coin and Debt parameters, allowing the empty Coin and Debt images to be displayed.
 +
* <tt><nowiki>{{Cost|-|||P}}</nowiki> →  {{Cost|-|||P}}</tt>
 +
* <tt><nowiki>{{Cost|||-|P}}</nowiki> →  {{Cost|||-|P}}</tt>
 +
* <tt><nowiki>{{Cost|-||-}}</nowiki> →  {{Cost|-||-}}</tt>
 +
* <tt><nowiki>{{Cost|-||-|P}}</nowiki> →  {{Cost|-||-|P}}</tt>

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