ページ Matrix room の変更

EM SSRが2026/10/14 05:39に最終更新

バージョン 1.1 から
EM SSRにより編集
2026/10/14 05:19に
変更についてのコメント: このバージョンのコメントはありません
バージョン 5.1 へ
EM SSRにより編集
2026/10/14 05:39に
変更についてのコメント: このバージョンのコメントはありません

要約

詳細

ページのプロパティー
非表示
... ... @@ -1,1 +1,1 @@
1 -false
1 +true
XWiki.WikiMacroClass[0]
マクロのID
... ... @@ -1,0 +1,1 @@
1 +matrix-room
マクロの名称
... ... @@ -1,0 +1,1 @@
1 +Matrix room
マクロの説明
... ... @@ -1,0 +1,1 @@
1 +Embeds a Matrix room (Element Web) in the page.
Default categories
... ... @@ -1,0 +1,1 @@
1 +Content
マクロの見え方
... ... @@ -1,0 +1,1 @@
1 +Current Wiki
インラインモードをサポート
... ... @@ -1,0 +1,1 @@
1 +いいえ
マクロの内容の利用可能性
... ... @@ -1,0 +1,1 @@
1 +No content
マクロのコード
... ... @@ -1,0 +1,20 @@
1 +{{velocity}}
2 +#set ($ooc = $xwiki.parseGroovyFromPage('OOC.Lib').init($xcontext.context, $services))
3 +#set ($room = "$!xcontext.macro.params.room")
4 +#set ($height = "$!xcontext.macro.params.height")
5 +#if ($height == '' || !$height.matches('^[0-9]{2,4}(px|vh|em|rem)$'))
6 + #set ($height = '640px')
7 +#end
8 +#if (!$ooc.validRoom($room))
9 +{{error}}room の指定が正しくありません。{{/error}}
10 +#else
11 +{{html clean="false" wiki="false"}}
12 +<div class="ooc-matrix-room" style="border:1px solid var(--border-color,#ccc);border-radius:6px;overflow:hidden;background:#fff">
13 +<iframe src="$escapetool.xml($ooc.chatUrl())/#/room/$escapetool.xml($room.replace('#','%23'))" title="掲示板 ($escapetool.xml($room))"
14 + style="width:100%;height:$height;border:0;display:block" loading="lazy"
15 + allow="clipboard-write; microphone; camera; fullscreen" referrerpolicy="no-referrer"></iframe>
16 +</div>
17 +{{/html}}
18 +#end
19 +{{/velocity}}
20 +
XWiki.WikiMacroParameterClass[0]
パラメーター名
... ... @@ -1,0 +1,1 @@
1 +room
パラメーターの説明
... ... @@ -1,0 +1,1 @@
1 +Room alias, e.g. #general:out-of-context.blog
必須のパラメーター
... ... @@ -1,0 +1,1 @@
1 +いいえ
パラメーターの既定の値
... ... @@ -1,0 +1,1 @@
1 +#general:out-of-context.blog
XWiki.WikiMacroParameterClass[1]
パラメーター名
... ... @@ -1,0 +1,1 @@
1 +height
パラメーターの説明
... ... @@ -1,0 +1,1 @@
1 +Frame height (px/vh/em)
必須のパラメーター
... ... @@ -1,0 +1,1 @@
1 +いいえ
パラメーターの既定の値
... ... @@ -1,0 +1,1 @@
1 +640px