Mal:Portal: Forskjell mellom sideversjoner

Fra wikisida.no
Hopp til navigering Hopp til søk
Converting to accept EITHER named or numbered parameters
Adding boxsize parameter and correcting capitalization of parameter names in documentation
Linje 1: Linje 1:
<div class="tright" style="margin: 0 0 1em 1em; border: solid #aaa 1px; background: #f9f9f9; padding: 1ex; font-size: 90%;">
<div class="tright" style="margin: 0 0 1em 1em; border: solid #aaa 1px; background: #f9f9f9; padding: 1ex; font-size: 90%;">
{| style="background: transparent;"
{| style="background: transparent;" width={{{boxsize|{{{4|0}}}}}}px
|<div style="position: relative; width: 36px; height: 32px; overflow: hidden">
|<div style="position: relative; width: 36px; height: 32px; overflow: hidden">
<div style="position: absolute; top: 0px; left: 0px; font-size: 100px; overflow: hidden; line-height: 100px; z-index: 3">[[Portal:{{{name|{{{1|{{PAGENAME}}}}}}}}|&nbsp;&nbsp;&nbsp;]]</div>
<div style="position: absolute; top: 0px; left: 0px; font-size: 100px; overflow: hidden; line-height: 100px; z-index: 3">[[Portal:{{{name|{{{1|{{PAGENAME}}}}}}}}|&nbsp;&nbsp;&nbsp;]]</div>
Linje 13: Linje 13:


;Optional parameters
;Optional parameters
  <nowiki>{{Portal|Name|Image|Size}}</nowiki>
  <nowiki>{{Portal|name|image|size|boxsize}}</nowiki>
==Location==
==Location==
This template is placed at the bottom of the article in the "See also" section.
This template is placed at the bottom of the article in the "See also" section.

Sideversjonen fra 1. mai 2006 kl. 15:25

Use

This template is used to link an article to its related portal

Optional parameters
{{Portal|name|image|size|boxsize}}

Location

This template is placed at the bottom of the article in the "See also" section.