Jump to content

Template:Portal: Difference between revisions

From IdeaWazaWiki
wikademia>Chmod007
CSS class portal
wikademia>Gbaor
new portal related template
Line 1: Line 1:
<div class="{{#ifeq:{{{left|no}}}|yes|tleft|tright}} portal" style="border:solid #aaa 1px; background:#f9f9f9; margin:0.5em 0 0.5em 0.5em; font-size:85%;">
<div style="margin: 0 0 1em 1em; border: solid #aaa 1px; background: #f9f9f9; padding: 1ex; font-size: 90%;" class="thumb tright">
{| style="background:transparent;" width={{{boxsize|{{{4|0}}}}}}
{| style="background: transparent;"
| <div style="position:relative; width:{{{size|{{{3|32}}}}}}px; height:28px; overflow:hidden"><div style="position:absolute; top:0px; left:0px; z-index:2;"> [[Image:{{{image|{{{2|Portal.svg}}}}}}|{{{size|{{{3|32}}}}}}x28px]]</div></div>
|| [[Image:{{{1}}}|36px|Portal]]
| '''''[[Portal:{{{name|{{{1|{{PAGENAME}}}}}}}}|{{{name|{{{1|{{PAGENAME}}}}}}}}{{#ifeq:{{{break|}}}|yes|<br />|&#32;}}Portal]]'''''
|| '''''[[Portal:{{{2}}}|{{{2}}} portal]]'''''
|}</div><noinclude>
|}
{{documentation}}<!--Please add any interwiki links etc on the /doc page, not here - thanks!--></noinclude>
</div>
 
<noinclude>
== Usage ==
The template is used to create an internal link to desired portal with graphical enhancement. It should consist from three parts.
 
=== Example ===
'''<nowiki>{{Portal|Portal.svg|Life sciences}}</nowiki>'''
 
''1st part:'' - Portal - The name of the basic stub template, this shoud not be changed.<br>
''2nd part:'' - Portal.svg - The image, that will be used in the template, but '''without''' the "Image:" prefix or the desired size. They are already included in the basic template. <br>
''3rd part:'' - Life sciences - The name of the portal. Brackets ''[[ ]]'' are not needed.<br>
 
=== Result ===
The example will look like this:
 
{{Portal|Portal.svg|Life sciences}}
 
</noinclude>

Revision as of 14:10, 17 March 2008

[[Image:{{{1}}}|36px|Portal]] [[Portal:{{{2}}}|{{{2}}} portal]]


Usage

The template is used to create an internal link to desired portal with graphical enhancement. It should consist from three parts.

Example

{{Portal|Portal.svg|Life sciences}}

1st part: - Portal - The name of the basic stub template, this shoud not be changed.
2nd part: - Portal.svg - The image, that will be used in the template, but without the "Image:" prefix or the desired size. They are already included in the basic template.
3rd part: - Life sciences - The name of the portal. Brackets [[ ]] are not needed.

Result

The example will look like this: