Page MenuHomePhabricator

template arguments lack default values
Closed, ResolvedPublic

Description

Author: alarm

Description:
Adding default values in form {{{arg|val}}} would enhance templates without adding much complexity. This would
solve several issues and ease use of templates in many situations:

  • Adding a new argument to the existing template would not be so painfull (currently you have to add argument to

every place template is used, but that may be very long process)

  • Usage of templates for infoboxes with many optional arguments could be more readable (no need to assign empty

value for every not used argument - these values would be inlcluded in template definition)

Extending a format this way would be safe enough to include in existing wiki sites as '|' character was never used in
{{{ parentheses, so nothing will be broken.


Version: unspecified
Severity: enhancement

Details

Reference
bz3363

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:49 PM
bzimport set Reference to bz3363.
bzimport added a subscriber: Unknown Object (MLST).
  • This bug has been marked as a duplicate of 364 ***