Vorlage:Numbered subpages/doc: Unterschied zwischen den Versionen

Aus OBS Wiki
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „I like Canoeing. Appears boring? Not at all!<br>I also try to learn Portuguese in my free time.<br><br>Look into my site; [http://www.maingaming.co.za/forum/v…“)
 
(update code)
Zeile 1: Zeile 1:
I like Canoeing. Appears boring? Not at all!<br>I also  try to learn Portuguese in my free time.<br><br>Look into my site; [http://www.maingaming.co.za/forum/viewtopic.php?f=11&t=84402 p89312]
{{Documentation subpage}}
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
{{lua|Module:Numbered subpages}}
 
Template to show numbered [[WP:subpages|subpages]] arranged ascendingly from 1 to maximum.
 
== Usage ==
Simple
<pre style="max-width:50%; overflow:auto;">
{{Numbered subpages}}
</pre>
 
Full parameters
<pre style="max-width:50%; overflow:auto;">
{{Numbered subpages
|max=
|min=
|missing=
|headertemplate=
|SPAN=
|preload=
|inline=
}}
</pre>
 
== Parameters ==
;{{para|max|<var>number</var>}}
:You can use the {{para|max}} parameter to change the number of transcluded and linked subpages.
;{{para|missing|stop}}
:To terminate the loop when a non-existing subpage is encountered.
;{{para|missing|skip}}
:To skip non-existing subpages.
;{{para|missing|link}}
:To link, but not transclude missing subpages.
;{{para|missing|link}} and {{para|preload|<var>preload template</var>}}
:To use a [[WP:preload|preload template]] for missing pages links.
;{{para|inline|true}}
:Boolean parameter to switch from default {{tl|Portal subpage}} to {{tl|Portal subpage inline}}. This is well suited for single-hook "Did you know" subpages.
 
=== Customization of <nowiki>{{Portal subpage}}</nowiki> ===
;{{para|headertemplate}}
:To customize box header template. By default, subpage <code>/box-header</code> of the portal is used.
 
Parameter {{para|SPAN}} is passed to {{tl|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 {{tl|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.
 
<syntaxhighlight lang="moin">
__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}}
</syntaxhighlight>
 
==Used templates==
* {{tl|Portal subpage}}
 
== See also ==
{{Portal template list}}
 
<includeonly>{{sandbox other||
<!-- Categories below this line; interwikis at Wikidata -->
[[Category:Wikipedia Portal templates]]
}}</includeonly>

Version vom 5. März 2021, 18:54 Uhr

Skriptfehler: Ein solches Modul „Message box“ ist nicht vorhanden. Vorlage: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

|max=number
You can use the |max= parameter to change the number of transcluded and linked subpages.
|missing=stop
To terminate the loop when a non-existing subpage is encountered.
|missing=skip
To skip non-existing subpages.
|missing=link
To link, but not transclude missing subpages.
|missing=link and |preload=preload template
To use a preload template for missing pages links.
|inline=true
Boolean parameter to switch from default
  1. REDIRECT Template:Template link

Vorlage:Redirect category shell to

  1. REDIRECT Template:Template link

Vorlage:Redirect category shell. This is well suited for single-hook "Did you know" subpages.

Customization of {{Portal subpage}}

|headertemplate=
To customize box header template. By default, subpage /box-header of the portal is used.

Parameter |SPAN= is passed to

  1. REDIRECT Template:Template link

Vorlage:Redirect category shell 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

  1. REDIRECT Template:Template link

Vorlage:Redirect category shell. 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

  1. REDIRECT Template:Template link

Vorlage:Redirect category shell

See also

Skriptfehler: Ein solches Modul „Navbar“ ist nicht vorhanden. Portal content templates

  • To display "selected content" on the portal main page
  1. REDIRECT Template:Template link

Vorlage:Redirect category shell—transcludes excerpts from recognized content lists, which are populated by a bot.

  1. REDIRECT Template:Template link

Vorlage:Redirect category shell—transcludes random portal subpage.

  1. REDIRECT Template:Template link

Vorlage:Redirect category shell—transcludes random portal subpage.

  1. REDIRECT Template:Template link

Vorlage:Redirect category shell—transcludes random portal subpages.

  1. REDIRECT Template:Template link

Vorlage:Redirect category shell—transcludes a slideshow of pictures, utilizing a single-page gallery.

  • To organize "selected content" on subpages
  1. REDIRECT Template:Template link

Vorlage:Redirect category shell—outputs an automatic index, transcluding numbered subpages.

  1. REDIRECT Template:Template link

Vorlage:Redirect category shell—outputs a box linking to and transcluding a single subpage.

  1. REDIRECT Template:Template link

Vorlage:Redirect category shell—outputs an unordered list item linking to and transcluding a single subpage.

Main portal page formatting templates Vorlage:Div col

  1. REDIRECT Template:Template link

Vorlage:Redirect category shell

  1. REDIRECT Template:Template link

Vorlage:Redirect category shell

  1. REDIRECT Template:Template link

Vorlage:Redirect category shell

  1. REDIRECT Template:Template link

Vorlage:Redirect category shell

  1. REDIRECT Template:Template link

Vorlage:Redirect category shell

  1. REDIRECT Template:Template link

Vorlage:Redirect category shell Vorlage:Div col end

Templates that configure links Vorlage:Div col

  1. REDIRECT Template:Template link

Vorlage:Redirect category shell

  1. REDIRECT Template:Template link

Vorlage:Redirect category shell

  1. REDIRECT Template:Template link

Vorlage:Redirect category shell

  1. REDIRECT Template:Template link

Vorlage:Redirect category shell

  1. REDIRECT Template:Template link

Vorlage:Redirect category shell

  1. REDIRECT Template:Template link

Vorlage:Redirect category shell

  1. REDIRECT Template:Template link

Vorlage:Redirect category shell

  1. REDIRECT Template:Template link

Vorlage:Redirect category shell Vorlage:Div col end

Selected page templates, used on subpages of older portals Vorlage:Div col

  1. REDIRECT Template:Template link

Vorlage:Redirect category shell

  1. REDIRECT Template:Template link

Vorlage:Redirect category shell

  1. REDIRECT Template:Template link

Vorlage:Redirect category shell

  1. REDIRECT Template:Template link

Vorlage:Redirect category shell

  1. REDIRECT Template:Template link

Vorlage:Redirect category shell

  1. REDIRECT Template:Template link

Vorlage:Redirect category shell

  1. REDIRECT Template:Template link

Vorlage:Redirect category shell

  1. REDIRECT Template:Template link

Vorlage:Redirect category shell

  1. REDIRECT Template:Template link

Vorlage:Redirect category shell

  1. REDIRECT Template:Template link

Vorlage:Redirect category shell

  1. REDIRECT Template:Template link

Vorlage:Redirect category shell

  1. REDIRECT Template:Template link

Vorlage:Redirect category shell Vorlage:Div col end

Related templates

  1. REDIRECT Template:Template link

Vorlage:Redirect category shell

Vorlage:Portal templates navbox