Difference between revisions of "Template:Ranges"

From Underrail Wiki
Jump to navigation Jump to search
(template)
 
m (Protected "Template:Ranges": template (‎[edit=autoconfirmed] (indefinite) ‎[move=autoconfirmed] (indefinite)))
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
{{#if:<noinclude>string</noinclude>{{{sight|}}} | {{{sight}}}<small> (sight) </small> | }}{{
 
{{#if:<noinclude>string</noinclude>{{{sight|}}} | {{{sight}}}<small> (sight) </small> | }}{{
#if:<noinclude>string</noinclude>{{{attack|}}}  | {{{attack}}}<small> (attack) </small> | }}{{
+
#if:<noinclude>string</noinclude>{{{attack|}}}  | {{{attack}}} {{#if:<noinclude>string</noinclude>{{{optimal|}}} | ({{{optimal}}}) | }}<small> (attack/optimal) </small> | }}<noinclude>
#if:<noinclude>string</noinclude>{{{optimal|}}} | {{{optimal}}}<small> (optimal) </small> | }}<noinclude>
 
  
 
{{documentation}}</noinclude>
 
{{documentation}}</noinclude>

Latest revision as of 20:55, 29 January 2018

{{{sight}}} (sight) {{{attack}}} ({{{optimal}}}) (attack/optimal)

Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit Template:Ranges/doc to view this documentation. (edit) (How does this work?)
Description
This template is used for inline list of ranges inside character infoboxes.
Syntax
Insert this template with {{ranges|sight=|attack=|optimal=}} and fill in known parameters. All are optional.
Example
{{ranges|sight=8|attack=10|optimal=7}} results in 8 (sight) 10 (7) (attack/optimal)
{{ranges|sight=|attack=10|optimal=7}} results in 10 (7) (attack/optimal)
{{ranges|sight=8|attack=10|optimal=}} results in 8 (sight) 10 (attack/optimal)