Wikisage, de vrije encyclopedie van de tweede generatie en digitaal erfgoed, wenst u prettige feestdagen en een gelukkig 2025
Wikisage is op 1 na de grootste internet-encyclopedie in het Nederlands. Iedereen kan de hier verzamelde kennis gratis gebruiken, zonder storende advertenties. De Koninklijke Bibliotheek van Nederland heeft Wikisage in 2018 aangemerkt als digitaal erfgoed.
- Wilt u meehelpen om Wikisage te laten groeien? Maak dan een account aan. U bent van harte welkom. Zie: Portaal:Gebruikers.
- Bent u blij met Wikisage, of wilt u juist meer? Dan stellen we een bescheiden donatie om de kosten te bestrijden zeer op prijs. Zie: Portaal:Donaties.
Sjabloon:Pagetype: verschil tussen versies
Naar navigatie springen
Naar zoeken springen
(http://en.wikipedia.org/w/index.php?title=Template:Pagetype&oldid=388146757) |
(http://en.wikipedia.org/w/index.php?title=Template:Pagetype&oldid=388146757) |
||
Regel 1: | Regel 1: | ||
{{#switch:{{NAMESPACE:{{#if:{{{ | {{#switch:{{NAMESPACE:{{#if:{{{pagina|}}} | ||
|{{{page}}} | |{{{page}}} | ||
|{{#ifeq:{{{subjectspace|}}}|yes | |{{#ifeq:{{{subjectspace|}}}|yes | ||
Regel 9: | Regel 9: | ||
|{{ns:Talk}} = {{#switch:{{lc:{{{1|}}}}} | |{{ns:Talk}} = {{#switch:{{lc:{{{1|}}}}} | ||
|disambiguation|disambig|disamb|dab | |disambiguation|disambig|disamb|dab | ||
|doorverwijzing|doorverwijs|dp | |||
|redirect|redir | |redirect|redir | ||
|na = | |na = pagina | ||
|#default = | |#default = artikel | ||
}} | }} | ||
|{{ns:User talk}} | |{{ns:User talk}} | ||
|{{ns:MediaWiki talk}} | |{{ns:MediaWiki talk}} | ||
|{{ns:Help talk}} | |{{ns:Help talk}} | ||
|{{ns:Project talk}} = pagina | |||
|{{ns:Project talk}} = | |{{ns:File talk}} = bestand | ||
|{{ns:Template talk}} = sjabloon | |||
|{{ns:File talk}} = | |{{ns:Category talk}} = categorie | ||
|{{ns:Template talk}} = | |||
|{{ns:Category talk}} = | |||
|#default = {{#switch:{{lc:{{{1|}}}}} | |#default = {{#switch:{{lc:{{{1|}}}}} | ||
|portal | |portal | ||
Regel 27: | Regel 26: | ||
|disambig|disamb|dab | |disambig|disamb|dab | ||
|redirect|redir | |redirect|redir | ||
|na = | |na = pagina | ||
|image|file = bestand | |||
|image|file = | |template|temp|templ = sjabloon | ||
|template|temp|templ = | |category|cat|categ = categorie | ||
|category|cat|categ = | |#default = artikel | ||
|#default = | |||
}} | }} | ||
}} | }}<noinclude> | ||
{{geel}} | |||
This template is used to identify what kind of page it or its subject page is. | |||
=== Usage === | |||
<pre>{{pagetype | class | page= }}</pre> | |||
===Parameters=== | |||
;''class'' | |||
This unnamed parameter is optional and is used to distinguish between different non-article pages in mainspace (e.g. disambiguation pages and redirects). See below for details. | |||
;''page'' | |||
The name of a page. The default is the current page. | |||
;''subjectspace'' | |||
If set to ''yes'' then subjectspace pages will be treated the same as talkspace pages. | |||
===Output=== | |||
{| class="wikitable" | |||
|- | |||
!Namespace !! class !! Output | |||
|- | |||
|rowspan="4" | Talk || disambig, disamb, dab | |||
| rowspan="3" | page | |||
|- | |||
|| redirect, redir | |||
|- | |||
|| na | |||
|- | |||
| ''anything else'' || article | |||
|- | |||
|User talk || rowspan="5" | ''anything'' || rowspan="5" | page | |||
|- | |||
|MediaWiki talk | |||
|- | |||
|Help talk | |||
|- | |||
|Portal talk | |||
|- | |||
|Project talk | |||
|- | |||
|File talk || ''anything'' || file | |||
|- | |||
|Template talk || ''anything'' || template | |||
|- | |||
|Category talk || ''anything'' || category | |||
|- | |||
| rowspan="8" | ''Any subjectspace'' | |||
|| portal, project || rowspan="4" | page | |||
|- | |||
|| disambig, disamb, dab | |||
|- | |||
|| redirect, redir | |||
|- | |||
|| na | |||
|- | |||
|| image, file || file | |||
|- | |||
|| template, temp, templ || template | |||
|- | |||
|| category, cat, categ || category | |||
|- | |||
|| ''anything else'' || article | |||
|} | |||
{{einde}} | |||
</noinclude> |
Versie van 8 sep 2012 15:07
artikel
This template is used to identify what kind of page it or its subject page is.
Usage
{{pagetype | class | page= }}
Parameters
- class
This unnamed parameter is optional and is used to distinguish between different non-article pages in mainspace (e.g. disambiguation pages and redirects). See below for details.
- page
The name of a page. The default is the current page.
- subjectspace
If set to yes then subjectspace pages will be treated the same as talkspace pages.
Output
Namespace | class | Output |
---|---|---|
Talk | disambig, disamb, dab | page |
redirect, redir | ||
na | ||
anything else | article | |
User talk | anything | page |
MediaWiki talk | ||
Help talk | ||
Portal talk | ||
Project talk | ||
File talk | anything | file |
Template talk | anything | template |
Category talk | anything | category |
Any subjectspace | portal, project | page |
disambig, disamb, dab | ||
redirect, redir | ||
na | ||
image, file | file | |
template, temp, templ | template | |
category, cat, categ | category | |
anything else | article |