Plantilla:Fancy-image lead: diferència entre les revisions

De Viquinotícies
[canvi no comprovat][canvi no comprovat]
Contingut suprimit Contingut afegit
Es desfà la revisió 33591 de Aljullu (Discussió)
Cap resum de modificació
Línia 3: Línia 3:
{{{imagemap}}}
{{{imagemap}}}
<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>
-->{{#ifexist:{{{link|}}}|<span style="color:{{{shadow|{{{color|white}}}}}}; font:{{{font|bold 18px veranda,sans-serif; line-height:1em;}}};"><!--
-->{{{news|{{{link}}}}}}</span>}}</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:transparent;"><!--
<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:transparent;"><!--
-->{{#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;}}};"><!--

Revisió del 22:31, 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ò: