Help:Wikitext examples/ja
<languages/> Template:PD Help Page
ウィキテキスト内の書式整形
{{#section:Template:TNTN|formatting}}
文章の整理
Template:See also{{#section:Template:TNTN|lists}}
リンクの作成
You will often want to make clickable links to other pages.
{{#section:Template:TNTN|linkstable}}
入力したとおりに表示する
一部の書式整形方法には、入力したテキストがそのままウィキ上に反映されるものがあります。
| 表示結果 | ウィキテキスト |
|---|---|
|
The nowiki tag prevents [[Wiki]] ''markup'' from rendering. It adjusts text by eliminating newlines and multiple spaces. It still processes special characters: → |
<nowiki>
The nowiki tag prevents
[[Wiki]] ''markup'' from rendering.
It adjusts text by
eliminating
newlines and multiple
spaces.
It still processes special
characters: →
</nowiki>
|
The pre tag bypasses [[Wiki]] ''markup''. It also maintains text format. It still recognizes special characters: → |
<pre>
The pre tag bypasses [[Wiki]]
''markup''.
It also maintains text
format.
It still recognizes special
characters: →
</pre>
|
|
Leading spaces offer another method to keep formatting. Inserting a space at the start of each line keeps the text as is. It still processes Wiki markup and special characters: → |
Leading spaces offer another method to keep formatting.
Inserting a space at the
start of each
line keeps the text
as is. It still
processes [[Wiki]]
''markup'' and special
characters: →
|
コードの表示
Template:Main SyntaxHighlight(構文強調表示)拡張機能が利用可能な場合は、Template:Tag HTMLタグと同様なソースコードの表示に加え、高度なテキストエディターのような構文強調表示が可能です。 対応している言語の一覧はこちらをご覧ください: http://pygments.org/languages/ C# コードの表示例を以下に示します:
<syntaxhighlight lang="csharp">
// Microsoft C# ("C-Sharp") における Hello World の表示。
using System;
class HelloWorld
{
public static int Main(String[] args)
{
Console.WriteLine("Hello, World!");
return 0;
}
}
</syntaxhighlight>
Renders as:
// Microsoft C# ("C-Sharp") における Hello World の表示。
using System;
class HelloWorld
{
public static int Main(String[] args)
{
Console.WriteLine("Hello, World!");
return 0;
}
}
画像、表、動画、サウンドの使用
より詳細な解説については、以下をご覧ください:
- Template:Ll - ファイルのアップロードと画像の構文について。
- Template:Ll - 表の作成について。
Once you upload a file, enter its filename, highlight it, and click the "embedded image" button on the edit toolbar. This will generate the embedding syntax:
[[Image:filename.png]]
| 表示結果 | ウィキテキスト | ||||
|---|---|---|---|---|---|
|
代替文付きの画像: これはウィキのロゴです フレームとキャプション付きの画像: |
代替文付きの画像:
[[Image:Wiki.png|これはウィキのロゴです]]
フレームとキャプション付きの画像:
[[Image:Wiki.png|frame|これはウィキのロゴです]]
| ||||
|
MediaWikiの画像ページへのリンク: Image:Wiki.png 画像への直リンク: Media:Wiki.png |
MediaWikiの画像ページへのリンク:
[[:Image:Wiki.png]]
画像への直リンク:
[[Media:Wiki.png]]
| ||||
|
media: 名前空間タグを使用すると、音声や動画に直接リンクできます: 音声ファイル |
'''media:''' 名前空間タグを使用すると、音声や動画に直接リンクできます:
[[media:Classical guitar scale.ogg|音声ファイル]]
| ||||
| Include a spoken version of text in a template (Template:Tl): | Include a spoken version of text in a template:
{{listen
|title = Flow, my tears
|filename = Flow, my tears.ogg
|filesize = 1.41 MB
}}
| ||||
|<center><span style="border:5px double black">'''枠線ボックス内のテキスト'''</span></center>
|
| |||||
|
{| style="margin: auto; border: 10px solid black; border-spacing: 5px;"
|-
! style="padding: 10px;" | This
! style="padding: 10px;" | is
|-
| style="padding: 10px;" | a
| style="padding: 10px;" | table
|}
|
ギャラリー
Template:See also 次のように、Template:Tag タグを使用して画像をギャラリーにまとめることが可能です:
-
キャプション付き
-
キャプション内にリンクを入れることもできます。
数式
TeX マークアップを使用して、数式の整形が行えます。
| 表示結果 | ウィキテキスト |
|---|---|
<math>\sum_{n=0}^\infty \frac{x^n}{n!}</math>
|
テンプレート
Template:Main テンプレートは自動的にページ内にコピー("参照読み込み")可能なウィキマークアップの断片です。 テンプレートを挿入するには、テンプレート名を {{二重中括弧}} で囲みます。 他の名前空間のページを参照読み込みするには、{{:コロンと二重中括弧}} を使用します。 一部のテンプレートは、パイプ文字で区切られた引数を受け入れます。
| 表示結果 | ウィキテキスト |
|---|---|
{{Help:Wikitext examples/transclusion demo}}
| |
|
このテンプレートは渡された1つの引数を2回返します: Template:2x |
このテンプレートは渡された1つの引数を2回返します:
{{2x|Hello World}}
|
関連項目
[[Category:Help{{#translation:}}]]