Template:Numbered subpages/doc
更多语言
更多操作
{{#if: |
{{#if:x||
}} |{{#ifeq: doc | doc
|
{{
#ifeq: show | show
| {{
{{#switch:
{{#if:
|
| {{#ifeq:template|
| main
| {{#ifeq:template|template talk
| talk
| template
}}
}}
}}
| main = ambox | talk = tmbox | user = ombox | wikipedia = ombox | image = ombox | mediawiki = ombox | template = ombox | help = ombox | category = cmbox | portal = ombox | other | #default = ombox
}}
| type = notice
| image =
| imageright =
| class =
| style =
| textstyle =
| text = 本文档是Template:Numbered subpages的文档子页面 (见{{ #if: Template | template:subjectspace zh | 条目 }}页自身)。
本页包含用法信息、分类和其他非原{{ #if: Template |template:subjectspace zh页面|条目}}的内容。
| small =
| smallimage =
| smallimageright =
| smalltext =
| subst =
| date =
| name =
}}
}}{{
#if:
|
| [[Category:{{
#if: Template
| Template:SUBJECTSPACE ZH
|條目
}}說明文件]]
}}
| }} }}
Template layout
{{Numbered subpages}}
Additionally, you can use the {{[[{{#switch:
|#default = 25 numbered subpages
| =
{{#ifeq: |
| Template:25 numbered subpages
| 25 numbered subpages
}}
}}|25 numbered subpages]]{{#if:||{{{arg}}}}}}} or {{[[{{#switch:
|#default = 75 numbered subpages
| =
{{#ifeq: |
| Template:75 numbered subpages
| 75 numbered subpages
}}
}}|75 numbered subpages]]{{#if:||{{{arg}}}}}}} 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 {{[[{{#switch:
|#default = Box portal skeleton
| =
{{#ifeq: |
| Template:box portal skeleton
| Box portal skeleton
}}
}}|box portal skeleton]]{{#if:||{{{arg}}}}}}}. 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.
__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.
{{purgepage}}
{{Numbered subpages}}
{{purgepage}}
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
See also
- Main portal creation templates -
- {{[[{{#switch:
|#default = Box portal skeleton
| =
{{#ifeq: |
| Template:Box portal skeleton
| Box portal skeleton
}}
}}|Box portal skeleton]]{{#if:||{{{arg}}}}}}} - used to create portal main pages
- {{[[{{#switch:
|#default = Random portal component
| =
{{#ifeq: |
| Template:Random portal component
| Random portal component
}}
}}|Random portal component]]{{#if:||{{{arg}}}}}}} - used on the portal main page to randomly display articles from the portal sub-pages
- {{[[{{#switch:
|#default = Random portal component with nominate
| =
{{#ifeq: |
| Template:Random portal component with nominate
| Random portal component with nominate
}}
}}|Random portal component with nominate]]{{#if:||{{{arg}}}}}}} - used on the portal main page to randomly display articles from the portal sub-pages, adding the option to nominate other Featured foo articles.
- {{[[{{#switch:
|#default = Random subpage
| =
{{#ifeq: |
| Template:Random subpage
| Random subpage
}}
}}|Random subpage]]{{#if:||{{{arg}}}}}}} - used on the portal main page to randomly display articles from the portal sub-pages. This template is best used for creating randomly populated Did you know... sections on the portal main page that are intended to include multiple Did you know... facts.
- {{[[{{#switch:
|#default = Numbered subpages
| =
{{#ifeq: |
| Template:Numbered subpages
| Numbered subpages
}}
}}|Numbered subpages]]{{#if:||{{{arg}}}}}}} - used to create article links on portal sub-pages with 50 links.
- {{[[{{#switch:
|#default = 25 Numbered subpages
| =
{{#ifeq: |
| Template:25 Numbered subpages
| 25 Numbered subpages
}}
}}|25 Numbered subpages]]{{#if:||{{{arg}}}}}}} - As above, but with 25 links.
- {{[[{{#switch:
|#default = 75 Numbered subpages
| =
{{#ifeq: |
| Template:75 Numbered subpages
| 75 Numbered subpages
}}
}}|75 Numbered subpages]]{{#if:||{{{arg}}}}}}} - As above, but with 75 links.
- {{[[{{#switch:
|#default = Random box-header subpage
| =
{{#ifeq: |
| Template:Random box-header subpage
| Random box-header subpage
}}
}}|Random box-header subpage]]{{#if:||{{{arg}}}}}}}
- Main portal page formatting templates -
|
#default = Boxheader | =
{{#ifeq: |
|
Template:Boxheader | Boxheader
}} }}|Boxheader]]{{#if:||{{{arg}}}}}}}
|
#default = Box-header | =
{{#ifeq: |
|
Template:Box-header | Box-header
}} }}|Box-header]]{{#if:||{{{arg}}}}}}}
|
#default = Box-header1 | =
{{#ifeq: |
|
Template:Box-header1 | Box-header1
}} }}|Box-header1]]{{#if:||{{{arg}}}}}}}
|
#default = Box-header2 | =
{{#ifeq: |
|
Template:Box-header2 | Box-header2
}} }}|Box-header2]]{{#if:||{{{arg}}}}}}} |
|
#default = Boxfooter | =
{{#ifeq: |
|
Template:Boxfooter | Boxfooter
}} }}|Boxfooter]]{{#if:||{{{arg}}}}}}}
|
#default = Box-footer | =
{{#ifeq: |
|
Template:Box-footer | Box-footer
}} }}|Box-footer]]{{#if:||{{{arg}}}}}}}
|
#default = Box-footer2 | =
{{#ifeq: |
|
Template:Box-footer2 | Box-footer2
}} }}|Box-footer2]]{{#if:||{{{arg}}}}}}}
|
#default = Box-Header II | =
{{#ifeq: |
|
Template:Box-Header II | Box-Header II
}} }}|Box-Header II]]{{#if:||{{{arg}}}}}}}
|
#default = Box-header-blank | =
{{#ifeq: |
|
Template:Box-header-blank | Box-header-blank
}} }}|Box-header-blank]]{{#if:||{{{arg}}}}}}}
|
#default = Box-header-groovy | =
{{#ifeq: |
|
Template:Box-header-groovy | Box-header-groovy
}} }}|Box-header-groovy]]{{#if:||{{{arg}}}}}}} |
|
#default = Box-header-health | =
{{#ifeq: |
|
Template:Box-header-health | Box-header-health
}} }}|Box-header-health]]{{#if:||{{{arg}}}}}}}
|
#default = Box-header-round | =
{{#ifeq: |
|
Template:Box-header-round | Box-header-round
}} }}|Box-header-round]]{{#if:||{{{arg}}}}}}}
|
#default = Box-header-square | =
{{#ifeq: |
|
Template:Box-header-square | Box-header-square
}} }}|Box-header-square]]{{#if:||{{{arg}}}}}}}
|
#default = Box-header-watch | =
{{#ifeq: |
|
Template:Box-header-watch | Box-header-watch
}} }}|Box-header-watch]]{{#if:||{{{arg}}}}}}}
|
#default = Box-header-plain | =
{{#ifeq: |
|
Template:Box-header-plain | Box-header-plain
}} }}|Box-header-plain]]{{#if:||{{{arg}}}}}}} |
- Templates that configure links -
- {{[[{{#switch:
|#default = Browsebar
| =
{{#ifeq: |
| Template:Browsebar
| Browsebar
}}
}}|Browsebar]]{{#if:||{{{arg}}}}}}}
- {{[[{{#switch:
|#default = Portals
| =
{{#ifeq: |
| Template:Portals
| Portals
}}
}}|Portals]]{{#if:||{{{arg}}}}}}}
- These templates are used to format the articles on the sub-pages -
|
#default = Selected article | =
{{#ifeq: |
|
Template:Selected article | Selected article
}} }}|Selected article]]{{#if:||{{{arg}}}}}}}
|
#default = Selected biography | =
{{#ifeq: |
|
Template:Selected biography | Selected biography
}} }}|Selected biography]]{{#if:||{{{arg}}}}}}}
|
#default = Selected business | =
{{#ifeq: |
|
Template:Selected business | Selected business
}} }}|Selected business]]{{#if:||{{{arg}}}}}}} |
|
#default = Selected DYK | =
{{#ifeq: |
|
Template:Selected DYK | Selected DYK
}} }}|Selected DYK]]{{#if:||{{{arg}}}}}}}
|
#default = Selected ingredient | =
{{#ifeq: |
|
Template:Selected ingredient | Selected ingredient
}} }}|Selected ingredient]]{{#if:||{{{arg}}}}}}}
|
#default = Selected location | =
{{#ifeq: |
|
Template:Selected location | Selected location
}} }}|Selected location]]{{#if:||{{{arg}}}}}}}
|
#default = Selected quote | =
{{#ifeq: |
|
Template:Selected quote | Selected quote
}} }}|Selected quote]]{{#if:||{{{arg}}}}}}} |
|
#default = Selected picture | =
{{#ifeq: |
|
Template:Selected picture | Selected picture
}} }}|Selected picture]]{{#if:||{{{arg}}}}}}}
|
#default = Selected product | =
{{#ifeq: |
|
Template:Selected product | Selected product
}} }}|Selected product]]{{#if:||{{{arg}}}}}}}
|
#default = Selected publication | =
{{#ifeq: |
|
Template:Selected publication | Selected publication
}} }}|Selected publication]]{{#if:||{{{arg}}}}}}}
|
#default = Selected recipe | =
{{#ifeq: |
|
Template:Selected recipe | Selected recipe
}} }}|Selected recipe]]{{#if:||{{{arg}}}}}}} |
{{#if: |