Jump to content

Editing Module:Template translation

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.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
-- Dummy "Template translation" module to avoid errors
-- Dummy "Template translation" module to avoid errors
-- This disables multilingual template features, but prevents script errors.
local p = {}
local p = {}


-- Used by some templates to check translation status
-- Some templates call "checkTranslation"
function p.checkTranslation(frame)
function p.checkTranslation(frame)
    -- Return nothing, but no error
     return ''
     return ''
end
end


-- Used by some templates to layout multilingual content
-- Some templates call "layout"
function p.layout(frame)
function p.layout(frame)
    -- Return nothing, but no error
     return ''
     return ''
end
end


-- Used by some templates for main entry point
-- Some templates call "main" (rare, but safe to include)
function p.main(frame)
function p.main(frame)
     return ''
     return ''
end
end


-- Used by license templates to display translated text
-- Must return a table to avoid "nil value" errors
function p.renderTranslatedTemplate(frame)
    -- Return nothing but avoid errors
    return ''
end
 
-- Always return a table to prevent 'nil value' errors
return p
return p
Please note that all contributions to Solarpunk Wiki are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) (see Solarpunk Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, 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. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)

Template used on this page:

Cookies help us deliver our services. By using our services, you agree to our use of cookies.