Difference between revisions of "Template:Meta link towards portal"
From EncyclopAtys
Line 10: | Line 10: | ||
color: #6f9; text-shadow: #000 .2em .2em .3em, #000 .1em .1em .1em, #fff -.1em -.1em .1em; | color: #6f9; text-shadow: #000 .2em .2em .3em, #000 .1em .1em .1em, #fff -.1em -.1em .1em; | ||
color: #000; text-shadow: #9ff .1em .1em .5em, #0ff -.1em -.1em .3em, #033 .1em .1em .1em;"><!-- | color: #000; text-shadow: #9ff .1em .1em .5em, #0ff -.1em -.1em .3em, #033 .1em .1em .1em;"><!-- | ||
− | -->{{#ifeq:{{{parent|none}}}|none|<ul style="text-align: center; margin: 0em; padding:0.3em; border-width: 0 thin thick thin;">}}<li>[[File:{{{icon|Stub.png}}}|48x24px|{{{title}}}|link=Portal:{{{portal}}}]][[Portal:{{{portal}}}|{{{title}}}]] {{#if:{{{sub-portal|}}}|• [[Portal:{{{portal}}}/{{{sub-portal}}}|{{{title sub-portal}}}]]}}</li>{{#ifeq:{{{parent|none}}}|none|</ul>}}<noinclude> | + | -->{{#ifeq:{{{parent|none}}}|none|<ul style="text-align: center; margin: 0em; padding:0.3em; border-width: 0 thin thick thin;">}}<li>[[File:{{{icon|Stub.png}}}|48x24px|{{{title}}}|link=Portal:{{{portal}}}]][[Portal:{{{portal}}}|{{{title}}}]] {{#if:{{{sub-portal|}}}|• [[Portal:{{{portal}}}/{{{sub-portal}}}|{{{title sub-portal}}}]]}}</li>{{#ifeq:{{{parent|none}}}|none|</ul>}}</div><noinclude> |
[[Category:Template:Portal]] | [[Category:Template:Portal]] | ||
[[Category:Exclure lors de l'impression]] | [[Category:Exclure lors de l'impression]] | ||
</noinclude> | </noinclude> |
Revision as of 13:32, 14 March 2018
Contents
Usage
The template Meta link towards portal allows you to display banners of portal.
Syntax
{{Meta link towards portal |portal=... |title=... |icon=... |titrl sub-portal=... |sub-portal=... }}
Settings
-
portal
: Link in the portal. -
title
: Title of the portal. -
icon
: Image used as icon portal. The image is reduced to the size of the banner. By default it is the icon "stub.png". -
title sub-portal
: Sub-title possible. -
sub-portal
: Link associated with the sub-title.
Example
The minimum
{{Meta link towards portal |portal=Portal |title=Title }}
gives:
With all the parameters filled in
{{Meta link towards portal |portal=Portal |title=Title |icon=Dummy.png |palette=zorai |title sub-portal=Title sub-portal |sub-portal=Sub-portal }}
gives: