Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Editing Module:TranslationData

From the only original and legitimate Battlestar Wiki: the free-as-in-beer, non-corporate, open-content encyclopedia, analytical reference, and episode guide on all things Battlestar Galactica. Accept neither subpar substitutes nor subpar clones.
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 5: Line 5:
     de = { header = "Maschinelle Übersetzung", body = "Diese Seite wurde ursprünglich maschinell aus dem Englischen übersetzt. Bitte hilf uns, sie natürlicher zu gestalten!", edit = "Übersetzung bearbeiten", source = "Englische Originalversion" },
     de = { header = "Maschinelle Übersetzung", body = "Diese Seite wurde ursprünglich maschinell aus dem Englischen übersetzt. Bitte hilf uns, sie natürlicher zu gestalten!", edit = "Übersetzung bearbeiten", source = "Englische Originalversion" },
     fr = { header = "Traduction Automatique", body = "Cette page est issue d'une traduction automatique de l'anglais. Merci de nous aider à la rendre plus naturelle !", edit = "Modifier la traduction", source = "Version anglaise originale" },
     fr = { header = "Traduction Automatique", body = "Cette page est issue d'une traduction automatique de l'anglais. Merci de nous aider à la rendre plus naturelle !", edit = "Modifier la traduction", source = "Version anglaise originale" },
     zh = { header = "机器翻译", body = "本页面最初由英文机器翻译而成。请帮助我们完善语言,使其更加自然!", edit = "编辑翻译", source = "英文原文" },
     zh = { header = "机器翻译", body = "本页面最初由英文机器翻译而成。请帮助我们完善语言,使其更加自然!", edit = "编辑翻译", source = "英文原文" }
    es = { header = "Traducción Automática", body = "Esta página comenzó como una traducción automática del inglés. ¡Ayúdenos a hacerla más natural!", edit = "Editar traducción", source = "Versión original en inglés" }
}
}


function p.renderNotice(frame)
function p.renderNotice(frame)
     local title = mw.title.getCurrentTitle()
     local title = mw.title.getCurrentTitle()
    local fullPage = title.fullText
    local basePage = title.baseText -- "Adama" if page is "Adama/de"
    local lang = title.subpageText -- "de" if page is "Adama/de"
      
      
     -- If it's a subpage (e.g., Namespace:Page/de), basePageTitle keeps the Namespace:Page part
     -- Fallback if used on a non-subpage
    local basePage = title.basePageTitle.fullText
    local lang = title.subpageText
   
    -- Fallback for non-subpages
     if not title.isSubpage then lang = "en" end
     if not title.isSubpage then lang = "en" end
     local msg = p.messages[lang] or p.messages["en"]
     local msg = p.messages[lang] or p.messages["en"]


     -- Generate the Direct Edit URL
     -- Constructing the HTML/Wikitext
    local editUrl = title:fullUrl('action=edit')
 
    -- Construct the HTML string
     local output = msg.body .. "<br />"
     local output = msg.body .. "<br />"
     output = output .. "'''[" .. editUrl .. " " .. msg.edit .. "]''' &bull; "
     output = output .. "'''[" .. title:fullUrl('action=edit') .. " " .. msg.edit .. "]''' &bull; "
     output = output .. "'''[[" .. basePage .. "|" .. msg.source .. "]]'''"
     output = output .. "'''[[" .. basePage .. "|" .. msg.source .. "]]'''"
      
      

To edit this page, please enter the words that appear below in the box (more info):

Refresh
Cancel Editing help (opens in new window)

  [] · [[]] · [[|]] · {{}} · · “” ‘’ «» ‹› „“ ‚‘ · ~ | ° &nbsp; · ± × ÷ ² ³ ½ · §
     [[Category:]] · [[:File:]] · [[Special:MyLanguage/]] · <code></code> · <nowiki></nowiki> <code><nowiki></nowiki></code> · <syntaxhighlight></syntaxhighlight> · <includeonly></includeonly> · <noinclude></noinclude> · #REDIRECT[[]] · <translate></translate> · <languages/> · {{#translation:}} · <tvar|></> · {{DEFAULTSORT:}} · <categorytree></categorytree> · <div style="clear:both;"></div> <s></s>


Your changes will be visible immediately.
  • For testing, please use the sandbox instead.
  • On talk pages, please sign your comment by typing four tildes (~~~~).

Template used on this page: