Difference between revisions of "Template:Varietal"

From Grapevine
Jump to: navigation, search
m (Removed page link for "Also called".)
m (Added edge transparency to color)
 
(8 intermediate revisions by the same user not shown)
Line 9: Line 9:
 
|Also Called=
 
|Also Called=
 
|Characteristics=
 
|Characteristics=
|Wine Color=
+
|Wine Color Dark=
 +
|Wine Color Light=
 
}}
 
}}
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
{{#cargo_declare:_table=Varietals|Image=File|Type=Page|Notable_Regions=List (,) of Page|Also_Called=List (,) of String|Characteristics=List (,) of String|Wine_Color=String}}
+
{{#cargo_declare:_table=Varietals|Image=File|Type=Page|Notable_Regions=List (,) of Page|Also_Called=List (,) of String|Characteristics=List (,) of String|Wine_Color_Dark=String|Wine_Color_Light=String}}
</noinclude><includeonly>{{#cargo_store:_table=Varietals|Image={{{Image|}}}|Type={{{Type|}}}|Notable_Regions={{{Notable Regions|}}}|Also_Called={{{Also Called|}}}|Characteristics={{{Characteristics|}}}|Wine_Color={{{Wine Color|}}} }}{| class="wikitable"
+
</noinclude><includeonly>{{#cargo_store:_table=Varietals|Image={{{Image|}}}|Type={{{Type|}}}|Notable_Regions={{{Notable Regions|}}}|Also_Called={{{Also Called|}}}|Characteristics={{{Characteristics|}}}|Wine_Color_Dark={{{Wine Color Dark|}}}|Wine_Color_Light={{{Wine Color Light|}}} }}
! Image
+
{| style="width: 30em; font-size: 90%; border: 1px solid #777777; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
| [[File:{{{Image|}}}]]
+
| colspan="2" style="text-align: center; background-color:#42be42; border:1px solid #777777;" |<span style="font-size: 2em; font-weight: bold;">{{PAGENAME}}</span>
 
|-
 
|-
! Type
+
| colspan="2" | {{ #if: {{{Image|}}} | [[File:{{{Image|}}}|center|link=]] }}
| [[{{{Type|}}}]]
 
 
|-
 
|-
! Notable Regions
+
| colspan="2"  style="text-align:center; background-color:#42be42; padding: 2px; border:1px solid #777777;" | <span style="font-size: 1.2em; font-weight: bold;">Details</span>
| {{#arraymap:{{{Notable Regions|}}}|,|x|[[x]]}}
 
 
 
 
|-
 
|-
! Also Called
+
| style="width:110px;" | '''Type:''' || [[{{{Type|}}}]]
| {{#arraymap:{{{Also Called|}}}|,|x|x}}
 
 
 
 
|-
 
|-
! Characteristics
+
| '''Notable Regions:''' || {{#arraymap:{{{Notable Regions|}}}|,|x|[[x]]}}
| {{#arraymap:{{{Characteristics|}}}|,|x|[[x]]}}
 
 
 
 
|-
 
|-
! Wine Color
+
| '''Also Called:''' || {{#arraymap:{{{Also Called|}}}|,|x|x}}
| {{{Wine Color|}}}
+
|-
 +
| '''Characteristics:''' || {{#arraymap:{{{Characteristics|}}}|,|x|[[x]]}}
 +
|-
 +
| '''Wine Color:''' || <span style="display: inline-block; height: 50px; width: 50px; border-radius: 50%; background-image: radial-gradient(circle, {{{Wine Color Dark|}}}, {{{Wine Color Light|}}}, transparent);"></span>
 
|}
 
|}
  
 
[[Category:Varietals]]
 
[[Category:Varietals]]
 
</includeonly>
 
</includeonly>

Latest revision as of 00:40, 8 May 2019

This is the "Varietal" template. It should be called in the following format:

{{Varietal
|Image=
|Type=
|Notable Regions=
|Also Called=
|Characteristics=
|Wine Color Dark=
|Wine Color Light=
}}

Edit the page to see the template text. This template defines the table "Varietals". View table.