模板:子页面:修订间差异

来自OSSmedia
(创建页面,内容为“<noinclude> <languages/> </noinclude><div style="font-size:90%;"> {{Special:Prefixindex/{{{1|{{#if: {{#translation:}}|{{BASEPAGENAMEE}}|{{FULLPAGENAMEE}} }}}}}/ |hideredirects=1 |translate-hidetranslations={{if:{{{showtranslations|}}}|0|1}} }} </div><noinclude> {{documentation|content= {{documentation subpage}} <translate> ===Usage=== <!--T:1--> </translate> <translate><!--T:2--> <tvar name=1><code><nowiki>{{subpages}}</nowiki></code></tvar> shows all the subp…”)
 
无编辑摘要
 
第1行: 第1行:
<noinclude>
<div style="font-size:90%;">
<languages/>
</noinclude><div style="font-size:90%;">
{{Special:Prefixindex/{{{1|{{#if: {{#translation:}}|{{BASEPAGENAMEE}}|{{FULLPAGENAMEE}} }}}}}/
{{Special:Prefixindex/{{{1|{{#if: {{#translation:}}|{{BASEPAGENAMEE}}|{{FULLPAGENAMEE}} }}}}}/
|hideredirects=1
|hideredirects=1
|translate-hidetranslations={{if:{{{showtranslations|}}}|0|1}}
|translate-hidetranslations={{if:{{{showtranslations|}}}|0|1}}
}}
}}
</div><noinclude>
</div>
{{documentation|content=
 
{{documentation subpage}}
<translate>
===Usage=== <!--T:1-->
</translate>
<translate><!--T:2--> <tvar name=1><code><nowiki>{{subpages}}</nowiki></code></tvar> shows all the subpages of a given page.</translate>
It should not be used in the main namespace, only on pages such as user pages, Wiktionary pages and appendices.
It takes one, optional parameter, the target page name. The default is <nowiki>{{PAGENAME}}</nowiki>
 
* <code><nowiki>{{subpages}}</nowiki></code>: shows the subpages for the current page (in this case, Template:subpages)
* <code><nowiki>{{subpages|User:Example}}</nowiki></code>: shows the subpages for [[User:Example]]
 
<translate>
== Alternative == <!--T:3-->
</translate>
You can also embed the [[Special:PrefixIndex]] directly, e.g.
 
<source lang="mediawiki">
{{Special:Prefixindex|prefix=User:Example/|hideredirects=1|stripprefix=1}}
</source>
 
If you want use in your wiki a sorted lists of subpages, or get counts of it for using in templates, you may try extension {{ll|Extension:SubPageList}}.
Example using of this, see wiki code of template [https://www.thewoodcraft.org/wiki/index.php?title=%C5%A0ablona:pages&action=edit Template:pages].
It's alternative solution without tag {{tag|pages|open}} for pages of books from the {{ll|Extension:ProofreadPage}}.
This template generate i.e. content of page [https://www.thewoodcraft.org/wiki/index.php/The_Birch-Bark_Roll_1906_(kniha) The Birch-Bark Roll 1906 (kniha)].
It is solution '''without''' dependency on the [[Lua]] modules.
 
}}
</noinclude>

2024年2月29日 (四) 10:53的最新版本

{{Special:Prefixindex/%E5%AD%90%E9%A1%B5%E9%9D%A2/ |hideredirects=1 |translate-hidetranslations=模板:If: }}