2014-07-20 17:07:30 +00:00
created: 20140720164948099
2016-10-18 08:12:55 +00:00
modified: 20161017122011379
2014-09-11 19:12:25 +00:00
tags: Mechanisms
2014-07-20 17:07:30 +00:00
title: InfoMechanism
type: text/vnd.tiddlywiki
2016-10-18 08:12:55 +00:00
\define example(name)
<$transclude tiddler="""$:/info/url/$name$""" mode="inline"/>
\end
2014-07-20 17:07:30 +00:00
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") |
2018-03-23 09:13:45 +00:00
|[[$:/info/browser/screen/width]] |Screen width in pixels |
|[[$:/info/browser/screen/height]] |Screen height in pixels |
2014-07-22 14:16:18 +00:00
|[[$:/info/node]] |Running under [[Node.js]]? ("yes" or "no") |
2016-10-18 08:12:55 +00:00
|[[$:/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>>'') |