Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

User:Telinchei/Test3 Templates: Difference between revisions

From EVE University Wiki
Telinchei (talk | contribs)
Telinchei (talk | contribs)
Line 5: Line 5:
<!-- jeez, this is a sandbox, but oh well computers are dumb and must be told everything precisely...
<!-- jeez, this is a sandbox, but oh well computers are dumb and must be told everything precisely...
wait, what? the toc templates... the tocright templates...-->
wait, what? the toc templates... the tocright templates...-->
=="#ifexist[edit | edit source]"==
=="#ifexist"==
This tells you what to look for:
This tells you what to look for:
[https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23ifexist 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.]
[https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23ifexist 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.]
Line 34: Line 34:


===makeitwork===
===makeitwork===
 
This is the correct one. Parameter looks broken.
{{#ifexist: <!--YOU MUST PUT A GOOD PARAMETER HERE {{{1| -->{{FULLPAGENAME}}/doc<!--
{{#ifexist: <!--  {{{1| -->{{FULLPAGENAME}}/doc<!--
}}}-->
}}}-->
     | {{tocright}}{{{{#ifeq: {{NAMESPACE}} | {{ns:Template}} |
     | {{tocright}}{{{{#ifeq: {{NAMESPACE}} | {{ns:Template}} |
Line 43: Line 43:
   }}
   }}


{{#ifexist: User:Telinchei/Test3 Templates
{{#ifexist: User:Telinchei/Test3 Templates <!--Bx1-->
     | <!--{{tocright}} it works too well
     | <!--(bx2, toc)-->{{<!--nestingifeq -->{{#ifeq: {{NAMESPACE}} EXISTS(bx2) | {{ns:Template}} NOEXISTS(bx3) |
                    -->{{<!--
                     | ReturnT :{{NAMESPACE:{{{1|{{FULLPAGENAME}}}}}}}:  
                    nesting -->{{#ifeq: {{NAMESPACE}} IT EXISTS | {{ns:Template}} NOEXISTS |
                     }}<!--end nesting ifeq
                     | ReturnT ANOTHERBOXANOTHERDAY :{{NAMESPACE:{{{1|{{FULLPAGENAME}}}}}}}:  
                     }}<!--whydoes itlooklikethis
                 -->{{ #if: {{{1|}}} | BOX BOX {{PAGENAME:{{{1}}}<!-- -->}} | BOX BOX BOX {{PAGENAME}}/doc}} }}
                 -->{{ #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]]
     | 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]]
   }}
   }}