"ଛାଞ୍ଚ:When pagename is" ପୃଷ୍ଠାର ସଂସ୍କରଣ‌ଗୁଡ଼ିକ ମଧ୍ୟରେ ତଫାତ

Content deleted Content added
ଟିକେ Protected Template:If pagename: This template will likely become widely used literally overnight, as has happened with other similar templates. So at least semi-protected is reasonable. ([edit=autoconfirmed] (indefinite) [move=sysop] (indefinite))
Adding matching "User:Somepage/+" and changing syntax "User:Somepage/" to "User:Somepage/*".
୨ କ ଧାଡ଼ି:
| <!--Check for match with full pagename-->
{{{ {{#if:{{{page|}}}| {{{page|}}} | {{FULLPAGENAME}} }} <!--Has data, or is empty but defined-->
| <!--Else,Check arefor wematch onwith a subpage or a basepage?"User:Somepage/+"-->
{{#if:{ {{#titleparts:{{#if:{{{page|}}}| {{{page|}}} | {{FULLPAGENAME}} }}|01|21}}/+
| <!--WeElse, are we on a subpage, checkor for match witha "User:Somepage/"basepage?-->
{{{ #if:{{#titleparts:{{#if:{{{page|}}}| {{{page|}}} | {{FULLPAGENAME}} }}|10|12}}/
| <!--CheckWe are on a subpage, check for match with "User:Somepage/*"-->
{{{ {{#titleparts:{{#if:{{{page|}}}| {{PAGENAME:{{{page|}}}}} | {{PAGENAMEFULLPAGENAME}} }}|1|1}}/*
| <!--Check for match with "Somepage/something*"-->
{{{ /{{#titleparts:{{#if:{{{page|}}}| {{PAGENAME:{{{page|}}}}} | {{FULLPAGENAMEPAGENAME}} }}|01|-1}}/*
| <!--Check for match with "/somethin*something"-->
{{{ /{{lc: {{padleft:|8| {{#titleparts:{{#if:{{{page|}}}| {{{page|}}} | {{FULLPAGENAME}} }}|0|-1}}# }} }}*
| <!--Check for match with "/somethsomethin*"-->
{{{ /{{lc: {{padleft:|68| {{#titleparts:{{#if:{{{page|}}}| {{{page|}}} | {{FULLPAGENAME}} }}|0|-1}}# }} }}*
| <!--Check for match with "/somesometh*"-->
{{{ /{{lc: {{padleft:|46| {{#titleparts:{{#if:{{{page|}}}| {{{page|}}} | {{FULLPAGENAME}} }}|0|-1}}# }} }}*
<!--Pad with # so "/a" doesn't | <!--Check for match with "/aaaasome*"-->
{{{ /{{lc: {{padleft:|4| {{#titleparts:{subpage{#if:{{{page|}}}| {{{otherpage|}}} | {{FULLPAGENAME}} }}|0|-1}}# }} }}* <!--RespectingPad with # so empty"/a" parameterdoesn't onmatch purpose"/aaaa*"-->
| {{{basepagesubpage| {{{other|}}} }}} <!--Respecting empty parameter on purpose-->
}}}
}}}
}}}
Line ୨୨ ⟶ ୨୫:
}}}
}}}
| <!--We are on a basepage, check for match with "Somepage"-->
}}}
{{{ {{#if:{{{page|}}}| {{PAGENAME:{{{page|}}}}} | {{PAGENAME}} }}
| <!--We are on a basepage, check for match with "Somepage"-->
| {{{basepage| {{{other|}}} }}} <!--Respecting empty parameter on purpose-->
{{{ {{#if:{{{page|}}}| {{PAGENAME:{{{page|}}}}} | {{PAGENAME}} }}
}}}
| {{{basepage| {{{other|}}} }}} <!--Respecting empty parameter on purpose-->
}} <!--End if, are we on a subpage or a basepage?-->
}}}
}}}
}} <!--End if, are we on a subpage or a basepage?-->
}}}
}}<noinclude>