Template:Template journal inline
表示
| Luaモジュールを使用しています: |
| このテンプレートはテンプレートスタイルを使用しています: |
テンプレート説明ドキュメントの執筆のために、パラメータを装飾表示するテンプレートです。
一行で装飾表示するためのTemplate:Template journal inlineも存在します。
使い方
[編集]以下のように記載すると、
{{tj|cite book
|last: Author's last name|first: Author's first name
|author-link: Author's page name on Wikipedia|date: Publication date
|title: Work's title|url: Work's URL|location: Where the work was published
|publisher: Name of the publisher}}
装飾し折り返した形で以下が出力されます。
{{cite book
| last = Author's last name
| first = Author's first name
| author-link = Author's page name on Wikipedia
| date = Publication date
| title = Work's title
| url = Work's URL
| location = Where the work was published
| publisher = Name of the publisher
}}
| last = Author's last name
| first = Author's first name
| author-link = Author's page name on Wikipedia
| date = Publication date
| title = Work's title
| url = Work's URL
| location = Where the work was published
| publisher = Name of the publisher
}}
また、以下のように引数に :(コロン)を付けると、 = を出力します。
{{tj|Infobox movie quote|name:|image:|caption:|character:|actor:|writer:
|firstusedin:|alsousedin:|moviequotes:}}
{{Infobox movie quote
| name =
| image =
| caption =
| character =
| actor =
| writer =
| firstusedin =
| alsousedin =
| moviequotes =
}}
| name =
| image =
| caption =
| character =
| actor =
| writer =
| firstusedin =
| alsousedin =
| moviequotes =
}}
インライン表示
[編集]Lorem ipsum {{tji|Diff|Main Page|139993|139992|Sic exorsi sumus|diffonly: yes}}- Lorem ipsum {{Diff
|Main Page |139993 |139992 |Sic exorsi sumus |diffonly=yes}}
- Lorem ipsum {{Diff
類似テンプレート一覧
[編集]| 入力 | 出力 | 備考 |
|---|---|---|
{{tl|Main}} | {{Main}} | テンプレートへの引数は書けない。姉妹プロジェクトや他言語版へのリンクを書くには{{tl2}}。 |
{{tlp|Main|引数}} | {{Main|引数}} | テンプレートへの引数は最大8個。 |
{{tlf|Main|引数}} | {{Main|引数}} | リンクなし。{{tlc}}は内部を<code>...</code>で表示します。 |
{{tls|Sakujo}} | {{subst:Sakujo}} | subst展開しなければいけないページ用。引数は8個まで。 |
{{tn|Main|引数}} | {{Main}} | 内側の括弧もリンク。名前・表示される文字列が短いテンプレートの場合はクリックが容易になります。 |
{{tlx|Main|abc|lang=:en:}} | {{Main|abc}} | code表示。他言語版にもリンクできます。subst展開も可能。{{tlx2}}はcodeにはしません。 |
リンクのスタイル{{tlg}}のオプション |
通常 | リンク無し | subst: | 内括弧までリンク | 別名リンク | |
|---|---|---|---|---|---|---|
テキストのスタイル{{tlg}}のオプション |
-- | nolink=yes |
subst=yes |
braceinside=yes |
alttext=別名 | |
| 普通 | -- | {{tlg}} {{tl}} {{tlp}} {{Template:tlu}} {{Template:tlpu}} {{tlx2}} | {{tlf}} (リンク) | {{subst:tls}} {{subst:Template:tlsu}} | {{tn}} | {{tla}} |
code |
code=yes |
{{tl2}}{{tlx}} | {{tlc}}(リンク) | {{subst:tlxs}} | ||
| 強調 | bold=yes |
{{tlb}} | ||||
code+強調 |
bold=yes|code=yes |
{{tlxb}}(en) | ||||
code+斜体 |
italic=yes|code=yes |
{{tlxi}}(en) |
注:
{{tlg}}は最も汎用的で、上記の任意の組合せが可能です。- 関連テンプレート
- {{Lts}}は、ノートページで使います。
{{Lts|要出典}}と書くと、Template:要出典(編集 / ノート / リンク元 / 履歴 / ログ)と表示されます。 - {{para}}は、引数の解説を書くために使えます。
- {{tag}}は、HTMLタグ(
<ref>...</ref>などを含む)を例示するためのテンプレートです。
その他
[編集]| 記載 | 出力 | 解説 |
|---|---|---|
{{Tj |Hatnote|Some text|selfref: yes|category: no|lang: fr}} |
Template:Template journal; 複数行展開でのシンタックスカラー(構文カラー)付き解説 | |
{{Tji|Hatnote|Some text|selfref: yes|category: no|lang: fr}} |
{{Hatnote |
Template:Template journal inline; インラインでのシンタックスカラー付き解説 |