Difference between revisions of "Template:Varietal"

From Grapevine
Jump to: navigation, search
m (1st column width to 110px)
m (Added edge transparency to color)
 
(2 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|}}} }}
+
</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|}}} }}
 
{| 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;"
 
{| 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;"
 
| colspan="2" style="text-align: center; background-color:#42be42; border:1px solid #777777;" |<span style="font-size: 2em; font-weight: bold;">{{PAGENAME}}</span>
 
| colspan="2" style="text-align: center; background-color:#42be42; border:1px solid #777777;" |<span style="font-size: 2em; font-weight: bold;">{{PAGENAME}}</span>
 
|-
 
|-
 
| colspan="2" | {{ #if: {{{Image|}}} | [[File:{{{Image|}}}|center|link=]] }}
 
| colspan="2" | {{ #if: {{{Image|}}} | [[File:{{{Image|}}}|center|link=]] }}
 +
|-
 +
| 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>
 
|-
 
|-
 
| style="width:110px;" | '''Type:''' || [[{{{Type|}}}]]
 
| style="width:110px;" | '''Type:''' || [[{{{Type|}}}]]
Line 28: Line 31:
 
| '''Characteristics:''' || {{#arraymap:{{{Characteristics|}}}|,|x|[[x]]}}
 
| '''Characteristics:''' || {{#arraymap:{{{Characteristics|}}}|,|x|[[x]]}}
 
|-
 
|-
| '''Wine Color:''' || {{{Wine Color|}}}
+
| '''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 23:40, 7 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.