Module:Infobox body of water tracking and Module:Infobox body of water tracking/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
imported>Izno
use if preview. maybe having a standard way to indicate the generating template/module would be a good thing
 
imported>Izno
sandbox
 
Line 101: Line 101:
      
      
     if #warnmsg > 0 then
     if #warnmsg > 0 then
    cats = require('Module:If preview')._warning({
if frame:preprocess( "{{REVISIONID}}" ) == "" then
    table.concat(warnmsg, '<br>') .. '<br>(Infobox body of water).'
cats = '<div class="hatnote" style="color:red"><strong>Infobox body of water warning:</strong> ' .. table.concat(warnmsg, '<br>') .. '</div>' .. cats
    }) .. cats
end
     end
     end