More actions
| 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]"== | |||
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.] | ||
<nowiki>{{#ifexist: page title | value if exists | value if doesn't exist }}</nowiki> | <nowiki>{{#ifexist: page title | value if exists | value if doesn't exist }}</nowiki> | ||
===breaking stuff=== | |||
{{#ifexist: User:Telinchei/Test3 Templates | {{#ifexist: User:Telinchei/Test3 Templates | ||