共著テーブル - リファレンス

http://1119s.wikidot.com/user-component:coauthored-table-start
http://1119s.wikidot.com/user-component:coauthored-table-start-base
http://1119s.wikidot.com/user-component:coauthored-table-content
http://1119s.wikidot.com/user-component:coauthored-table-end
http://1119s.wikidot.com/user-component:coauthored-table-end-base

サンプル

タイトル

共著者

評価

コメント

作成日時

{$header6}

{$header7}

{$header8}

{$header9}

{$header10}

0

0

07 Oct 2023 13:50

{$content6}

{$content7}

{$content8}

{$content9}

{$content10}

0

0

30 Sep 2021 20:17

{$content6}

{$content7}

{$content8}

{$content9}

{$content10}

これは何?

著者ページに掲載するテーブル構文を複数の共著にも適用するための構文です。

使用方法

1. table-startに列の数と見出しの内容を書く

[[include user-component:coauthored-table-start
|col-num= 5
|header1= タイトル
|header2= 共著者
|header3= 評価
|header4= コメント
|header5= 作成日時
]]

2. table-contentにページネーム (URLのスラッシュ以降) とセルの内容を書く

[[include user-component:coauthored-table-start
|col-num= 5

]]
[[include user-component:coauthored-table-content
|pagename= pagename
|content1= %%title_linked%%
|content2= [[*user user]{$b}, [[*user user]{$b}
|content3= %%rating%%
|content4= %%comments%%
|content5= %%created_at%%
|b= ]
]]

3. ステップ2を必要な数だけ繰り返す

4. table-endを書く

[[include user-component:coauthored-table-start
|col-num= 5

]]
[[include user-component:coauthored-table-content
|pagename= pagename

]]
[[include user-component:coauthored-table-end]]

引数

*が付くものは必須です

table-start:

引数 データ型 説明
*col-num 整数 (1~10) 表の列の数です。
*header1
~
header10
文字列 表の見出しです。最低1つはないと機能しません。

table-content:

引数 データ型 説明
*pagename 文字列 ページネーム (URLのスラッシュ以降) を記入します。
*content1
~
content10
文字列 セルの内容です。最低1つはないと機能しません。
contentに]]を含む文 (ユーザー名構文など) を書く場合、]]の代わりに{$b}]と書いてください。
例: [[*user iti119{$b}]

table-end:

引数 データ型 説明
tr-background 色コード 見出しの背景の色を指定します。
カスタムテーマで表のデザインが変更されているときに使用します。
td-background 色コード セルの背景の色を指定します。
カスタムテーマで表のデザインが変更されているときに使用します。
td-border 色コード セルの枠線の色を指定します。
カスタムテーマで表のデザインが変更されているときに使用します。
特に明記しない限り、このページのコンテンツは次のライセンスの下にあります: Creative Commons Attribution-ShareAlike 3.0 License