« Modèle:Numbered subpages/doc » : différence entre les versions

De Wiki Clubelek
syntaxhighlight lang="wikitext"
 
Antoine.rochebois (discussion | contributions)
m 1 version importée
 
(Aucune différence)

Dernière version du 14 avril 2024 à 11:52

Modèle:Documentation subpage Modèle:Lua

Template to show numbered subpages arranged ascendingly from 1 to maximum.

Usage

Simple

{{Numbered subpages}}

Full parameters

{{Numbered subpages
|max=
|min=
|missing=
|headertemplate=
|SPAN=
|preload=
|inline=
}}

Parameters

Modèle:Para
You can use the Modèle:Para parameter to change the number of transcluded and linked subpages. Note that large numbers of subpages will cause problems with the server post-expand size limits.
Modèle:Para
To terminate the loop when a non-existing subpage is encountered.
Modèle:Para
To skip non-existing subpages.
Modèle:Para
To link, but not transclude missing subpages.
Modèle:Para and Modèle:Para
To use a preload template for missing pages links.
Modèle:Para
Boolean parameter to switch from default {{Portal subpage}} to {{Portal subpage inline}}. This is well suited for single-hook "Did you know" subpages.

Customization of {{Portal subpage}}

Modèle:Para
To customize box header template. By default, subpage /box-header of the portal is used.

Parameter Modèle:Para is passed to {{Portal subpage}} as is. See Template:Box-header/doc for details.

Examples

This is an example of use of the template as it would be found on the "Selected quotes" sub-page that is a component of a portal created using the {{box portal skeleton}}. Simply placing the template on the page is all that is needed to show all selected quotes stored in sub-pages linked to it, however using the template as part of a fully formed description makes it easier for other editors to modify the page as needed.

__NOTOC__
== Instructions ==
# Add a new Selected quote to the next available subpage using {{tl|cquote}}.
# {{edit|Portal:{{subst:BASEPAGENAME}}|Update {{para|max}} to new total for its {{tnull|Random portal component}} on the portal page.}}
{{purge page}}

{{Numbered subpages}}

{{purge page}}

Used templates

Tracking category

See also

Erreur de script : le module « Navbar » n’existe pas. Portal content templates

Main portal page formatting templates Modèle:Div col

Modèle:Div col end

Templates that configure links Modèle:Div col

Modèle:Div col end

Selected page templates, used on subpages of older portals Modèle:Div col

Modèle:Div col end

Related templates

Modèle:Portal templates navbox