Template:Portal: Difference between revisions
Appearance
wikademia>Happy-melon rewrite per editprotected |
wikademia>Wikademia m 161 revisions |
||
| (9 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
<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}};"> | <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: | {| style="background: transparent; font-size:90%;" | ||
| [[Image:{{{image|{{{2|Portal.svg}}}}}}| | | [[Image:{{{image|{{{2|Portal.svg}}}}}}|36px|Portal]] | ||
| '''''[[Portal:{{{1}}}|{{{1}}} portal]]''''' | |||
|} | |} | ||
</div><noinclude> | </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> | |||
Latest revision as of 06:15, 27 April 2009
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
- Template:School - similar template for schools