Template:Pagetype: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>WOSlinker
update from sandbox to handle non-talk pages better
meta>Mr. Stradivarius
switch to Lua version at Module:Pagetype
Line 1: Line 1:
{{#switch:{{NAMESPACE:{{#if:{{{page|}}}
{{<includeonly>safesubst:</includeonly>#invoke:pagetype|main}}<noinclude>
  |{{{page}}}
  |{{FULLPAGENAME}}
}}
}}
|{{ns:0}}
|{{ns:Talk}}          = {{#switch:{{lc:{{{1|}}}}}
  |disambiguation|disambig|disamb|dab
  |redirect|redir
  |na                  = page
  |#default            = article
}}
|{{ns:User}}
|{{ns:User talk}}
|{{ns:MediaWiki}}
|{{ns:MediaWiki talk}}
|{{ns:Help}}
|{{ns:Help talk}}
|{{ns:TimedText}}
|{{ns:TimedText talk}}
|{{ns:Module}}
|{{ns:Module talk}}
|{{ns:Portal}}
|{{ns:Portal talk}}
|{{ns:Project}}
|{{ns:Project talk}}  = page
|{{ns:Book}}
|{{ns:Book talk}}    = book
|{{ns:File}}
|{{ns:File talk}}    = file
|{{ns:Template}}
|{{ns:Template talk}} = template
|{{ns:Category}}
|{{ns:Category talk}} = category
|#default            = {{#switch:{{lc:{{{1|}}}}}
  |portal
  |project
  |disambig|disamb|dab
  |redirect|redir
  |na                  = page
  |book                = book
  |image|file          = file
  |template|temp|templ = template
  |category|cat|categ  = category
  |#default            = article
}}
}}<noinclude>
{{documentation}}
{{documentation}}
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
</noinclude>
</noinclude>

Revision as of 05:51, 9 November 2013

template