Template:Language exist

From Official Factorio Wiki
Revision as of 02:01, 26 February 2017 by TheWombatGuru (talk | contribs)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

[View] [Edit] [Page history]

Documentation

Shows a flag if a translated page with the given suffix exists, otherwise shows <span></span>.

Further explanation

Input: Given language code, for example de; en for English

if on page with the given language code then

  show nothing -- nothing = <span></span>

else

  if <pagename without lang suffix>/<given lang code> exists then -- current page translated to given language
    show flag
  else
    show nothing -- nothing = <span></span>
  end

end
List of all templates