Template:Check mark/doc

From Existing Railroad Stations in New York State
Jump to navigation Jump to search

{{#ifeq:doc |doc

    | 

{{#ifeq:show |show

         | Template:Mbox
        }}{{#if: |
         |   {{#ifexist:Template:Check mark
                  | [[Category:{{#switch:Template |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
                  |
                 }}
        }}
    | 
   }}

This template is used to create a "check mark" or "tick mark" of variable color and size.

Usage

Code Result
{{Check mark}} {{safesubst:#ifexist:media:{{{colour}}} check.svg [[File:{{{colour}}} check.svg|{{safesubst:#if:|{{{1}}}|23}}px|Check mark|alt={{{colour}}} tick|link=]] Green tick}}Y
{{Check mark|15}} {{safesubst:#ifexist:media:{{{colour}}} check.svg [[File:{{{colour}}} check.svg|{{safesubst:#if:15|15|23}}px|Check mark|alt={{{colour}}} tick|link=]] Green tick}}Y
{{Check mark|color=Purple}} {{safesubst:#ifexist:media:purple check.svg Purple tick Green tick}}Y
{{Check mark|30|color=light green}} {{safesubst:#ifexist:media:light green check.svg light green tick Green tick}}Y

Size

The default image size is 23px. The first unnamed parameter can be used to override this default.

Colors

All colors with a corresponding image file, File:color check.svg, are supported

Color Result
Light green {{safesubst:#ifexist:media:light green check.svg Light green tick Green tick}}Y
Olive green {{safesubst:#ifexist:media:olive green check.svg Olive green tick Green tick}}Y
Red {{safesubst:#ifexist:media:red check.svg Red tick Green tick}}Y
Yellow {{safesubst:#ifexist:media:yellow check.svg Yellow tick Green tick}}Y
Orange {{safesubst:#ifexist:media:orange check.svg Orange tick Green tick}}Y
Blue {{safesubst:#ifexist:media:blue check.svg Blue tick Green tick}}Y
Cornflower blue {{safesubst:#ifexist:media:cornflower blue check.svg Cornflower blue tick Green tick}}Y
Purple {{safesubst:#ifexist:media:purple check.svg Purple tick Green tick}}Y
Black {{safesubst:#ifexist:media:black check.svg Black tick Green tick}}Y

See also

Check and cross marks{{#invoke:Navbar|navbar}}
Check marks Cross marks
{{check mark}} {{safesubst:#ifexist:media:{{{colour}}} check.svg [[File:{{{colour}}} check.svg|{{safesubst:#if:|{{{1}}}|23}}px|Check mark|alt={{{colour}}} tick|link=]] Green tick}}Y {{x mark big}} Red XN
{{tick}} = {{{{#if: |subst:}}tick{{#if:20 ||20}}{{#if: ||{{{3}}}}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||}}}} YesY {{cross}} = {{{{#if: |subst:}}cross{{#if:20 ||20}}{{#if: ||{{{3}}}}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||}}}} File:X mark.svgN
{{aye}} Green tickY {{nay}} Red XN
{{ya}} rowspan="{{{rowspan}}}"}} |Yes {{na}} rowspan="{{{rowspan}}}"}} | No
{{check mark-n}} YesY {{x mark-n}} NoN
{{y&}} {{n&}}
{{Chk}} {{xed box}} (X'ed box)
{{checked box}}

(checked box)

Other marks
{{n.b.}} Nota bene* {{hmmm}} ????
{{bang}} File:Symbol opinion vote.svg-
Most of the templates above are fully sortable in a class="sortable" table (each check mark is assigned an undisplayed "Y" and each cross mark an undisplayed "N").

{{#ifeq:doc |see also

    | 

{{#ifeq:show |show

         | Template:Mbox
        }}{{#if: |
         |   {{#ifexist:Template:Check mark
                  | [[Category:{{#switch:Template |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
                  |
                 }}
        }}
    | 
   }}{{#invoke:Navbar|navbar}}

Inline icon templates by shape and color

Any of the following inline, comment-level templates can be converted into {{Resolved}}-style hatnotes by using {{Resbox}} to put a box around the icon and text.

{{#if: |{{{content}}}

}}{{#ifeq: |yes

   |}}

{{safesubst:#invoke:aligned table|table}} {{safesubst:#invoke:aligned table|table}} {{safesubst:#invoke:aligned table|table}} {{safesubst:#invoke:aligned table|table}} {{safesubst:#invoke:aligned table|table}} {{safesubst:#invoke:aligned table|table}} {{safesubst:#invoke:aligned table|table}} {{safesubst:#invoke:aligned table|table}} {{safesubst:#invoke:aligned table|table}} {{safesubst:#invoke:aligned table|table}} {{safesubst:#invoke:aligned table|table}} {{safesubst:#invoke:aligned table|table}} {{safesubst:#invoke:aligned table|table}} {{safesubst:#invoke:aligned table|table}} {{safesubst:#invoke:aligned table|table}} {{safesubst:#invoke:aligned table|table}} {{safesubst:#invoke:aligned table|table}}

Others

{{#if: |{{{content}}}

}}{{#ifeq: |yes

   |}}

{{safesubst:#invoke:aligned table|table}} {{safesubst:#invoke:aligned table|table}}

Multi-sign templates

The following templates implement several icons:

Others