Jump to content

Template:Portal: Difference between revisions

From IdeaWazaWiki
wikademia>Gbaor
m noinclude fix to avoid wrong categorization
wikademia>Happy-melon
rewrite per editprotected
Line 1: Line 1:
<div style="margin: 0 0 1em 1em; border: solid #aaa 1px; background: #f9f9f9; padding: 1ex; font-size: 90%;" class="thumb tright">
<div class="{{#ifeq:{{{left|}}}|yes|tleft|tright}} portal" style="border:solid #aaa 1px;margin:{{#ifeq:{{{left|}}}|yes|0.5em 0.5em 0.5em 0|0.5em 0 0.5em 0.5em}};">
{| style="background: transparent;"
{| style="background:#f9f9f9; font-size:85%; line-height:110%; {{#if: {{{boxsize|{{{4|}}}}}} | width:{{{boxsize|{{{4}}}}}}px;}}"
|| [[Image:Portal.svg|36px|Portal]]
| [[Image:{{{image|{{{2|Portal.svg}}}}}}|{{{size|{{{3|32}}}}}}x28px]]
|| '''''[[Portal:{{{1}}}|{{{1}}} portal]]'''''
| style="padding:0 0.2em;" | '''''[[Portal:{{{name|{{{1|{{PAGENAME}}}}}}}}|{{{name|{{{1|{{PAGENAME}}}}}}}}{{#ifeq:{{{break|}}}|yes|<br />|&#32;}}Portal]]'''''
|}
|}
</div>
</div><noinclude>
 
{{documentation}}<!--Please add any interwiki links etc on the /doc page, not here - thanks!--></noinclude>
<noinclude>
== Usage ==
The template is used to create an internal link to desired portal with graphical enhancement. It can be used as a quick link from schools, categories or other portal related pages. It should consist from two parts.
 
=== Example ===
'''<nowiki>{{Portal|Life Sciences}}</nowiki>'''
 
''1st part:'' - Portal - The name of the basic stub template, this shoud not be changed.<br>
''2nd part:'' - Life sciences - The name of the portal. Brackets ''[[ ]]'' are not needed, but the correct spelling should be used.<br>
 
=== Result ===
The example will look like this:
 
{{Portal|Life Sciences}}
 
[[Category:Internal link templates|{{PAGENAME}}]]
 
</noinclude>

Revision as of 21:32, 15 April 2008

[create] Template documentation