编辑 Template:If pagename 0 根据下列点原因,你没有权限进行操作编辑本页: 您刚才请求的操作只有以下用户组中的用户才能使用: 用户, FANDOM员工, FANDOM助手, Wiki主管, 内容团队人员 您没有权限编辑Template名字空间内的页面。 Please log in to edit this wiki.Joining 哈利·波特维基 is free, and it only takes a minute.We hope that you sign in, and become a member of the community!Click here to log in or create an account 更多 + 您可以查看并复制此页面的源代码: {{#if:x <!--Remove surrounding whitespace--> | <!--Check for match with full pagename--> {{{ {{#if:{{{page|}}}| {{{page|}}} | {{FULLPAGENAME}} }} <!--Has data, or is empty but defined--> | <!--Check for match with "User:Somepage/+"--> {{{ {{#titleparts:{{#if:{{{page|}}}| {{{page|}}} | {{FULLPAGENAME}} }}|1|1}}/+ | <!--Else, are we on a subpage or a basepage?--> {{#if:{{#titleparts:{{#if:{{{page|}}}| {{{page|}}} | {{FULLPAGENAME}} }}|0|2}} | <!--We are on a subpage, check for match with "User:Somepage/*"--> {{{ {{#titleparts:{{#if:{{{page|}}}| {{{page|}}} | {{FULLPAGENAME}} }}|1|1}}/* | <!--Check for match with "Somepage/*"--> {{{ {{#titleparts:{{#if:{{{page|}}}| {{PAGENAME:{{{page|}}}}} | {{PAGENAME}} }}|1|1}}/* | <!--Check for match with "/something"--> {{{ /{{#titleparts:{{#if:{{{page|}}}| {{{page|}}} | {{FULLPAGENAME}} }}|0|-1}} | <!--Check for match with "/somethin*"--> {{{ /{{lc: {{padleft:|8| {{#titleparts:{{#if:{{{page|}}}| {{{page|}}} | {{FULLPAGENAME}} }}|0|-1}}# }} }}* | <!--Check for match with "/someth*"--> {{{ /{{lc: {{padleft:|6| {{#titleparts:{{#if:{{{page|}}}| {{{page|}}} | {{FULLPAGENAME}} }}|0|-1}}# }} }}* | <!--Check for match with "/some*"--> {{{ /{{lc: {{padleft:|4| {{#titleparts:{{#if:{{{page|}}}| {{{page|}}} | {{FULLPAGENAME}} }}|0|-1}}# }} }}* <!--Pad with # so "/a" doesn't match "/aaaa*"--> | {{{subpage| {{{other|}}} }}} <!--Respecting empty parameter on purpose--> }}} }}} }}} }}} }}} }}} | <!--We are on a basepage, check for match with "Somepage"--> {{{ {{#if:{{{page|}}}| {{PAGENAME:{{{page|}}}}} | {{PAGENAME}} }} | {{{basepage| {{{other|}}} }}} <!--Respecting empty parameter on purpose--> }}} }} <!--End if, are we on a subpage or a basepage?--> }}} }}} }}<noinclude> {{documentation|content=文档请参见[[Wikipedia:zh:Template:If_pagename|此处]]}} <!-- Add categories and interwikis to the /doc subpage, not here! --> </noinclude> 该页面使用的模板: Template:Color (查看源代码) (保护)Template:Documentation (查看源代码) Template:Pp-meta (查看源代码) (半保护)Template:Pp-template (查看源代码) (半保护)Template:Tocright (查看源代码) Template:模板文档 (查看源代码) (保护)返回到Template:If pagename。 编辑摘要 预览 移动设备 桌面 显示差异