Munur á milli breytinga „Snið:Infoboxtakn“

Úr SignWiki
Jump to navigation Jump to search
Lína 1: Lína 1:
 
<div style="width:250px;background-color:white;float:right;clear:right;margin:-1em 0 1em 1em;border:1px solid;-moz-border-radius:12px;padding:12px 12px 12px 12px;">
 
<div style="width:250px;background-color:white;float:right;clear:right;margin:-1em 0 1em 1em;border:1px solid;-moz-border-radius:12px;padding:12px 12px 12px 12px;">
 
<div style="text-align:center;font-size:16px;font-weight:bold;line-height:1.5em;">{{{name}}}</div>
 
<div style="text-align:center;font-size:16px;font-weight:bold;line-height:1.5em;">{{{name}}}</div>
<div>{{{Image|}}}|[[Image:{{{Image}}}|250px|alt={{PAGENAME}}]]|[[Image:addphoto.gif|250px|center|link=Special:Upload]]}}</div>
+
<div> {{#if:{{{Image|}}}|[[Image:{{{Image}}}|250px|alt={{PAGENAME}}]]|[[Image:addphoto.gif|250px|center|link=Special:Upload]]}}</div>
 
<div style="text-align:center;font-size:12px;font-weight:bold;line-height:1.5em;">{{{texti}}}</div>
 
<div style="text-align:center;font-size:12px;font-weight:bold;line-height:1.5em;">{{{texti}}}</div>
 
<div style="clear:left;font-size:12px;text-align:center;">
 
<div style="clear:left;font-size:12px;text-align:center;">

Útgáfa síðunnar 18. október 2011 kl. 12:04

{{{name}}}
{{{texti}}}
Orðflokkur
[[:category:{{{ordflokkur}}}|{{{ordflokkur}}}]]
Efnisflokkur
[[:category:{{{efnisflokkur}}}|{{{efnisflokkur}}}]]
Myndunarstaður
[[:category:{{{myndunarstadur}}}|{{{myndunarstadur}}}]]
Handform
[[:category:{{{handform}}}|{{{handform}}}]]
Munnhreyfing
{{{munnhreyfing}}}
Samheiti
{{{samheiti}}}
Tengd tákn
{{{tengsl1}}}
-
{{{tengsl2}}}
-
{{{tengsl3}}}
Annað
{{{annad}}}
{{{myndatexti}}}

{{#if:|

Usage

{{Infoboxtakn
| Image=   <!-- e.g. food.jpg>
| name=
| texti=  
| youtube= <!-- Youtube unique ID -->  
| ordflokkur=    <!--- t.d. sagnorð eða persónufornafn  -->
| prep-time=    <!--- Write down minutes. 2 hours are 60 minutes --> 
| myndunarstadur=  
| handform= 
| tengsl1=
| tengsl2=
| tengsl3=
| major-cooking-method=
| dish-type=  <!--- breakfast, lunch, dinner, snack, dessert, side dish, main -->
| credit=   
| <!--- Only answer "yes". If the answer is no, leave it blank -->
| vegetarian=
| diet-friendly=
| diabetic=
| vegan=
| gluten-free=
| halal=
| kosher=
}}