Plantilla:Fancy-image lead: diferència entre les revisions
[canvi no comprovat] | [versió verificada] |
Contingut suprimit Contingut afegit
Cap resum de modificació |
Cap resum de modificació |
||
Línia 4: | Línia 4: | ||
<div style="position:absolute;width:{{{text-width|{{{width|0px}}}}}};left:{{{x|0em}}};top:{{{y|0em}}};margin:{{{box-offset|5px}}};padding:{{{text-offset|5px}}};text-align:center;background:{{{shadow|transparent}}};filter:alpha(opacity={{{opacity|50}}});-moz-opacity:.{{{opacity|50}}};opacity:.{{{opacity|50}}};"><!-- |
<div style="position:absolute;width:{{{text-width|{{{width|0px}}}}}};left:{{{x|0em}}};top:{{{y|0em}}};margin:{{{box-offset|5px}}};padding:{{{text-offset|5px}}};text-align:center;background:{{{shadow|transparent}}};filter:alpha(opacity={{{opacity|50}}});-moz-opacity:.{{{opacity|50}}};opacity:.{{{opacity|50}}};"><!-- |
||
--></div> |
--></div> |
||
<div style="position:absolute;width:{{{text-width|{{{width|0px}}}}}};left:{{{x|0em}}};top:{{{y|0em}}};margin:{{{box-offset|5px}}};padding:{{{text-offset|5px}}};text-align:center;background:# |
<div style="position:absolute;width:{{{text-width|{{{width|0px}}}}}};left:{{{x|0em}}};top:{{{y|0em}}};margin:{{{box-offset|5px}}};padding:{{{text-offset|5px}}};text-align:center; background: #FFF; background:rgba(255,255,255,.5);"><!-- |
||
-->{{#ifexist:{{{link|}}}|[[{{{link}}}|<span style="color:{{{color|white}}}; font:{{{font|bold 18px veranda,sans-serif; line-height:1em;}}};"><!-- |
-->{{#ifexist:{{{link|}}}|[[{{{link}}}|<span style="color:{{{color|white}}}; font:{{{font|bold 18px veranda,sans-serif; line-height:1em;}}};"><!-- |
||
-->{{{news|{{{link}}}}}}</span>]]}}</div> |
-->{{{news|{{{link}}}}}}</span>]]}}</div> |
Revisió del 23:35, 21 des 2012
Una plantilla per mostrar les històries més recents amb una imatge i un enllaç.
Ús
Aquest codi
{{fancy-image lead | width=375px | x=45px | y=217px <!-- should be identical to the default link in the imagemap --> |link=Bush and Putin suggest potential for World War III <!-- what the news should read --> |news=Bush and Putin suggest potential for World War III <!-- the edit link should always point here --> |edit=User:Darklama/Headline |imagemap= <imagemap> Image:Nimrod.mr2.arp.jpg|center|375px default [[ Leaked emails show UK RAF were aware of Nimrod problems prior to fatal crash]] desc none </imagemap> <!-- should be identical to name of image used in the image map --> |credit=Vladimir Putin and George W. Bush.jpg |shadow=white |color=darkblue }}
Fa això: