Templat:Bendera parpol image/doc: Perbedaan antara revisi
Tidak ada ringkasan suntingan |
Tidak ada ringkasan suntingan |
||
Baris 2: | Baris 2: | ||
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | ||
== Usage == | == Usage == | ||
This template generates a floating flag image. Use the parameter {{para|Image}} to specify an image without "File:"/"Image:" prefix, {{para|Pos}} to control the position of the image (left, right, none or center; default right), {{para|Image_size}} to control the image size (default 210×105px), {{para|Width}} to specify image width (integer only, without any unit or suffix), {{para|Box_width}} to specify the width of the box (integer only, without any unit or suffix), {{para|Caption}} to specify the text underneath the image, and {{para|NoCentering}} to make the text not centered underneath the image. The parameter {{para| | This template generates a floating flag image. Use the parameter {{para|Image}} to specify an image without "File:"/"Image:" prefix, {{para|Pos}} to control the position of the image (left, right, none or center; default right), {{para|Image_size}} to control the image size (default 210×105px), {{para|Width}} to specify image width (integer only, without any unit or suffix), {{para|Box_width}} to specify the width of the box (integer only, without any unit or suffix), {{para|Caption}} to specify the text underneath the image, and {{para|NoCentering}} to make the text not centered underneath the image. The parameter {{para|Parpol}} may be used to use the image specified by Template:Country data {{{Parpol}}} (overridden by the {{para|Image}} parameter if specified) and to generate a default caption "Flag of {{{Parpol}}}". Parameter names are fully case-sensitive. | ||
==Examples== | ==Examples== | ||
Baris 8: | Baris 8: | ||
<syntaxhighlight lang="text"> | <syntaxhighlight lang="text"> | ||
{| | {| | ||
|{{Bendera parpol image| | |{{Bendera parpol image|Parpol=Denmark}} | ||
|{{Bendera parpol image|Image=Flag of Germany.svg|Caption=Flag of Germany}} | |{{Bendera parpol image|Image=Flag of Germany.svg|Caption=Flag of Germany}} | ||
|{{Bendera parpol image| | |{{Bendera parpol image|Parpol=Nepal|NoBorder=yes}} | ||
|{{Bendera parpol image| | |{{Bendera parpol image|Parpol=Russia|Image_size=120px}} | ||
|} | |} | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Baris 17: | Baris 17: | ||
Output: | Output: | ||
{| | {| | ||
|{{Bendera parpol image| | |{{Bendera parpol image|Parpol=Denmark}} | ||
|{{Bendera parpol image|Image=Flag of Germany.svg|Caption=Flag of Germany}} | |{{Bendera parpol image|Image=Flag of Germany.svg|Caption=Flag of Germany}} | ||
|{{Bendera parpol image| | |{{Bendera parpol image|Parpol=Nepal|NoBorder=yes}} | ||
|{{Bendera parpol image| | |{{Bendera parpol image|Parpol=Russia|Image_size=120px}} | ||
|} | |} | ||
Revisi per 30 September 2023 08.26
Ini adalah sebuah subhalaman dokumentasi untuk Templat:Bendera parpol image. Templat ini berisi informasi penggunaan, kategori dan konten lainnya yang bukan merupakan bagian dari templat halaman. |
Usage
This template generates a floating flag image. Use the parameter |Image=
to specify an image without "File:"/"Image:" prefix, |Pos=
to control the position of the image (left, right, none or center; default right), |Image_size=
to control the image size (default 210×105px), |Width=
to specify image width (integer only, without any unit or suffix), |Box_width=
to specify the width of the box (integer only, without any unit or suffix), |Caption=
to specify the text underneath the image, and |NoCentering=
to make the text not centered underneath the image. The parameter |Parpol=
may be used to use the image specified by Template:Country data {{{Parpol}}} (overridden by the |Image=
parameter if specified) and to generate a default caption "Flag of {{{Parpol}}}". Parameter names are fully case-sensitive.
Examples
Code:
{|
|{{Bendera parpol image|Parpol=Denmark}}
|{{Bendera parpol image|Image=Flag of Germany.svg|Caption=Flag of Germany}}
|{{Bendera parpol image|Parpol=Nepal|NoBorder=yes}}
|{{Bendera parpol image|Parpol=Russia|Image_size=120px}}
|}
Output:
[[Image:Templat:Data parpol Denmark|class=thumbimage|210x105px]] |
[[Image:Templat:Data parpol Nepal|center|210x105px]] |
[[Image:Templat:Data parpol Russia|class=thumbimage|120px]] |