Difference between revisions of "Template:Update"

From RogueBasin
Jump to navigation Jump to search
(doc)
Line 1: Line 1:
<includeonly>{{!}}- bgcolor="{{{color}}}"
<includeonly>{{!}}- bgcolor="{{{1}}}"
{{!}} style="float:left" {{!}} [[{{{name}}}]] [{{{url}}}] {{{extraInfo}}} {{!!}} style="float:right" {{!}} {{{stability}}} {{!!}} align="left" {{!}} {{{theme}}} {{!!}} align="right" {{!}} {{{date}}} {{!!}} align="right" {{!}} {{{version}}} {{!}}{{!}} align="left" {{!}} {{{based}}} {{!!}} align="left" {{!}} {{{lang}}}
{{!}} style="float:left" {{!}} [[{{{2}}}]] [{{{3}}}] {{{4}}} {{!!}} style="float:right" {{!}} {{{5}}} {{!!}} align="left" {{!}} {{{6}}} {{!!}} align="right" {{!}} {{{7}}} {{!!}} align="right" {{!}} {{{8}}} {{!}}{{!}} align="left" {{!}} {{{9}}} {{!!}} align="left" {{!}} {{{10}}}
{{!}}-</includeonly><noinclude>This template is used as an entry in the [[Recently Updated Roguelikes]] page to reduce HTML/CSS/table stuff there and increase mainainability of the page.
{{!}}-</includeonly><noinclude>This template is used as an entry in the [[Recently Updated Roguelikes]] page to reduce HTML/CSS/table stuff there and increase mainainability of the page.
Usage:
Usage:
  <nowiki>{{Update | name | extraInfo |url| stability | theme | date | version | based | lang }}</nowiki>
  <nowiki>{{Update | color | name | extraInfo |url| stability | theme | date | version | based | lang }}</nowiki>
Parameters:
Parameters:
* ''name'' - title of the roguelike (note: it's used to create a link)
# ''color'' - background color of the entry
* ''extraInfo'' - extra information, if needed (e. g. former title)
# ''name'' - title of the roguelike (note: it's used to create a link)
* ''url'' - home page of the game
# ''extraInfo'' - extra information, if needed (e. g. former title)
* ''stability'' - typically one of the templates: stable, alpha, beta
# ''url'' - home page of the game
* ''theme'' - game's main theme (e. g. fantasy, s-f)
# ''stability'' - typically one of the templates: stable, alpha, beta
* ''date'' - last release date
# ''theme'' - game's main theme (e. g. fantasy, s-f)
* ''version'' - last version number
# ''date'' - last release date
* ''based'' - the main predecessor (if any)
# ''version'' - last version number
* ''lang'' - programming language(s) used
# ''based'' - the main predecessor (if any)
# ''lang'' - programming language(s) used
If something screws up, it's probably the ''url'' parameter. Please be careful about it. There should be no spaces before and after the URL and it must not contain special characters, most notably the '=' character. The '=' can be replaced by the utility template <nowiki>{{=}}</nowiki>. The same thing applies to the other parameters, but it is especially important in URLs, as they unfortunately often contain '='.
If something screws up, it's probably the ''url'' parameter. Please be careful about it. There should be no spaces before and after the URL and it must not contain special characters, most notably the '=' character. The '=' can be replaced by the utility template <nowiki>{{=}}</nowiki>. The same thing applies to the other parameters, but it is especially important in URLs, as they unfortunately often contain '='.
</noinclude>
</noinclude>

Revision as of 11:03, 27 January 2012

This template is used as an entry in the Recently Updated Roguelikes page to reduce HTML/CSS/table stuff there and increase mainainability of the page. Usage:

{{Update | color | name | extraInfo |url| stability | theme | date | version | based | lang }}

Parameters:

  1. color - background color of the entry
  2. name - title of the roguelike (note: it's used to create a link)
  3. extraInfo - extra information, if needed (e. g. former title)
  4. url - home page of the game
  5. stability - typically one of the templates: stable, alpha, beta
  6. theme - game's main theme (e. g. fantasy, s-f)
  7. date - last release date
  8. version - last version number
  9. based - the main predecessor (if any)
  10. lang - programming language(s) used

If something screws up, it's probably the url parameter. Please be careful about it. There should be no spaces before and after the URL and it must not contain special characters, most notably the '=' character. The '=' can be replaced by the utility template {{=}}. The same thing applies to the other parameters, but it is especially important in URLs, as they unfortunately often contain '='.