Knowledge (XXG)

Template:Ifnoteq then show

Source 📝

21: 50:
This is useful when the first parameter is a {{#invoke: }} of a Lua module that returns a value for which a specific exception is required. Because it uses the {{#invoke: }} just once, it simplifies the coding of infoboxes, for example.
47:
This template tests whether the first unnamed parameter is equal to the second unnamed parameter and returns the third unnamed parameter if it does. Otherwise it returns the first unnamed parameter.
151: 36: 184: 147: 32: 40: 133: 96:{{Ifnoteq then show|{{#invoke:WikidataIB |getValue |P17 |qid=Q42462 |fwd=ALL |osd=no |rank=best |noicon=true}}|United Kingdom|UK}} 200: 125:{{Ifnoteq then show|{{#invoke:WikidataIB |getValue |P17 |qid=Q60 |fwd=ALL |osd=no |rank=best |noicon=true}}|United States|USA}} 180: 141: 28: 81: 110: 103: 74: 60: 137: 90:{{#invoke:WikidataIB |getValue |P17 |qid=Q42462 |fwd=ALL |osd=no |rank=best |noicon=true}} 119:{{#invoke:WikidataIB |getValue |P17 |qid=Q60 |fwd=ALL |osd=no |rank=best |noicon=true}} 194: 67: 66:
for an article about a city. We may wish to use the abbreviation "USA" in place of "
15: 172: 164: 160: 157:Editors can experiment in this template's sandbox 8: 7: 14: 59:An infobox field may return the 19: 142:Template:Ifnoteq then show/doc 1: 217: 131: 185:Subpages of this template 201:If-then-else templates 179:Add categories to the 24:Template documentation 114: 107: 85: 78: 64: 208: 176: 168: 155: 126: 120: 112: 105: 97: 92:→ United Kingdom 91: 83: 76: 62: 44: 25: 23: 22: 216: 215: 211: 210: 209: 207: 206: 205: 191: 190: 189: 188: 178: 170: 158: 156: 145: 130: 124: 121:→ United States 118: 95: 89: 57: 45: 26: 20: 18: 12: 11: 5: 214: 212: 204: 203: 193: 192: 169:and testcases 129: 128: 122: 116: 111:New York City 100: 99: 93: 87: 56: 53: 17: 16: 13: 10: 9: 6: 4: 3: 2: 213: 202: 199: 198: 196: 186: 182: 174: 166: 162: 153: 149: 143: 139: 135: 134:documentation 123: 117: 115: 108: 102: 101: 94: 88: 86: 79: 73: 72: 71: 69: 68:United States 65: 54: 52: 48: 42: 38: 34: 30: 58: 49: 46: 138:transcluded 39:] [ 35:] [ 31:] [ 132:The above 183:subpage. 195:Category 104:country 84:(Q42462) 75:country 61:country 163:| 152:history 150:| 37:history 177:pages. 173:create 165:mirror 161:create 140:from 127:→ USA 113:(Q60) 106:(P17) 82:York 77:(P17) 63:(P17) 55:Usage 43:] 41:purge 27:[ 181:/doc 148:edit 109:for 98:→ UK 80:for 33:edit 29:view 136:is 70:". 197:: 144:. 187:. 175:) 171:( 167:) 159:( 154:) 146:(

Index

view
edit
history
purge
country (P17)
United States
country (P17)
York (Q42462)
country (P17)
New York City (Q60)
documentation
transcluded
Template:Ifnoteq then show/doc
edit
history
create
mirror
create
/doc
Subpages of this template
Category
If-then-else templates

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.