User:Wayoshi/Code FAQ: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
No edit summary
No edit summary
Line 11: Line 11:


----
----
==Parser Functions==
:Under construction
A '''parser function''' is a special template-based construction. Instead of <code><nowiki>{{name}}</nowiki></code>, the construction is <code><nowiki>{{#name:}}</nowiki></code>, with different syntax after the colon depending on each function. They are used for dynamic results in templates. 8 total are installed in a collective extension on this wiki, but we only have use for half of them:
*'''{{#expr}}'''
*'''{{#if}}'''
*{{#ifeq}}
*'''{{#ifexist}}'''
*{{#ifexpr}}
*'''{{#switch}}'''
*{{#time}}
*{{#rel2abs}}

Revision as of 22:21, July 21, 2007

Under construction

While I'm not a professional coder by any means, I have an expert grip on WikiSyntax, and I'd like to help newbies & long-time contributors alike with any issues they come across, hence this page. Most of you know basic syntax, but very little besides me can use ParserFunctions & DPL successfully, which I plan writing about here eventually.

You may ask a specific question on the talk page, in chat, my talk page (if something comes up), or basically anywhere, and I'll add it here if I think other people might ask the same question.

Please see these help pages before asking me your question, as these cover the basics:


Color codes · Editing · Format · Gallery · Image · Link · List · Signature · Table · Template


Parser Functions

Under construction

A parser function is a special template-based construction. Instead of {{name}}, the construction is {{#name:}}, with different syntax after the colon depending on each function. They are used for dynamic results in templates. 8 total are installed in a collective extension on this wiki, but we only have use for half of them:

  • {{#expr}}
  • {{#if}}
  • {{#ifeq}}
  • {{#ifexist}}
  • {{#ifexpr}}
  • {{#switch}}
  • {{#time}}
  • {{#rel2abs}}