enow.com Web Search

Search results

  1. Results from the WOW.Com Content Network
  2. Module:Arguments/doc - Wikipedia

    en.wikipedia.org/wiki/Module:Arguments/doc

    Example 1: this function preserves whitespace for the first positional argument's value, but trims all other arguments' value and removes all other blank arguments. local args = getArgs ( frame , { valueFunc = function ( key , value ) if key == 1 then return value elseif value then value = mw . text . trim ( value ) if value ~= '' then return ...

  3. Help:Template - Wikipedia

    en.wikipedia.org/wiki/Help:Template

    Using a template is similar to calling a function in programming. When called, it returns a value. For a template, calling is known as a template call and the return value is known as the expansion of the template, which is treated as part of the calling page's source. Like functions, some templates can take parameters that affect their output.

  4. Module:Template invocation - Wikipedia

    en.wikipedia.org/wiki/Module:Template_invocation

    name – the name of the template (string, required). This should be exactly as it will appear in the invocation, e.g. for Template:Example use "Example". To generate the template name from a page name, you can use the name function. args – the arguments to use in the invocation (table, required). Table keys and values must be either strings ...

  5. Template:Parameters/doc - Wikipedia

    en.wikipedia.org/wiki/Template:Parameters/doc

    } extracts a specified template's parameters and performs a variety of tasks to aid in its documentation or WP:TFD merge nominations. It itself takes two parameters: |1=, the output format; and |base=, the title of a template. The compare function requires a third parameter, |other=. {} must always be substituted. Its usage is demonstrated below.

  6. Wikipedia:Advanced template coding - Wikipedia

    en.wikipedia.org/wiki/Wikipedia:Advanced...

    Copy a template section into a test-page edit-window, for debug. Copy a template section to the top of the template, for debug. Restructure a template so that each section is more separated. The basic strategy: isolate the code section to be debugged. Next, the testing, of each section of code, is crucial. There are some age-old adages to heed:

  7. Template:PHP - Wikipedia

    en.wikipedia.org/wiki/Template:PHP

    This template is designed as a navigation aid to the most significant articles about PHP. It is not meant to have exhaustive lists (incomplete or complete) of PHP software, PHP people, all PHP articles, etc. However, feel free to add it to any PHP-related articles.

  8. Wikipedia:Anatomy of a template - Wikipedia

    en.wikipedia.org/.../Wikipedia:Anatomy_of_a_template

    Templates on Wikipedia can be used for a variety of purposes. Some common uses for templates include infoboxes to summarize the information presented in an article, while others are information messages.

  9. Module talk:Arguments - Wikipedia

    en.wikipedia.org/wiki/Module_talk:Arguments

    This makes it a standard named-arguments function. When wrappers aren't in use, it behaves as if frameOnly were set by default. Indiscriminate mixing of frame and parent arguments without knowing what the parent is has caused subtle bugs in the past, and it doesn't appear to have any legitimate use cases.