mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 20:10:03 +00:00
29 lines
1.8 KiB
Plaintext
29 lines
1.8 KiB
Plaintext
created: 20140720164948099
|
|
modified: 20190307175403915
|
|
tags: Mechanisms
|
|
title: InfoMechanism
|
|
type: text/vnd.tiddlywiki
|
|
|
|
\define example(name)
|
|
<$transclude tiddler="""$:/info/url/$name$""" mode="inline"/>
|
|
\end
|
|
|
|
System tiddlers in the namespace `$:/info/` are used to expose information about the system (including the current browser) so that WikiText applications can adapt themselves to available features.
|
|
|
|
! Information Tiddlers
|
|
|
|
|!Title |!Description |
|
|
|[[$:/info/browser]] |Running in the browser? ("yes" or "no") |
|
|
|[[$:/info/browser/language]] |<<.from-version "5.1.20">> Language as reported by browser (note that some browsers report two character codes such as `en` while others report full codes such as `en-GB`) |
|
|
|[[$:/info/browser/screen/width]] |Screen width in pixels |
|
|
|[[$:/info/browser/screen/height]] |Screen height in pixels |
|
|
|[[$:/info/node]] |Running under [[Node.js]]? ("yes" or "no") |
|
|
|[[$:/info/url/full]] |<<.from-version "5.1.14">> Full URL of wiki (eg, ''<<example full>>'') |
|
|
|[[$:/info/url/host]] |<<.from-version "5.1.14">> Host portion of URL of wiki (eg, ''<<example host>>'') |
|
|
|[[$:/info/url/hostname]] |<<.from-version "5.1.14">> Hostname portion of URL of wiki (eg, ''<<example hostname>>'') |
|
|
|[[$:/info/url/origin]] |<<.from-version "5.1.14">> Origin portion of URL of wiki (eg, ''<<example origin>>'') |
|
|
|[[$:/info/url/pathname]] |<<.from-version "5.1.14">> Pathname portion of URL of wiki (eg, ''<<example pathname>>'') |
|
|
|[[$:/info/url/port]] |<<.from-version "5.1.14">> Port portion of URL of wiki (eg, ''<<example port>>'') |
|
|
|[[$:/info/url/protocol]] |<<.from-version "5.1.14">> Protocol portion of URL of wiki (eg, ''<<example protocol>>'') |
|
|
|[[$:/info/url/search]] |<<.from-version "5.1.14">> Search portion of URL of wiki (eg, ''<<example search>>'') |
|