menu menu_open
  • edit Edit

    Navigation

    • Main page
    • All pages
    • Recent changes
    • Random page
    • Help

    Tools

    • What links here
    • Related changes
    • Special pages
    • Printable version
    • Permanent link
    • Page information

    Variants

The Lab Rats 2 - Reformulate Wiki

Module:Logoform

14 article Pages
18 photo Files
2128 edit Edits
22 person Users
timeline photo_library leaderboard file_upload
palette
  • computer
code
  • computer
pages api security app_shortcut
more_vertical
  • timeline Recent changes
  • photo_library New Files
  • leaderboard Statistics
  • file_upload Upload file
  • palette CSS expand_more
    • computer
  • code JS expand_more
    • computer
  • pages All pages
  • apisandbox API sandbox
  • security System messages
  • app_shortcut Special pages
grid_view double_arrow forum file_download extension file_upload visibility book category delete_sweep
settings
contrast

  • brightness_auto hdr_auto
  • brightness_7 brightness_1
  • brightness_6 brightness_2
  • brightness_5 brightness_3
  • brightness_4
  • brightness_3 brightness_5
  • brightness_2 brightness_6
  • brightness_1 brightness_7
hdr_auto
  • brightness_auto
  • hdr_auto
  • light_mode
  • dark_mode

  • palette
  • tonality

  • brightness_auto hdr_auto
  • gradient gradient
  • thermostat thermostat
  • ac_unit storm
  • Duo
  • Solo
format_paint
  • emergency deployed_code
  • emergency opacity
  • square
  • contrast

  • deployed_code build square contrast
  • 1
  • 2
  • 3
  • 4
palette
  • brightness_auto
  • hdr_auto
  • light_mode
  • dark_mode

  • build
  • emergency invert_colors_off
  • contrast
  • format_paint
  • android
  • colorize
colorize
  • brightness_auto
  • hdr_auto
  • bedtime_off
  • bedtime

  • build
  • square
  • computer
  • invert_colors
  • brush
  • filter_b_and_w
  • contrast
  • smart_toy
  • 1
  • 2
  • 3
  • 4
brush
  • A
  • B
  • C
  • D
  • E
  • F
  • G
  • H
  • Welcome to the Lab Rats 2 - Reformulate Wiki.
  • Stay tuned here for news and changes...
  • This wiki is currently being built. Feel free to contribute to it and discuss any suggestions or changes.
  • Visit the Lab Rats 2 Discord to discuss any missing information!
  • Module
  • Discussion
  • Read
  • View source
  • View history

Module:Logoform

From The Lab Rats 2 - Reformulate Wiki

Documentation for this module may be created at Module:Logoform/doc

local p = {}   --  Module for: Formatting Logo

function p.format (frame)
	local gpar = frame.args		--	global
	local file = 'F'			--	assume file
	local size = gpar[2] or '0'	--	"0" for	"unspecified"
	local styl = ';'..gpar[3] or '-'	--	"unspecified"
	local titl = '">'			-- no title
	if  mw.ustring.sub(size, -2) == 'px' then
		size = mw.ustring.sub(size, 1, #size-2 )
	end
	if	not mw.ustring.find( gpar[1], '.', 1, true ) then
		if	mw.ustring.sub ( gpar[1], 1, 2 ) == 'U+'	or
			mw.ustring.sub ( gpar[1], 1, 2 ) == '&#'	then
			file = 'U'
			if	mw.ustring.sub( gpar[1], 1, 2 ) == 'U+' then	--	standardize:
				titl = '" title='..gpar[1]..'>'
				gpar[1] = mw.ustring.gsub( gpar[1]..';', 'U%+', '&#x' ),_ 
			elseif
				mw.ustring.sub( gpar[1], 1, 3 ) == '&#;' then	--	textstring: 	
				gpar[1] = mw.ustring.sub( gpar[1], 4 )
			end
			if	styl == ';-' then styl = ';' end	--	not specified
			if	size ~= '0' then
				local stab = mw.text.split( size, 'x' )
				size = stab[1]
				if stab[2] then size = stab[2] end	--	height
			else
				size = '33'		--	Unicode default size
			end
		end
	else
		if	size == '0'	then
			size = '36x22'		--	File default size
		end
	end

	if file == 'F' then 
		return '[[File:'..gpar[1]..'|'..size..'px]]'	-- allow linking
	else
		return '<span style="font-size:'..size..'px;vertical-align:middle'..styl..titl..gpar[1]..'</span>'
	end	
end -- function format

return p
Retrieved from "https://lr2wiki.porn-organizer.org/index.php?title=Module:Logoform&oldid=644"
  • Privacy policy
  • About The Lab Rats 2 - Reformulate Wiki
  • Disclaimers
    • This page was last edited on 22 December 2021, at 02:54.
    • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
    • Creative Commons Attribution-ShareAlike
    • Powered by MediaWiki

    timeline Recent changes
    arrow_forward_ios

    No changes during the given period match these criteria.

    info About The Lab Rats 2 - Reformulate Wiki
    edit

    The wiki for the adult sandbox game Lab Rabs 2 - Reformulate

    search saved_search
    search saved_search Search
    apps
    • live_help
    • hive
    • insert_link
    • timeline
    • visibility
    • shuffle
    • build
    • help
    • file_download
    • attachment
    public_off Not logged inReady
    widgets
    public StandardReady
    hive MirahezeReady
    Qora QoreReady
    • Privacy policy
    • About The Lab Rats 2 - Reformulate Wiki
    • Disclaimers
    insert_link timeline visibility shuffle build help file_download attachment
    account_circle
    • refresh

    • Create account
    • Log in
    refresh