Predloga:If pagename/testniprimeri

Iz Wikipedije, proste enciklopedije

Testing {{if pagename}}[uredi kodo]

{{#ifeq:{{{2|x}}}|{{{2|}}}
| Param 2 has data, or is empty but defined.
| Param 2 is undefined.
}}

Param 2 is undefined.


x{{if pagename}}x

x{{if pagename
| Predloga:If pagename/testniprimeri = Subpage data.
}}x

x{{if pagename
| Predloga:If pagename/testniprimeri = 
}}x

xx

xSubpage data.x

xx


x{{if pagename
| /testniprimeri = Subpage text.
| subpage = Default subpage text.
| other = Other text.
}}x

x{{if pagename
| subpage = Default subpage text.
| other = Other text.
}}x

x{{if pagename
| other = Other text.
}}x

x{{if pagename
| /testniprimeri = 
| subpage = Default subpage text.
| other = Other text.
}}x

x{{if pagename
| subpage = 
| other = Other text.
}}x

xSubpage text.x

xDefault subpage text.x

xOther text.x

xx

xx


x{{if pagename
| If pagename = Basepage text.
| basepage = Default basepage text.
| other = Other text.
}}x

x{{if pagename
| If pagename = Default basepage text.
| other = Other text.
}}x

x{{if pagename
| If pagename = 
| basepage = Default basepage text.
| other = Other text.
}}x

x{{if pagename
| basepage = 
| other = Other text.
}}x

xOther text.x

xOther text.x

xOther text.x

xOther text.x


x{{if pagename
| Predloga:If pagename/* = Page text.
| subpage = Default subpage text.
}}x

x{{if pagename
| Predloga:If pagename/* = 
| subpage = Default subpage text.
}}x

xPage text.x

xx


x{{if pagename
| If pagename/* = Page text.
| subpage = Default subpage text.
}}x

x{{if pagename
| If pagename/* = 
| subpage = Default subpage text.
}}x

xPage text.x

xx


Testing the "page" parameter[uredi kodo]

x{{if pagename
| Uporabnik:Primer = Basepage text.
| basepage = Default basepage text.
| other = Other text.
| page = Uporabnik:Primer
}}x

x{{if pagename
| Primer = Basepage text.
| basepage = Default basepage text.
| other = Other text.
| page = Uporabnik:Primer
}}x

x{{if pagename
| basepage = Default basepage text.
| other = Other text.
| page = Uporabnik:Primer
}}x

x{{if pagename
| Primer = 
| basepage = Default basepage text.
| other = Other text.
| page = Uporabnik:Primer
}}x

x{{if pagename
| basepage = 
| other = Other text.
| page = Uporabnik:Primer
}}x

x{{if pagename
| Primer/* = Basepage with subpage text.
| basepage = Default basepage text.
| other = Other text.
| page = Uporabnik:Primer
}}x

xBasepage text.x

xBasepage text.x

xDefault basepage text.x

xx

xx

xDefault basepage text.x


x{{if pagename
| Uporabnik:Primer/test = Fullpage text.
| subpage = Default subpage text.
| page = Uporabnik:Primer/test
}}x

x{{if pagename
| Uporabnik:Primer/* = Basepage with subpage text.
| subpage = Default subpage text.
| page = Uporabnik:Primer/test
}}x

x{{if pagename
| Primer/* = Basepage with subpage text.
| subpage = Default subpage text.
| page = Uporabnik:Primer/test
}}x

x{{if pagename
| /test = Subpage text.
| subpage = Default subpage text.
| page = Uporabnik:Primer/test
}}x

xFullpage text.x

xBasepage with subpage text.x

xBasepage with subpage text.x

xSubpage text.x


x{{if pagename
| Uporabnik:Primer/test/test = Fullpage text.
| subpage = Default subpage text.
| page = Uporabnik:Primer/test/test
}}x

x{{if pagename
| Uporabnik:Primer/* = Basepage with subpage text.
| subpage = Default subpage text.
| page = Uporabnik:Primer/test/test
}}x

x{{if pagename
| Primer/* = Basepage with subpage text.
| subpage = Default subpage text.
| page = Uporabnik:Primer/test/test
}}x

x{{if pagename
| /test/test = Subpage text.
| subpage = Default subpage text.
| page = Uporabnik:Primer/test/test
}}x

x{{if pagename
| /test = Subpage text.
| subpage = Default subpage text.
| page = Uporabnik:Primer/test/test
}}x

x{{if pagename
| /test/test = Subpage text.
| subpage = Default subpage text.
| page = Uporabnik:Primer/test
}}x

xFullpage text.x

xBasepage with subpage text.x

xBasepage with subpage text.x

xDefault subpage text.x

xSubpage text.x

xDefault subpage text.x


x{{if pagename
| Uporabnik:Primer/test = Subpage text.
| other = Other text.
| page = Uporabnik:Primer
}}x

x{{if pagename
| Uporabnik:Primer = Basepage text.
| other = Other text.
| page = Uporabnik:Primer/test
}}x

x{{if pagename
| Uporabnik:Primer = Basepage text.
| other = Other text.
| page = 
}}x

x{{if pagename
| If pagename/* = Basepage with subpage text.
| other = Other text.
| page = 
}}x

xOther text.x

xOther text.x

xOther text.x

xBasepage with subpage text.x


x{{if pagename
| /subsub = Subpage text.
| other = Other text.
| page = Uporabnik:Primer/sub/subsub
}}x

xSubpage text.x


Testing partial subpage matching[uredi kodo]

x{{if pagename
| /test* = Partial subpage text.
| other = Other text.
}}x

x{{if pagename
| /subs* = Partial subpage text.
| other = Other text.
| page = Uporabnik:Primer/sub/Subsub
}}x

x{{if pagename
| /Subsub = Subpage text.
| /subs* = Partial subpage text.
| other = Other text.
| page = Uporabnik:Primer/sub/Subsub
}}x

xPartial subpage text.x

xPartial subpage text.x

xSubpage text.x


x{{if pagename
| /someth* = Partial subpage text.
| other = Other text.
| page = Uporabnik:Primer/sub/Something
}}x

x{{if pagename
| /somethin* = Partial subpage text.
| other = Other text.
| page = Uporabnik:Primer/sub/Something
}}x

x{{if pagename
| /Somethin* = Partial subpage text.
| other = Other text.
| page = Uporabnik:Primer/sub/Something
}}x

xPartial subpage text.x

xPartial subpage text.x

xOther text.x

Testing with complex input[uredi kodo]

x{{if pagename
| /test = 
<table class="ambox ambox-notice">
<tr>
<td class="mbox-image"> [[Image:Gnome globe current event.svg|42px]]
<td class="mbox-text"><div>
'''This article or section documents a current [[spaceflight]].''' 
<br>Content may change as the mission progresses.
</div>
<td class="mbox-imageright"> [[Image:Shuttle.svg|20px]]
</table>
| other = Other text.
| page = Uporabnik:Primer/test
}}x

x

This article or section documents a current spaceflight.
Content may change as the mission progresses.

x


x{{if pagename
| /test = <nowiki>Test pages text.</nowiki>
| other = Other text.
| page = Uporabnik:Primer/test
}}x

xTest pages text.x


Testing "a page and its subpages" matching[uredi kodo]

x{{if pagename
| Template:If pagename/+ = Page + subpages text.
| other = Other text.
}}x

x{{if pagename
| If pagename/+ = Page + subpages text.
| other = Other text.
}}x

x{{if pagename
| Uporabniški pogovor:Primer/+ = Page + subpages text.
| other = Other text.
| page = Uporabniški pogovor:Primer
}}x

x{{if pagename
| Uporabniški pogovor:Primer/+ = Page + subpages text.
| other = Other text.
| page = Uporabniški pogovor:Primer/test/test
}}x

xOther text.x

xOther text.x

xPage + subpages text.x

xPage + subpages text.x