Difference between revisions of "Template:Varietal"

From Grapevine
Jump to: navigation, search
m (Removed page link for "Also called".)
m (Changed to infobox, added background color, and pagename.)
Line 14: Line 14:
 
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=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={{{Wine Color|}}} }}
! 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>
 +
|-
 +
| colspan="2" | {{ #if: {{{Image|}}} | [[File:{{{Image|}}}|center|450x100px|link=]] }}
 
|-
 
|-
 
! Type
 
! Type

Revision as of 22:31, 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=
}}

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