Module:T-CountryHub: Difference between revisions
// via Wikitext Extension for VSCode Tag: Manual revert |
Maintenance update // via Wikitext Extension for VSCode |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 83: | Line 83: | ||
return renderTable(data, columns) | return renderTable(data, columns) | ||
end | end | ||
local errorContext = ErrorHandling.createContext("T-CountryHub") | local errorContext = ErrorHandling.createContext("T-CountryHub") | ||
| Line 211: | Line 187: | ||
render = function(template, args) | render = function(template, args) | ||
return '<div class="country-hub-feature-banner">' .. | return '<div class="country-hub-feature-banner">' .. | ||
'<strong>Country Hubs</strong> have been enabled as a feature preview | '<strong>Country Hubs</strong> have been enabled as a feature preview and are still under testing.' .. | ||
' | ' Contribute more knowledge to our database so that they can keep growing!' .. | ||
'</div>' | '</div>' | ||
end | end | ||
| Line 295: | Line 271: | ||
if not foundMatch then | if not foundMatch then | ||
ISOCText = string.format('[[Internet Society %s Chapter]]', args.has_country) | ISOCText = string.format('[[Internet Society %s Chapter]]', args.has_country) | ||
end | end | ||
| Line 356: | Line 319: | ||
:tag('th'):wikitext('ISOC chapter'):done() | :tag('th'):wikitext('ISOC chapter'):done() | ||
:tag('td'):wikitext(ISOCText):done() | :tag('td'):wikitext(ISOCText):done() | ||
:done() | :done() | ||