Difference between revisions of "Template:Meta link towards portal"

From EncyclopAtys

Jump to: navigation, search
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!-- IMPORTANT
+
<noinclude>{{{{FULLPAGENAME}}/Documentation}}</noinclude>
* Ne pas insérer de retour à la ligne en dehors des bornes « noinclude », à cause de bogue 9207 [https://bugzilla.wikimedia.org/show_bug.cgi?id=9207]
+
<div style="margin: 0em; padding:0.1em;
* Laissez une espace entre chacun des différents éléments (icône, texte, séparateur, ...)
+
border: medium ridge #{{ColorAtys|type=light|group={{{palette}}}}};
* Le fonctionnement technique du modèle est expliqué en sous-page de documentation
+
border-width: medium;
-->{{#ifeq:{{{parent|none}}}|none|<ul id="banner-portal" class="banner-portal">}}<li><span class="banner-portal-element"><span class="banner-portal-icon">[[File:{{{icon|Stub.png}}}|48x24px|{{{title}}}|link=Portal:{{{portal}}}]]</span> <span class="banner-portal-text">[[Portal:{{{portal}}}|{{{title}}}]]</span> {{#if:{{{sub-portal|}}}|• <span class="banner-sub-portal-text">[[Portal:{{{portal}}}/{{{sub-portal}}}|{{{title sub-portal}}}]]</span>}}</span></li>{{#ifeq:{{{parent|none}}}|none|</ul>}}<noinclude>
+
background-color: #{{ColorAtys|type=bg|group={{{palette}}}}};
{{{{FULLPAGENAME}}/Documentation}}
+
background: linear-gradient(#{{ColorAtys|type=bg|group={{{palette}}}}}, #{{ColorAtys|type=light|group={{{palette}}}}});
 +
color: #000;
 +
font-size: 1em;
 +
font-weight:bold;
 +
text-shadow: #333 .1em .1em .1em, #fff -.1em -.1em .1em;
 +
text-shadow: #{{ColorAtys|type=dark|group={{{palette}}}}} .1em .1em .1em, #{{ColorAtys|type=light|group={{{palette}}}}} -.1em -.1em .1em;
 +
text-shadow: #{{ColorAtys|type=bg|group={{{palette}}}}} -.05em -.05em .05em, #{{ColorAtys|type=fg|group={{{palette}}}}} .15em .15em .3em, #{{ColorAtys|type=bg|group={{{palette}}}}} -.04em -.04em .04em;
 +
text-align: center;"><!--
 +
-->[[File:{{{icon|Stub.png}}}|{{{size|48x24}}}px|{{{title}}}|link=Portal:{{{portal}}}]] [[Portal:{{{portal}}}|{{{title}}}]] {{#if:{{{sub-portal|}}}|• [[Portal:{{{portal}}}/{{{sub-portal}}}|{{{title sub-portal}}}]]}}</div><noinclude>
 
[[Category:Template:Portal]]
 
[[Category:Template:Portal]]
[[Category:Exclure lors de l'impression]]
+
[[Category:Exclude in print]]
 
</noinclude>
 
</noinclude>

Latest revision as of 14:25, 5 August 2018

en:Template:Meta link towards portal/Documentation
fr:Modèle:Méta lien vers portail/Documentation
 
UnderConstruction.png
Translation to review
Don't blame the contributors, but come and help them 😎

Reference text ( Maintained text, used as reference ) :
Notes: (Zorroargh, 2018-08-05)

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:


link=Portal:{{{portal}}} [[Portal:{{{portal}}}|{{{title}}}]]