Difference between revisions of "Module talk:SandboxUString"

From PKC
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 11: Line 11:
{{#invoke:SandboxUString|luaSourceCodeText|{{:Module:SandboxShortCode}}}}
{{#invoke:SandboxUString|luaSourceCodeText|{{:Module:SandboxShortCode}}}}


==Random Wiki Text==
==Random YAML Text==
  <nowiki>{{#invoke:htmlSourceCodeText|{{:Demo:SampleWikiCode}}}}</nowiki>
  <nowiki>{{#invoke:yamlSourceCodeText|{{:Demo:YAMLCode}}}}</nowiki>
{{#invoke:SandboxUString|htmlSourceCodeText|{{:Demo:SampleWikiCode}}}}
{{#invoke:SandboxUString|yamlSourceCodeText|{{:Demo:YAMLCode}}}}


=More Tests=
=More Tests=

Latest revision as of 14:33, 11 January 2022

The number of characters is:291

Show Code Test

{{#invoke:SandboxUString|showCode}}

/*^ABCDabc&-left&-right/*^D

luaSourceCodeText Test

{{#invoke:luaSourceCodeText|{{:Module:SandboxShortCode}}}}
-- aString Some examples for punctuation:<, >, \\ // ' " .. ...
function p.greek_letter()
	cf = mw.getCurrentFrame()
	-- aString = "<h1>\\" .. mw.allToString(cf.args[1]) .. "</h1>"
	str = mw.getCurrentFrame().args[1]
	aString = cf:preprocess("firstStr"..str.."secondStr")
	return aString
end69

Random YAML Text

{{#invoke:yamlSourceCodeText|{{:Demo:YAMLCode}}}}
# MediaWiki with MariaDB
#
# Access via "http://localhost:8080"
#   (or "http://$(docker-machine ip):8080" if using docker-machine)
version: '3'
services:
  database:
    image: xlp0/mariadb_auto
    container_name: pkc-database-1
    restart: always
    environment:
      # @see https://phabricator.wikimedia.org/source/mediawiki/browse/master/includes/DefaultSettings.php
      entrypoint: mysql_safed 
      MYSQL_DATABASE: my_wiki
      MYSQL_USER: wikiuser
      MYSQL_PASSWORD: example
      # MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
    volumes:
      - ./mountPoint/mariadb:/var/lib/mysql
      #- ./mountPoint/backup/automysqlbackup:/var/lib/automysqlbackup/
  mediawiki:
    #image: mediawiki
    image: xlp0/pkc
    container_name: pkc-mediawiki-1
    restart: always
    ports:
      - 9352:80
    links:
      - database
    volumes:
      - ./mountPoint/images:/var/www/html/images
     # - ./mountPoint/services/matomo:/var/www/html/matomo
      # After initial setup, download LocalSettings.php to the same directory as
      # this yaml and uncomment the following line and use compose to restart
      # the mediawiki service
      - ./LocalSettings.php:/var/www/html/LocalSettings.php
      - ./backup:/var/www/html/backup
      - ./backup/ToBeUploaded:/var/www/html/backup/ToBeUploaded
    depends_on:
      - database159

More Tests

byte
mw.ustring.byte('\') is 92
char
mw.ustring.char(92) is \
byte
mw.ustring.codepoint('张') is 24352
byte
mw.ustring.char(24352) is 张