Jump to content

Template:Portal: Difference between revisions

From IdeaWazaWiki
wikademia>Gbaor
new portal related template
wikademia>Wikademia
m 161 revisions
 
(16 intermediate revisions by 5 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="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: transparent; font-size:90%;"
|| [[Image:{{{1}}}|36px|Portal]]
| [[Image:{{{image|{{{2|Portal.svg}}}}}}|36px|Portal]]
|| '''''[[Portal:{{{2}}}|{{{2}}} portal]]'''''
| '''''[[Portal:{{{1}}}|{{{1}}} portal]]'''''
|}
|}
</div>
</div>
Line 8: Line 8:
<noinclude>
<noinclude>
== Usage ==
== Usage ==
The template is used to create an internal link to desired portal with graphical enhancement. It should consist from three parts.
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 ===
=== Example ===
'''<nowiki>{{Portal|Portal.svg|Life sciences}}</nowiki>'''
'''<nowiki>{{Portal|Life Sciences}}</nowiki>'''


''1st part:'' - Portal - The name of the basic stub template, this shoud not be changed.<br>
''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>
''2nd part:'' - Life sciences - The name of the portal. Brackets ''[[ ]]'' are not needed, but the correct spelling should be used.<br>
''3rd part:'' - Life sciences - The name of the portal. Brackets ''[[ ]]'' are not needed.<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 ===
=== Result ===
The example will look like this:
The example will look like this:


{{Portal|Portal.svg|Life sciences}}
'''<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