Knowledge (XXG)

Template:Ifnoteq then show/doc

Source 📝

31: 64:
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.
61:
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.
38: 110:{{Ifnoteq then show|{{#invoke:WikidataIB |getValue |P17 |qid=Q42462 |fwd=ALL |osd=no |rank=best |noicon=true}}|United Kingdom|UK}} 139:{{Ifnoteq then show|{{#invoke:WikidataIB |getValue |P17 |qid=Q60 |fwd=ALL |osd=no |rank=best |noicon=true}}|United States|USA}} 52: 46: 17: 95: 41: 124: 117: 88: 74: 104:{{#invoke:WikidataIB |getValue |P17 |qid=Q42462 |fwd=ALL |osd=no |rank=best |noicon=true}} 133:{{#invoke:WikidataIB |getValue |P17 |qid=Q60 |fwd=ALL |osd=no |rank=best |noicon=true}} 81: 80:
for an article about a city. We may wish to use the abbreviation "USA" in place of "
55:
and other content that is not part of the original template page.
25: 8: 7: 51:It may contain usage information, 24: 73:An infobox field may return the 29: 1: 159: 47:Template:Ifnoteq then show 18:Template:Ifnoteq then show 44: 128: 121: 99: 92: 78: 59: 58: 36: 150: 140: 134: 126: 119: 111: 106:→ United Kingdom 105: 97: 90: 76: 33: 32: 26: 158: 157: 153: 152: 151: 149: 148: 147: 145: 138: 135:→ United States 132: 109: 103: 71: 50: 30: 22: 21: 20: 12: 11: 5: 156: 154: 143: 142: 136: 130: 125:New York City 114: 113: 107: 101: 70: 67: 57: 56: 34: 23: 15: 14: 13: 10: 9: 6: 4: 3: 2: 155: 146: 137: 131: 129: 122: 116: 115: 108: 102: 100: 93: 87: 86: 85: 83: 82:United States 79: 68: 66: 62: 54: 48: 43: 40: 39:documentation 35: 28: 27: 19: 144: 72: 63: 60: 53:categories 37:This is a 118:country 98:(Q42462) 89:country 75:country 42:subpage 141:→ USA 127:(Q60) 120:(P17) 96:York 91:(P17) 77:(P17) 69:Usage 16:< 123:for 112:→ UK 94:for 45:for 84:". 49:.

Index

Template:Ifnoteq then show
documentation
subpage
Template:Ifnoteq then show
categories
country (P17)
United States
country (P17)
York (Q42462)
country (P17)
New York City (Q60)

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