Anonymous
Not logged in
Talk
Contributions
Create account
Log in
Search
Editing
Template:Numbered subpages/doc
From MEpedia, a crowd-sourced encyclopedia of ME and CFS science and history
Namespaces
Template
Discussion
More
More
Page actions
Read
Edit source
History
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> == Template layout == <pre width="50%"> {{Numbered subpages}} </pre> Additionally, you can use the {{tl|25 numbered subpages}} or {{tl|75 numbered subpages}} templates to change the number of links on the subpages. ==Usage== Template to show numbered sub-pages arranged ascendingly from 1 to maximum. Max must be defined in Template by repeating parameters used in forLoop template till maximum. Maximum is defined as 25, 50, 75, or 100, depending on the version used. === Example === This is an example of use of the template as it would be found on the "Selected articles" 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 articles 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. <pre> __NOTOC__ == Usage == The template used for the creation of these sub-pages is located at {{tl|Selected article}} # Add a new Selected article to the next available subpage. # Update "max=" to new total for its {{tl|Random portal component}} on the main page. {{Numbered subpages}} </pre> ==Trivial== passing parameter as maximum is not supported yet. In fact its only way is by using #for (MediaWiki 1.7+);In fact this template would be much easier if used #for but it is a part of MediaWiki 1.7 (not used yet). ==Used Templates== *[[Template:For loop]] *[[Template:For/aux]] *[[Template:subpage]] == See also == <includeonly> <!-- ADD CATEGORIES BELOW THIS LINE --> [[Category:Portal templates]] </includeonly>
Summary:
Please make sure your edits are consistent with
MEpedia's guidelines
.
By saving changes, you agree to the
Terms of use
, and you irrevocably agree to release your contribution under the
CC BY-SA 3.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Documentation subpage
(
edit
)
Template:Mbox
(
edit
)
Template:Strong
(
edit
)
Template:Terminate sentence
(
edit
)
Template:Tl
(
edit
)
Module:Arguments
(
edit
)
Module:Message box
(
edit
)
Module:Message box/configuration
(
edit
)
Module:No globals
(
edit
)
Module:Text
(
edit
)
Module:Yesno
(
edit
)
Navigation
Navigation
Skip to content
Main page
Browse
Become an editor
Random page
Popular pages
Abbreviations
Glossary
About MEpedia
Links for editors
Contents
Guidelines
Recent changes
Pages in need
Search
Help
Wiki tools
Wiki tools
Special pages
Page tools
Page tools
User page tools
More
What links here
Related changes
Page information
Page logs