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

From EncyclopAtys

Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 8: Line 8:
  
 
<nowiki>{{</nowiki>{{BASEPAGENAME}}
 
<nowiki>{{</nowiki>{{BASEPAGENAME}}
|parent=aucun
+
|portal=...
|icône=...
+
|title=...
|titre=...
+
|icon=...
|portail=...
+
|titrl sub-portal=...
|titre sous-portail=...
+
|sub-portal=...
|sous-portail=...
 
 
}}
 
}}
  
 
== Settings ==
 
== Settings ==
* <code>parent</code> : if present, and with a value other than <code>parent</code>, allows the concatenation of sub-portal. '''To verify, algorithm locally incomplete or broken'''
+
* <code>portal</code> : Link in the portal.
 +
* <code>title</code> : Title of the portal.
 
* <code>icon</code> : Image used as icon portal. The image is reduced to the size of the banner. By default it is the icon "stub.png".
 
* <code>icon</code> : Image used as icon portal. The image is reduced to the size of the banner. By default it is the icon "stub.png".
* <code>title</code> : Title of the portal.
 
* <code>portal</code> : Link in the portal.
 
 
* <code>title sub-portal</code> : Sub-title possible.
 
* <code>title sub-portal</code> : Sub-title possible.
 
* <code>sub-portal</code> : Link associated with the sub-title.
 
* <code>sub-portal</code> : Link associated with the sub-title.
Line 28: Line 26:
 
<pre>
 
<pre>
 
{{Meta link towards portal
 
{{Meta link towards portal
 +
|portal=Portal
 
|title=Title
 
|title=Title
|portal=Portal
 
 
}}
 
}}
 
</pre>
 
</pre>
 
gives:
 
gives:
 
{{Meta link towards portal
 
{{Meta link towards portal
 +
|portal=Portal
 
|title=Title
 
|title=Title
|portal=Portal
 
 
}}
 
}}
  
Line 41: Line 39:
 
<pre>
 
<pre>
 
{{Meta link towards portal
 
{{Meta link towards portal
|parent=none
+
|portal=Portal
 +
|title=Title
 
|icon=Dummy.png
 
|icon=Dummy.png
|title=Title
+
|palette=zorai
|portal=Portal
 
 
|title sub-portal=Title sub-portal
 
|title sub-portal=Title sub-portal
 
|sub-portal=Sub-portal
 
|sub-portal=Sub-portal
Line 51: Line 49:
 
gives:
 
gives:
 
{{Meta link towards portal
 
{{Meta link towards portal
|parent=none
 
|icon=Dummy.png
 
|title=Title
 
 
|portal=Portal
 
|portal=Portal
|title sub-portal=Title sub-portal
 
|sub-portal=Sub-portal
 
}}
 
 
===With all the parameters filled in under parent===
 
<pre>
 
{{Meta link towards portal
 
|parent=parent
 
|icon=Dummy.png
 
 
|title=Title
 
|title=Title
|portal=Portal
 
|title sub-portal=Title sub-portal
 
|sub-portal=Sub-portal
 
}}
 
</pre>
 
gives:
 
{{Meta link towards portal
 
|parent=parent
 
 
|icon=Dummy.png
 
|icon=Dummy.png
|title=Title
+
|palette=zorai
|portal=Portal
 
 
|title sub-portal=Title sub-portal
 
|title sub-portal=Title sub-portal
 
|sub-portal=Sub-portal
 
|sub-portal=Sub-portal

Latest revision as of 12:37, 1 July 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-07-01)

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: