Difference between revisions of "User:Telinchei/Test3 Templates"

From EVE University Wiki
Jump to: navigation, search
(→‎breaking stuff: indenting properly)
m (→‎Time/Date parser: line breaks)
 
(12 intermediate revisions by the same user not shown)
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"==
+
==Template:Documentation and "#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 15: Line 15:
  
 
{{#ifexist: User:Telinchei/Test3 Templates
 
{{#ifexist: User:Telinchei/Test3 Templates
     | <!--{{tocright}} it works too well
+
     | begin truebox. toc works too well.<!-- oops need to cross the linebreak...
    -->{{<!--TRANSCLUDER BRACKETS! and a nesting ifeq
+
  -->{{<!--TRANSCLUDER BRACKETS ON LEFT! and a nesting ifeq follows;
 
         -->{{#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 right-->}}:<!--
        -->}}: abc <!--
+
        -->abc wonder what this doesend }}<!-- why? turns out that guy was reverse engineering without making  
        loljk nope, not ending transcluder
+
            documentation. ironic?
        -->endt}}<!-- why? turns out that guy was reverse engineering without making documentation. ironic?
+
        -->{{ #if: {{{1|}}} | BOX BOX {{PAGENAME:{{{1}}}<!--counting the brackets. Also, that was still visible. endif
        -->{{ #if: {{{1|}}} | BOX BOX {{PAGENAME:{{{1}}}<!-- -->}} | BOX BOX BOX {{PAGENAME}}/doc}} }} END TRUEBOX
+
              -->}} | not-vis? BOX BOX BOX {{PAGENAME}}/doc}} }} END TRUEBOX
        | returnF :<strong class="error">Nodoc!</strong> write@ [{{fullurl:{{{1|<!-- oh so this is when you should use it.
+
          | 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.
+
            artificial line break, but when it's important to display.
        -->{{FULLPAGENAME}}/doc}}}|action=edit&preload=Template:Documentation/preload}} here]. More useless junk follows.
+
        -->{{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 <!--
+
            {{#ifeq:{{NAMESPACE}}|{{ns:10}}|There may also be documentation on [[w:c:templates:{{FULLPAGENAME}}/doc|Wikia <!--
          -->Templates]] which can be copied.}}<!--
+
            -->Templates]] which can be copied.}}[[Category:Templates without documentation]]
-->[[Category:Templates without documentation]]
+
            }}
  }}
+
<br/> <!-- put slash at end of br.-->
 +
:Phew. You have finished the first tree. You should copy it cleanly somewhere for reference, before copying it into the main. Maybe that clean copy should go into the test at [[:Template:Documentation/test]]? Also, I don't have schizophrenia, I'm just talking to my future self, who is slightly separate from my current self.
  
 
{{#ifexist: <!--YOU MUST PUT A GOOD PARAMETER HERE  {{{1| -->{{FULLPAGENAME}}/doc<!--
 
{{#ifexist: <!--YOU MUST PUT A GOOD PARAMETER HERE  {{{1| -->{{FULLPAGENAME}}/doc<!--
Line 58: Line 59:
 
     | 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]]
 
   }}
 
   }}
 +
 +
==Incursion Discussion==
 +
{{:Template:Discussion}}
 +
Please discuss changes to the {{PAGENAME}} article on this page, indent your replies with the colon (:) and sign with the four tildes (~). If this change affects users other than UniWiki Editors, Forum and Slack discussion may be initiated and linked to or from this talk page as well, if necessary.
 +
 +
==[[Template:Cleanup]]==
 +
 +
<includeonly>[[Category:Candidates for Cleanup]]</includeonly>
 +
<div style="width: 80%; margin: 1em 10%; padding: 4px; background-color: #153E7E;">
 +
{| cellpadding="2" style="background-color: #153E7E; color: #FFFFFF; width: 100%; text-align:center;"
 +
| '''This article should be cleaned up or improved.''' {{#if: {{{1|}}}|Reason: ''{{{1}}}''|A reason was not specified.}}
 +
|}
 +
</div>
 +
 +
==Parameters==
 +
[[User:Telinchei/Test3_Templates/Template:params]]
 +
 +
{{User:Telinchei/Test3_Templates/Template:params|five=somestuff|alpha=trolls}}
 +
 +
==Time/Date parser==
 +
{{#time: F Y}} <br/>
 +
cf substitution: <nowiki>{{subst:#time: F Y}}</nowiki> = November 2015 <br/>
 +
18:02, 12 November 2015 (CST) (5 tilde)

Latest revision as of 00:03, 13 November 2015

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


Template:Documentation and "#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

begin truebox. toc works too well.Template:ReturnT ANOTHERBOXANOTHERDAY :User:abc wonder what this doesendnot-vis? BOX BOX BOX Telinchei/Test3 Templates/doc END TRUEBOX

Phew. You have finished the first tree. You should copy it cleanly somewhere for reference, before copying it into the main. Maybe that clean copy should go into the test at Template:Documentation/test? Also, I don't have schizophrenia, I'm just talking to my future self, who is slightly separate from my current self.

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

Incursion Discussion

Template:Discussion Please discuss changes to the Telinchei/Test3 Templates article on this page, indent your replies with the colon (:) and sign with the four tildes (~). If this change affects users other than UniWiki Editors, Forum and Slack discussion may be initiated and linked to or from this talk page as well, if necessary.

Template:Cleanup

This article should be cleaned up or improved. A reason was not specified.

Parameters

User:Telinchei/Test3_Templates/Template:params

Transcribe 1st, 2nd, or five=: 2
Transcribe 1st, or default to parameter 2nd: {{{2}}}

Time/Date parser

November 2024
cf substitution: {{subst:#time: F Y}} = November 2015
18:02, 12 November 2015 (CST) (5 tilde)