Jump to content

Template:Portal: Difference between revisions

From IdeaWazaWiki
wikademia>Unisouth
No edit summary
wikademia>Wikademia
m 161 revisions
 
(47 intermediate revisions by 18 users not shown)
Line 1: Line 1:
<div style="margin: 0 0 1em 1em; border: solid #aaa 1px; background: #f9f9f9; padding: 1ex; font-size: 90%;" class="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;" width={{{boxsize|{{{4|0}}}}}}
{| style="background: transparent; font-size:90%;"
|<div style="position: relative; width: 36px; height: 32px; overflow: hidden">
| [[Image:{{{image|{{{2|Portal.svg}}}}}}|36px|Portal]]
<div style="position: absolute; top: 0px; left: 0px; z-index: 2">[[Image:{{{image|{{{2|Portal.gif}}}}}}|{{{size|{{{3|36}}}}}}x32px|Portal:{{{name|{{{1|{{PAGENAME}}}}}}}}]]</div>
| '''''[[Portal:{{{1}}}|{{{1}}} portal]]'''''
|}
</div>
</div>
|| '''''[[Portal:{{{name|{{{1|{{PAGENAME}}}}}}}}|{{{name|{{{1|{{PAGENAME}}}}}}}} Portal]]'''''
|}
</div><noinclude>
==Use==
This template is used to link an article to its related [[Portal:Browse|portal]]


;Optional parameters
<noinclude>
<nowiki>{{Portal|name|image|size|boxsize}}</nowiki>
== Usage ==
==Location==
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.
This template is placed at the bottom of the article in the "See also" section.
 
=== 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


[[es:Plantilla:Portal]]
[[eu:Txantiloi:Atari]]
[[fi:Malline:Teemasivu]]
[[fr:Modèle:Portail]]
[[ja:Template:ウィキポータルリンク]]
[[mk:Шаблон:Портал]]
[[ru:Шаблон:Портал]]
[[sq:Stampa:Portal]]
[[zh:Template:Portal]]
[[Category:Internal link templates|{{PAGENAME}}]]
[[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