More actions
→breaking stuff: finished first tree indentation. |
m →Time/Date parser: line breaks |
||
| (11 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 | ||
| begin truebox. toc works too well. | | begin truebox. toc works too well.<!-- oops need to cross the linebreak... | ||
-->{{<!--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 right-->}}:<!-- | namespace close follows right-->}}:<!-- | ||
-->abc wonder what this | -->abc wonder what this doesend }}<!-- why? turns out that guy was reverse engineering without making | ||
documentation. ironic? | documentation. ironic? | ||
-->{{ #if: {{{1|}}} | BOX BOX {{PAGENAME:{{{1}}}<!-- -->}} | BOX BOX BOX {{PAGENAME}}/doc}} }} END TRUEBOX | -->{{ #if: {{{1|}}} | BOX BOX {{PAGENAME:{{{1}}}<!--counting the brackets. Also, that was still visible. endif | ||
-->}} | 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. | ||
| Line 29: | Line 30: | ||
-->Templates]] which can be copied.}}[[Category:Templates without documentation]] | -->Templates]] which can be copied.}}[[Category:Templates without documentation]] | ||
}} | }} | ||
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]]? | <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 57: | 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) | |||