Template:PAGENAMEBASE
PAGENAMEBASE
{{#ifeq:pagenamebase |doc
|
{{#ifeq:show |show
|This is a documentation subpage for Template:PAGENAMEBASE. It contains usage information, categories and other content that is not part of the original {{#if: |{{{text2}}} |{{#if: |{{{text1}}} |{{#ifeq:Template |User |template template page |{{#if:Template |template page|article}}}}}}}}. |
}}{{#if: | | {{#ifexist:Template:PAGENAMEBASE | [[Category:{{#switch:Template |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]] | }} }} | }}
Uses Lua: |
<templatestyles src="Template:Ombox/styles.css" />
This {{
|Module=Lua module
|#default=template
}} is used on {{#if:725,000+|725,000+|a very large number of}} pages.
|Module=module |#default=template }} should first be tested in its [[{{
| doc | sandbox = Template:PAGENAMEBASE | #default = Template:PAGENAMEBASE }}/sandbox|/sandbox]] or [[{{
| doc | sandbox = Template:PAGENAMEBASE | #default = Template:PAGENAMEBASE }}/testcases|/testcases]] subpages{{
|Module=. |#default= or in your own user subpage. }} The tested changes can then be added to this page in a single edit. Please consider discussing any changes {{#if:|at [[{{{2}}}]]|on the [[{{
| doc | sandbox = Template talk:PAGENAMEBASE | #default = Template talk:PAGENAMEBASE }}|talk page]]}} before implementing them. |
Usage[edit]
This template returns the current {{#if:{{#if:||yes}} |}}{{#if:yes | |{{#if:|
}} }}{{#if: |}}{{#if: |}}{{#if: | |{{}}{{#if: |subst:}}{{#if: |}}{{#if:yes || {{#if: |{}}[[:{{#ifeq:P|: |PAGENAME |{{#switch:
| = Template:{{#if:PAGENAME|PAGENAME|PAGENAMEBASE}}
| #default = {{#if:PAGENAME|PAGENAME|Template:PAGENAMEBASE}}
}}}}|}}{{#if: |{}}{{#if:PAGENAME|PAGENAME|{{#ifeq:Template|Template|PAGENAMEBASE|Template:PAGENAMEBASE}}}}{{#if: |}}}{{#if:yes | |]]{{#if: |}}}}}{{#if: |}}{{#if: |}}{{#if: |}}{{#ifeq:�|� | ||{{{2}}}}}{{#ifeq:�|� | ||{{{3}}}}}{{#ifeq:�|� | ||{{{4}}}}}{{#ifeq:�|� | ||{{{5}}}}}{{#ifeq:�|� | ||{{{6}}}}}{{#ifeq:�|� | ||{{{7}}}}}{{#ifeq:�|� | ||{{{8}}}}}{{#ifeq:�|� | ||{{{9}}}}}{{#ifeq:�|� | ||{{{10}}}}}{{#ifeq:�|� | ||{{{11}}}}}{{#if: ||�}}{{#if: |}}{{#if: | |}}}}{{#if: |}}{{#if:yes |
}}{{#if:{{#if:||yes}} |}} minus (text in parentheses) or the final set of parentheses where more than one set exist.
e.g. {{{{#if: |subst:}}PAGENAMEBASE{{#if: ||{{{2}}}}}{{#if: ||{{{3}}}}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||�}}}}
on page Chiton (genus) returns Chiton
- on Sweet Dreams (Are Made of This) (album) returns Sweet Dreams (Are Made of This)
- on Sweet Dreams (Are Made of This) returns Sweet Dreams
- on Stadion der Freundschaft (Frankfurt (Oder)) returns Stadion der Freundschaft
Can also pass an optional page parameter:
{{{{#if:PAGENAMEBASE|PAGENAMEBASE| tlc|...}}{{#ifeq:foo (bar)|foo (bar)| |foo (bar) | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}}
? "foo"
{{{{#if:PAGENAMEBASE|PAGENAMEBASE| tlc|...}}{{#ifeq:foo bar|foo bar| |foo bar | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}}
? "foo bar"
See also[edit]
{{#ifeq:PAGENAMEBASE|sandbox |
|
}}
The above documentation is transcluded from Template:PAGENAMEBASE/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |
{{#if:|
[[Category:Template documentation pages{{#translation:}}]]
}}