Home
Random
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:Lighthouse tracking
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
local p = {} function p.tracking(frame) local res = '' local isNRHP = false local hasNRHPbox = false local heritage = frame.args.heritage or '' if heritage == '' then elseif (heritage:match('National Register of Historic Places') or heritage:match('NRHP') ) then res = res .. '[[Category:Pages using infobox lighthouse with NRHP heritage]]' isNRHP = true end for k, v in pairs( frame:getParent().args ) do if k and k == 'module' then if v and v:match('<tr') then if v:match('National Register of Historic Places') or v:match('NRHP') or v:match('U.S. Historic district') or v:match('U.S. National Register of Historic Places') then hasNRHPbox = true end end end end if hasNRHPbox == false and isNRHP == true then res = res .. '[[Category:Pages using infobox lighthouse with NRHP heritage|β½]]' end if hasNRHPbox == true and isNRHP == false then res = res .. '[[Category:Pages using infobox lighthouse with NRHP heritage|ΒΆ]]' end return res end return p
Summary:
Please note that all contributions to Stockhub may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Stockhub:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Template used on this page:
Module:Lighthouse tracking/doc
(
edit
)