Difference between revisions of "Template:M"

From Kerbal Space Program Wiki
Jump to: navigation, search
Line 1: Line 1:
{{#ifeq: {{{3|{{{version|old}}}}}}|new|[[File:{{#ifeq: {{{2|{{{color|black}}}}}}|green|Green money.png|Black money.png}}|10px|link=]]<span style="color:#{{#ifeq: {{{2|{{{color|black}}}}}}|green|A1BC54|000000}}">{{#ifeq: {{{2|{{{color|black}}}}}}|green|'''{{{1}}}'''|{{{1}}}}}</span>|<span style="color:#{{{#ifeq: {{{2|{{{color|black}}}}}}|green|A1BC54|000000}}">{{#ifeq: {{{2|{{{color|black}}}}}}|green|'''{{{1}}}¤'''|{{{1}}}¤}}</span>}}
+
{{#ifeq: {{{3|{{{version|old}}}}}}|new|[[File:{{#ifeq: {{{2|{{{color|black}}}}}}|green|Green money.png|Black money.png}}|10px|link=]]<span style="color:#{{#ifeq: {{{2|{{{color|black}}}}}}|green|A1BC54|000000}}">{{#ifeq: {{{2|{{{color|black}}}}}}|green|'''{{{1}}}'''|{{{1}}}}}</span>|<span style="color:#{{{#ifeq: {{{2|{{{color|black}}}}}}|green|A1BC54|000000}}">{{#ifeq: {{{2|{{{color|black}}}}}}|green|'''{{{1}}}¤'''|{{{1}}}¤}}</span>}}<noinclude>
 +
A template for writing prices.
 +
== Usage ==
 +
<nowiki>{{m|</nowiki><abbr title="The displayed cost">''cost''</abbr>|<abbr title="The color of the cost and the sign">''color''</abbr>|<abbr title="The version of cost. See ''Available version''">''version''</abbr><nowiki>}}</nowiki><br/>
 +
For exemple, if you want to write "240" with the new type, write <tt><nowiki>{{m|240||new}}</nowiki></tt>.<br/>
 +
The result: {{m|240||new}}
 +
== Available versions ==
 +
*<tt>old</tt> (default type): Old version, with the old sign (¤). The sign is placed after the cost.
 +
**A green version of it exists.
 +
*<tt>new</tt>: New version from [[0.24]], with the new sign: [[File:Black money.png|12px|link=]]. The sign is placed before the cost.
 +
**A green version of it exists. The sign take the green color too.

Revision as of 17:59, 4 September 2014

{{{1}}}¤ A template for writing prices.

Usage

{{m|cost|color|version}}
For exemple, if you want to write "240" with the new type, write {{m|240||new}}.
The result: Black money.png240

Available versions

  • old (default type): Old version, with the old sign (¤). The sign is placed after the cost.
    • A green version of it exists.
  • new: New version from 0.24, with the new sign: Black money.png. The sign is placed before the cost.
    • A green version of it exists. The sign take the green color too.