Difference between revisions of "Template:HairTableRow"

From EncyclopAtys

Jump to: navigation, search
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
|style="border:1px dashed #dddddd;background-color:#eeeeee;color:#000" colspan="1" width="30%" | [[Image:{{{image1}}}|{{{name1}}}|center|thumb|200px]]
+
|style="border:1px dashed #dddddd;background-color:#eeeeee;color:#000" colspan="1" width="33%" | [[Image:{{{image1}}}|{{{name1}}}|center|thumb|200px]]
| style="border:1px dashed #dddddd;background-color:#eeeeee;color:#000" colspan="1" width="30%" | [[Image:{{{image2}}}|{{{name2}}}|thumb|center|200px]]
+
| style="border:1px dashed #dddddd;background-color:#eeeeee;color:#000" colspan="1" width="33%" | {{#if: {{{image2|}}} | [[Image:{{{image2}}}|{{{name2}}}|thumb|center|200px]]}}
| style="border:1px dashed #dddddd;background-color:#eeeeee;color:#000" colspan="1" width="30%" | {{#if: {{{image3|}}} | {[[Image:{{image3}}}|{{{name3}}}|thumb|center|200px]]}}
+
| style="border:1px dashed #dddddd;background-color:#eeeeee;color:#000" colspan="1" width="34%" | {{#if: {{{image3|}}} | [[Image:{{{image3}}}|{{{name3}}}|thumb|center|200px]]}}
 
|-
 
|-
 +
 +
 +
<noinclude>{{Trad|DE=Vorlage:HairTableRow|EN=Template:HairTableRow|palette=atys|H=1}}
 +
----
 +
 +
Template originally intended for displaying hair in gallery pages. Must be used in conjunction with [[Template:HairTable]].
 +
 +
Syntax:
 +
 +
{{Quotation| |<nowiki>{{HairTable || Content=</nowiki>
 +
 +
:<nowiki>{{HairTableRow || image1=x.jpg || name1=Example caption || image2=y.jpg || name2=Other example caption || image3=z.jpg || name3=Blah}}</nowiki>
 +
 +
:<nowiki>{{HairTableRow || image1=x.jpg || name1=Example caption || image2=y.jpg || name2=Other example caption || image3=z.jpg || name3=Blah}}</nowiki>
 +
 +
<nowiki>}}</nowiki>}}
 +
 +
Fields:
 +
* '''image1''' - Filename of the first image. Do ''not'' include <nowiki>[[Image:]]</nowiki> tags.
 +
* '''name1''' - Caption/name for the first image.
 +
* '''And so on, maximum # 3'''
 +
 +
Each row will always include three cells - although more could fit on higher res monitors, this is the maximum for lower res monitors (1024x768). Images will be resized to 200px width.
 +
 +
For rows containing less than three images, omit the image3 and name3  fields (and image2/name2 if necessary).
 +
 +
For example:
 +
{{Quotation| |<nowiki>{{HairTable || Content=</nowiki>
 +
 +
:<nowiki>{{HairTableRow || image1=A LongBunched.jpg || name1=Example caption || image2=A LongBunched.jpg || name2=Other example caption || image3=A LongBunched.jpg || name3=Blah}}</nowiki>
 +
 +
:<nowiki>{{HairTableRow || image1=A LongBunched.jpg || name1=Example caption}}</nowiki>
 +
 +
:<nowiki>{{HairTableRow || image1=A LongBunched.jpg || name1=Example caption || image2=A LongBunched.jpg || name2=Other example caption}}</nowiki>
 +
 +
<nowiki>}}</nowiki>}}
 +
 +
Produces:
 +
{{HairTable || Content=
 +
{{HairTableRow || image1=A LongBunched.jpg || name1=Example caption || image2=A LongBunched.jpg || name2=Other example caption || image3=A LongBunched.jpg || name3=Blah}}
 +
{{HairTableRow || image1=A LongBunched.jpg || name1=Example caption}}
 +
{{HairTableRow || image1=A LongBunched.jpg || name1=Example caption || image2=A LongBunched.jpg || name2=Other example caption}}
 +
}}
 +
[[Category: Formatting templates|HairTableRow]]
 +
</noinclude>

Latest revision as of 13:24, 10 September 2023

|style="border:1px dashed #dddddd;background-color:#eeeeee;color:#000" colspan="1" width="33%" | [[Image:{{{image1}}}|{{{name1}}}|center|thumb|200px]] | style="border:1px dashed #dddddd;background-color:#eeeeee;color:#000" colspan="1" width="33%" | | style="border:1px dashed #dddddd;background-color:#eeeeee;color:#000" colspan="1" width="34%" | |-


de:Vorlage:HairTableRow en:Template:HairTableRow
 
UnderConstruction.png
Translation to review
Don't blame the contributors, but come and help them 😎

Reference text ( Maintained text, used as reference ) :
Notes: (Leda, 2023-09-10)


Template originally intended for displaying hair in gallery pages. Must be used in conjunction with Template:HairTable.

Syntax:

{{HairTable || Content=

{{HairTableRow || image1=x.jpg || name1=Example caption || image2=y.jpg || name2=Other example caption || image3=z.jpg || name3=Blah}}
{{HairTableRow || image1=x.jpg || name1=Example caption || image2=y.jpg || name2=Other example caption || image3=z.jpg || name3=Blah}}

}}

Fields:

  • image1 - Filename of the first image. Do not include [[Image:]] tags.
  • name1 - Caption/name for the first image.
  • And so on, maximum # 3

Each row will always include three cells - although more could fit on higher res monitors, this is the maximum for lower res monitors (1024x768). Images will be resized to 200px width.

For rows containing less than three images, omit the image3 and name3 fields (and image2/name2 if necessary).

For example:

{{HairTable || Content=

{{HairTableRow || image1=A LongBunched.jpg || name1=Example caption || image2=A LongBunched.jpg || name2=Other example caption || image3=A LongBunched.jpg || name3=Blah}}
{{HairTableRow || image1=A LongBunched.jpg || name1=Example caption}}
{{HairTableRow || image1=A LongBunched.jpg || name1=Example caption || image2=A LongBunched.jpg || name2=Other example caption}}

}}

Produces:

Example caption
Other example caption
Blah
Example caption
Example caption
Other example caption