Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Telinchei (talk | contribs)
m breaking stuff: silly notes
Telinchei (talk | contribs)
breaking stuff: indenting properly
Line 16: Line 16:
{{#ifexist: User:Telinchei/Test3 Templates
{{#ifexist: User:Telinchei/Test3 Templates
     | <!--{{tocright}} it works too well
     | <!--{{tocright}} it works too well
                    -->{{<!--
    -->{{<!--TRANSCLUDER BRACKETS! and a nesting ifeq
                    TRANSCLUDER BRACKETS! and a nesting ifeq -->{{#ifeq: {{NAMESPACE}} IT EXISTS | {{ns:Template}} NOEXISTS |
        -->{{#ifeq: {{NAMESPACE}} IT EXISTS | {{ns:Template}} NOEXISTS |
                    | ReturnT ANOTHERBOXANOTHERDAY :{{NAMESPACE:{{{1|{{FULLPAGENAME}}<!--param_switcher follows-->}}}<!--
        | ReturnT ANOTHERBOXANOTHERDAY :{{NAMESPACE:{{{1|{{FULLPAGENAME}}<!--param_switcher follows-->}}}<!--
                    namespace close follows
        namespace close follows
                    -->}}: abc <!--
        -->}}: abc <!--
                    loljk nope, not ending transcluder
        loljk nope, not ending transcluder
                  -->endt}}<!-- why? turns out that guy was reverse engineering without making documentation. ironic?
        -->endt}}<!-- why? turns out that guy was reverse engineering without making documentation. ironic?
                  -->{{ #if: {{{1|}}} | BOX BOX {{PAGENAME:{{{1}}}<!-- -->}} | BOX BOX BOX {{PAGENAME}}/doc}} }} END TRUEBOX
        -->{{ #if: {{{1|}}} | BOX BOX {{PAGENAME:{{{1}}}<!-- -->}} | BOX BOX BOX {{PAGENAME}}/doc}} }} END TRUEBOX
    | 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|<!-- oh so this is when you should use it.
        artificial line break, but when it's important to display.
        -->{{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 07:47, 2 September 2015

I know this guy, on this wiki he lives at {{{1}}} and he's awesome


"#ifexist"

This tells you what to look for: 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 }}

While trying to sift through it and debug it, take note of the nesting template tags (esp. }})

breaking stuff

Template:ReturnT ANOTHERBOXANOTHERDAY :User: abc endtBOX BOX BOX Telinchei/Test3 Templates/doc END TRUEBOX

if you see this the transcluder is working properly.

makeitwork

This is the correct one. Parameter looks broken.

if you see this the transcluder is working properly.

Template:ReturnT :User:BOX BOX BOX Telinchei/Test3 Templates/doc