Difference between revisions of "User:Telinchei/Test3 Templates"
From EVE University Wiki
Line 27: | Line 27: | ||
| returnF:<strong class="error">Nodoc!</strong> write@ [{{fullurl:{{{1|{{FULLPAGENAME}}/doc}}}|action=edit&preload=Template:Documentation/preload}} here]. {{#ifeq:A|A|dont care about this}} also sillytemplate | | returnF:<strong class="error">Nodoc!</strong> write@ [{{fullurl:{{{1|{{FULLPAGENAME}}/doc}}}|action=edit&preload=Template:Documentation/preload}} here]. {{#ifeq:A|A|dont care about this}} also sillytemplate | ||
}} | }} | ||
+ | |||
+ | ===makeitwork=== | ||
{{#ifexist: <!--YOU MUST PUT A GOOD PARAMETER HERE {{{1| -->{{FULLPAGENAME}}/doc<!-- | {{#ifexist: <!--YOU MUST PUT A GOOD PARAMETER HERE {{{1| -->{{FULLPAGENAME}}/doc<!-- | ||
Line 34: | Line 36: | ||
}}{{ #if: {{{1|}}} | {{PAGENAME:{{{1}}}}} | {{PAGENAME}}/doc}} }} | }}{{ #if: {{{1|}}} | {{PAGENAME:{{{1}}}}} | {{PAGENAME}}/doc}} }} | ||
| :<strong class="error">Nodoc!</strong> write@ [{{fullurl:{{{1|{{FULLPAGENAME}}/doc}}}|action=edit&preload=Template:Documentation/preload}} here]. {{#ifeq:A|A|dont care about this}}[[Category:Templates without documentation]] | | :<strong class="error">Nodoc!</strong> write@ [{{fullurl:{{{1|{{FULLPAGENAME}}/doc}}}|action=edit&preload=Template:Documentation/preload}} here]. {{#ifeq:A|A|dont care about this}}[[Category:Templates without documentation]] | ||
+ | }} | ||
+ | |||
+ | {{#ifexist: User:Telinchei/Test3 Templates | ||
+ | | <!--{{tocright}} it works too well | ||
+ | -->{{<!-- | ||
+ | nesting -->{{#ifeq: {{NAMESPACE}} IT EXISTS | {{ns:Template}} NOEXISTS | | ||
+ | | ReturnT ANOTHERBOXANOTHERDAY :{{NAMESPACE:{{{1|{{FULLPAGENAME}}}}}}}: | ||
+ | }}<!--whydoes itlooklikethis | ||
+ | -->{{ #if: {{{1|}}} | BOX BOX {{PAGENAME:{{{1}}}<!-- -->}} | BOX BOX BOX {{PAGENAME}}/doc}} }} | ||
+ | | returnF :<strong class="error">Nodoc!</strong> write@ [{{fullurl:{{{1|{{FULLPAGENAME}}/doc}}}|action=edit&preload=Template:Documentation/preload}} here]. More useless junk follows.{{#ifeq:{{NAMESPACE}}|{{ns:10}}|There may also be documentation on [[w:c:templates:{{FULLPAGENAME}}/doc|Wikia Templates]] which can be copied.}}[[Category:Templates without documentation]] | ||
}} | }} |
Revision as of 05:36, 2 September 2015
I know this guy, on this wiki he lives at {{{1}}} and he's awesome
"#ifexist[edit | edit source]"
This function takes an input string, interprets it as a page title, and returns one of two values depending on whether or not the page exists on the local wiki. {{#ifexist: page title | value if exists | value if doesn't exist }}
Template:ReturnT ANOTHERBOXANOTHERDAY :User:BOX BOX BOX Telinchei/Test3 Templates/doc
if you see this the transcluder is working properly.
makeitwork
if you see this the transcluder is working properly.
Template:ReturnT ANOTHERBOXANOTHERDAY :User:BOX BOX BOX Telinchei/Test3 Templates/doc