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

From EncyclopAtys

Jump to: navigation, search
Line 1: Line 1:
{{#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>
+
<!-- IMPORTANT
 +
* 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]
 +
* Laissez une espace entre chacun des différents éléments (icône, texte, séparateur, ...)
 +
* Le fonctionnement technique du modèle est expliqué en sous-page de documentation
 +
-->{{#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>
 
{{{{FULLPAGENAME}}/Documentation}}
 
{{{{FULLPAGENAME}}/Documentation}}
 
[[Category:Template:Portal]]
 
[[Category:Template:Portal]]
 
[[Category:Exclure lors de l'impression]]
 
[[Category:Exclure lors de l'impression]]
 
</noinclude>
 
</noinclude>

Revision as of 20:12, 9 March 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-03-09)

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: