MediaWiki構文

提供: dococo wiki
ナビゲーションに移動 検索に移動

このサイトで使用しているMediaWikiの文法集です。(主に管理人がCopy&Pastするために使用するメモページです)

小文字表示方法

{{タイトル|mopera}}
{{小文字}}


用語説明表示

説明文
説明内容

;説明文:説明内容

リダイレクト

#REDIRECT [[リダイレクトしたいページ名#その中の章]]


文字サイズ

<big>大きな文字</big> <big><big>大きな文字</big></big> <small>小さい字</small> <small><small>小さい字</small></small>

取消線

取り消し部分

<del>取り消し部分</del>


アンダーライン

追加部分

<ins>追加部分</ins>


ページaのセクションb

[[a#b|c]]


<span style="color:red">色の名称で指定する方法と、</span>

<span style="color:#008000">RGB値で指定する方法があります。</span>

カラーネーム 147種使えるが、色が近似すぎるのでよくあるカラーを乗せます。

  • Black
  • Lime
  • Olive
  • Navy
  • Teal
  • Aqua
  • Green
  • Gray
  • Yellow
  • Red
  • Purple
  • Silver
  • White(←White)
  • Maroon
  • Blue
  • Fuchsia


改行

普通の改行

<br />

コロン(:)を使うと、段落をひとつ分、内側に寄せることができます。


引用

[1]

According to scientists, the Sun is pretty big.[2] The Moon, however, is not so big.[3]

  1. E. Miller, The Sun, (New York: Academic Press, 2005), 23-5.
  2. R. Smith, "Size of the Moon", Scientific American, 46 (April 1978): 44-6.

引用(同じ脚注を複数利用する)


脚注にユニークな識別子を与えるには、<ref name="name">を利用します。 同じ名前とrefタグを使用することで同じ脚注を再び参照することが出来ます。 2番目のタグ内部にあるテキストは問題ありません。テキストが既に最初の参照で存在するからです。脚注全体をコピーする、次のようなもしくは終わりの空のrefタグを使用することが出来ます:<ref name="name" />.

次の例において、同じソースは3回引用されます。

This is an example of multiple references to the same footnote.[1]

Such references are particularly useful when citing sources, if different statements come from the same source.[1]

A concise way to make multiple references is to use empty ref tags, which have a slash at the end. Although this may reduce redundant work, please be aware that if a future editor removes the first reference, this will result in the loss of all references using the empty ref tags.[1]

Notes

  1. 1.0 1.1 1.2 Remember that when you refer to the same footnote multiple times, the text from the first reference is used. 引用エラー: 無効な <ref> タグ; name "multiple"が異なる内容で複数回定義されています


画像引用

[[ファイル:Alchemy fire symbol.svg|link=三角形]]


あいまい

Template:Aimai

<div style="border:solid #999 1px; background:#f8f8f8; padding:0.5em; margin:1em 0.5em;">

<div style="float:left">[[Image:Disambig.jpg|left|45px|Disambiguation]]</div>

<div style="text-align:left;margin-left:65px;">このページは<span style="color:red">'''曖昧さ回避のためのページ'''</span>です。一つの言葉や名前が二つ以上の意味や物に用いられている場合の水先案内のために、異なる用法を一覧にしてあります。お探しの用語に一番近い記事を選んで下さい。[[Special:Whatlinkshere/{{NAMESPACE}}:{{PAGENAME}}|このページへリンクしているページ]]を見つけたら、リンクを適切な項目に張り替えて下さい。</div>


画像をサムネイル形式で表示

<gallery caption="FX6800-09J・ギャラリー" widths="200px" heights="200px" perrow="3">

画像:Fuji_mt_s.jpg

画像:Kinkaku.jpg|キャプションをいれられます。

画像:Catyawn.jpg|キャプション中で[[ネコ|リンク]]もできます。

セルにテキストを入れることもできます。|テキスト

</gallery>


pre要素

pre要素は、半角スペース、タブ、改行を記述したまま表示するブロック要素です。 一般的なブラウザでは、等幅フォントで表示されます。


段落表示

{|style="width: 100%;"
|- style="vertical-align: top;"
<!--       1行目 -->
| style="width: 33%;"| <!-- 33%のセル -->
*次の記事
*次の記事
*次の記事
<!--       2行目 -->
| style="width: 33%;"| <!-- 33%のセル -->
*次の記事
*次の記事
*次の記事
<!--       3行目 -->
| style="width: 33%;"| <!-- 33%のセル -->
*次の記事
*次の記事
*次の記事
|}


カテゴリ

ページをカテゴリに入れるには
[[Category:カテゴリ名]]


ソートキー
[[Category:カテゴリ名|ソートキー]]