• Home
  • Random
  • Log in
  • Settings
  • About Azupedia
  • Disclaimers
Azupedia

Template:Image2

  • Language
  • Watch
  • View source
Template documentation[view] [edit] [history] [purge]
この記事は、クリエイティブ・コモンズ・表示・継承ライセンス3.0のもとで公表されたウィキペディアの項目Template:Image2を素材として二次利用しています。
WB item:

Infoboxなどテンプレート内で画像を表示するために使用するテンプレートです。画像の指定がファイル名のみでもウィキ構文でも表示できるようになります。単独で使用しません。

英語版のテンプレート名と同名のテンプレートが既にあり、内容が全く違うため({{Image}})、英語版の使用テンプレートを日本語版に移植する場合は必ず「{{Image」を「{{Image2」(囲む括弧が3つではなく2つの部分)に修正してください。修正しないと画像が表示されません。

使用法

  • {{Image2 | Example.svg | 20px}} →
  • {{Image2 | File:Example.svg | 20px}} →
  • {{Image2 | [[File:Example.svg|30px]] | 20px}} →

画像に記事へのリンクを貼る場合はマジックワード {{!}} を使って以下のように指定します。

ただし、このような指定をする場合は使用する画像がパブリックドメインの場合に限られます。(画像リンクの注意参照)

  • {{Image2 | Example.svg | 2= 20px{{!}}link=メインページ}} →

関連項目

  • {{px}}
The above documentation is transcluded from Template:Image2/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://wiki.tiffa.net/w/index.php?title=Template:Image2&oldid=562"
Last edited on 30 January 2021, at 11:53

Languages

      This page is not available in other languages.

      Azupedia
      • This page was last edited on 30 January 2021, at 11:53.
      • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
      • Privacy policy
      • About Azupedia
      • Disclaimers
      • Desktop