Jump to content

Template:Portal: Difference between revisions

From IdeaWazaWiki
wikademia>Nihiltres
Replaced 'class="tright"' with 'class="{{#ifeq:{{{left|no}}}|yes|tleft|tright}}"' per editprotected on talk by Anomie
wikademia>Wikademia
m 161 revisions
 
(19 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<div class="{{#ifeq:{{{left|no}}}|yes|tleft|tright}}" style="border:solid #aaa 1px; background:#f9f9f9; margin:0.5em 0 0.5em 0.5em; font-size:85%;">
<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;" width={{{boxsize|{{{4|0}}}}}}
{| style="background: transparent; font-size:90%;"
| <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:{{{image|{{{2|Portal.svg}}}}}}|36px|Portal]]
| '''''[[Portal:{{{name|{{{1|{{PAGENAME}}}}}}}}|{{{name|{{{1|{{PAGENAME}}}}}}}}{{#ifeq:{{{break|}}}|yes|<br />|&#32;}}Portal]]'''''
| '''''[[Portal:{{{1}}}|{{{1}}} portal]]'''''
|}</div><noinclude>{{pp-template|small=yes}}{{clear}}{{/doc}}
|}
<!--Please add any interwiki links etc on the /doc page, not here - thanks!-->
</div>
 
<noinclude>
== Usage ==
The template is used to create an [[Making links#Terminology|internal link]] to desired [[Wikademia:Portal|portal]] with graphical enhancement. It can be used as a quick link from [[Wikademia:Schools|schools]], [[Wikademia:Categories|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>
''3rd part (optional):'' - You can specify any image for particular template. If this part is not included, the image [[:Image:Portal.svg|Portal.svg]] will be displayed by default.
 
=== Result ===
The example will look like this:
 
'''<nowiki>{{Portal|Life Sciences}}</nowiki>'''  {{Portal|Life Sciences}}
<p>
 
'''<nowiki>{{Portal|Life Sciences|Bees Collecting Pollen cropped.jpg}}</nowiki>'''  {{Portal|Life Sciences|Bees Collecting Pollen cropped.jpg}}
 
 
== See also ==
* [[Template:School]] - similar template for schools
 
[[Category:Internal link templates|{{PAGENAME}}]]
 
</noinclude>
</noinclude>

Latest revision as of 06:15, 27 April 2009

Portal [[Portal:{{{1}}}|{{{1}}} portal]]


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

{{Portal|Life Sciences}}

1st part: - Portal - The name of the basic stub template, this shoud not be changed.
2nd part: - Life sciences - The name of the portal. Brackets [[ ]] are not needed, but the correct spelling should be used.
3rd part (optional): - You can specify any image for particular template. If this part is not included, the image Portal.svg will be displayed by default.

Result

The example will look like this:

{{Portal|Life Sciences}}


{{Portal|Life Sciences|Bees Collecting Pollen cropped.jpg}}



See also