Difference between revisions of "Template:Infobox recipe"

Jump to navigation Jump to search
attemps to apply imageclass
(removes wikibooks and wikimedia commons templates)
(attemps to apply imageclass)
 
(12 intermediate revisions by the same user not shown)
Line 8: Line 8:
                 | {{#if:{{{name|}}} |{{{name}}} |<includeonly>{{PAGENAME}}</includeonly>}}
                 | {{#if:{{{name|}}} |{{{name}}} |<includeonly>{{PAGENAME}}</includeonly>}}
               }}
               }}
| imageclass = photo
| image      = {{#invoke:InfoboxImage|InfoboxImage |image={{{image|}}} |size={{{image_size|}}} |sizedefault=frameless |alt={{{image_alt|{{{alt|}}}}}} }}
| image      = {{#invoke:InfoboxImage|InfoboxImage |image={{{image|}}} |size={{{image_size|}}} |sizedefault=frameless |alt={{{image_alt|{{{alt|}}}}}} }}
| captionstyle = {{#if:{{{caption|}}} |padding-bottom:0.25em;border-bottom:1px solid #aaa;}}
| captionstyle = {{#if:{{{caption|}}} |padding-bottom:0.25em;border-bottom:1px solid #aaa;}}
Line 14: Line 15:
| labelstyle = padding-right:0.65em;<!--(to ensure some gap between (non-wrapped) labels and subsequent data)-->
| labelstyle = padding-right:0.65em;<!--(to ensure some gap between (non-wrapped) labels and subsequent data)-->


| rowclass3 = note
| rowclass2 = note
| label3     = {{longitem|Alternative names}}
| label2     = {{longitem|Alternative names}}
| data3     = {{{alternate_name|{{{alternate name|}}}}}}
| data2     = {{{alternate_name|{{{alternate name|}}}}}}
 
| rowclass3  = summary
| label3    = Summary
| data3      = {{{summary|}}}


| label4    = Type
| label4    = Type
Line 22: Line 27:


| rowclass5  = note
| rowclass5  = note
| label5    = {{longitem|Place of origin}}
| label5    = {{longitem|Location of creation}}
| class5    = country-name
| class5    = location-of-creation
| data5      = {{{country|}}}
| data5      = {{{location|}}}
 
| rowclass7  = note
| label7    = {{longitem|Region or state}}
| class7    = region
| data7      = {{{region|}}}
 
| label9    = {{longitem|Associated [[:Category:Cuisine by nationality|national&nbsp;cuisine]]}}
| data9      = {{{national_cuisine|}}}


| rowclass11 = note
| rowclass11 = note
Line 39: Line 36:
| data11    = {{{creator|}}}
| data11    = {{{creator|}}}


| label13   = {{longitem|Year&nbsp;of invention}}
| label12   = {{longitem|Date&nbsp;of creation}}
| data13    = {{{year|}}}
| data12    = {{{Date|}}}


<!----------------------Cooking time----------------------->
<!----------------------Cooking time----------------------->
| label15    = {{longitem|Cooking time}}
 
| label13    = {{longitem|Prep time}}
| class13    = preptime
| data13    = {{{preptime|}}}
 
| label14    = {{longitem|Cook time}}
| class14    = cooktime
| data14    = {{{cooktime|}}}
 
| label15    = {{longitem|Total time}}
| class15    = duration
| data15    = {{#if:{{{time1|}}}{{{time2|}}}
| data15    = {{#if:{{{time1|}}}{{{time2|}}}
                 | {{nowrap
                 | {{nowrap
Line 67: Line 74:


| label16    = Complexity
| label16    = Complexity
| data16    = {{#if:{{{complexity|}}} |[[{{{complexity|}}}|{{#switch:{{{complexity|}}} |1=Very easy |2=Easy |3=Average |4=Difficult |5=Very difficult}}]] }}
| data16    = {{#if:{{{complexity|}}} | {{#switch:{{{complexity|}}} |1=Very easy |2=Easy |3=Average |4=Difficult |5=Very difficult}} | }}


| label17    = {{longitem|Serving temperature}}
| label17    = {{longitem|Serving temperature}}
Line 80: Line 87:
| data21    = {{{minor_ingredient|}}}
| data21    = {{{minor_ingredient|}}}


| label23    = Variations
| label22    = Yield
| data23     = {{{variations|}}}
| class22    = yield
| data22    = {{{yield|}}}
 
| label23   = Instructions
| class23    = instructions
| data23    = {{{instructions|}}}
 
| label24   = Variations
| data24     = {{{variations|}}}


<!-----------------------Food energy----------------------->
<!-----------------------Food energy----------------------->

Navigation menu