Difference between revisions of "Template:Checkmark"

From Freephile Wiki
Jump to navigation Jump to search
(Created page with "<includeonly>{{#ifeq:{{{1|+}}}|{{{v|-}}}| [[File:Gtk-{{{1}}}.svg|16px]] | 16px }}</includeonly> <noinclude>The logic works like this:<pre>{{#ifeq:{{{1|yes...")
 
 
Line 1: Line 1:
<includeonly>{{#ifeq:{{{1|+}}}|{{{v|-}}}| [[File:Gtk-{{{1}}}.svg|16px]] | [[File:Gtk-yes.svg|16px]] }}</includeonly>
+
<includeonly>{{#ifeq:{{{1|+}}}|{{{1|-}}}| [[File:Gtk-{{{1}}}.svg|16px]] | [[File:Gtk-yes.svg|16px]] }}</includeonly>
 
<noinclude>The logic works like this:<pre>{{#ifeq:{{{1|yes}}}|{{{1|no}}}| first param was defined (and may be empty) | first param was not defined }}</pre>Call this template with no parameters and you should get a green check mark.  Or, explicitly supply the parameter as 'yes'.  Supplying the parameter as 'no' will produce a red X. Other paramters are undefined unless there is a Gtk-parameter.svg image in this wiki
 
<noinclude>The logic works like this:<pre>{{#ifeq:{{{1|yes}}}|{{{1|no}}}| first param was defined (and may be empty) | first param was not defined }}</pre>Call this template with no parameters and you should get a green check mark.  Or, explicitly supply the parameter as 'yes'.  Supplying the parameter as 'no' will produce a red X. Other paramters are undefined unless there is a Gtk-parameter.svg image in this wiki
  

Latest revision as of 16:56, 30 January 2018

The logic works like this:

{{#ifeq:{{{1|yes}}}|{{{1|no}}}| first param was defined (and may be empty) | first param was not defined }}

Call this template with no parameters and you should get a green check mark. Or, explicitly supply the parameter as 'yes'. Supplying the parameter as 'no' will produce a red X. Other paramters are undefined unless there is a Gtk-parameter.svg image in this wiki

Examples[edit source]

{{checkmark}} or {{checkmark|yes}}

Gtk-yes.svg

{{checkmark|no}}

Gtk-no.svg