Difference between revisions of "User:Telinchei/Test3 Templates"
(parameter testing) |
m (→Time/Date parser: line breaks) |
||
(5 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 75: | Line 75: | ||
==Parameters== | ==Parameters== | ||
[[User:Telinchei/Test3_Templates/Template:params]] | [[User:Telinchei/Test3_Templates/Template:params]] | ||
− | {{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)