ページオプションの自立型ボタン

場合によっては、デフォルトページオプションを隠して選択されたボタンをユーザーに提供するのはもっと便利な時もあります。次はこれを行うための構文です。

[[button タイプ オプション]]

タイプには、editedit-appendedit-sectionshistoryprintfilestagssourcebacklinkstalk(MediaWiki/Wikipediaと同一に作動されます)、deleterenamesite-toolsedit-metawatchersparentlock-pageがあります。

次は許容される属性です。

  • text — 表示する文章
  • class — AエレメントのCSSクラス
  • style — CSSスタイルの定義

これらの属性を付けない場合はデフォルトオプションに表示される時と同じ表示がされます。

構文出力
[[button edit]]edit
[[button edit-append]]append
[[button edit-sections]]edit sections
[[button history]]history
[[button print]]print
[[button files]]files
[[button history]]history
[[button tags]]tags
[[button source]]view source
[[button backlinks]]backlinks
[[button talk]]talk
[[button delete]]delete
[[button rename]]rename
[[button site-tools]]site tools
[[button edit-meta]]edit meta
[[button watchers]]watchers
[[button parent]]parent
[[button lock-page]]lock page

アイコンを付けて"ソースコード"と"プリント"ボタンを作るためには、次のコードを使うことができます。

[[>]]
[[button source style="background-image: url(http://www.wikidot.com/local--files/files/view-source.png); background-repeat: no-repeat; background-position: bottom right; padding-right: 20px; color: #444"]]
[[button print style="background-image: url(http://www.wikidot.com/local--files/files/document-print.png); background-repeat: no-repeat; background-position: bottom right; padding-right: 20px;color: #444"]]
[[/>]]

出力: