Jump to content

Template:Wn/si/මූලාශ්‍රය/pub

From Wikimedia Incubator

This template handles the publisher field for {{Wn/si/මූලාශ්‍රය}}. Though this is called for every citation, the logic in handling this field is somewhat nontrivial, so factoring out the formatting to here leaves the parent template more purely concerned with sorting out the template fields.

භාවිතය

[edit source]

Three parameters are supported:

  • pub — required — name of the publisher.
  • target — required — target for the link; always provided by the parent template (which is responsible for sorting out the template interface). target=no requests the publisher be left unlinked (see {{Wn/si/මූලාශ්‍රය/pub/no}}).
  • nocat — optional — if non-blank, suppresses categorization.

අභ්‍යන්තර ක්‍රියාකාරීත්ත්වය

[edit source]

Don't be tripped up by the parameter names here. They do not correspond, quite, to the names of parameters passed to the parent template, {{Wn/si/මූලාශ්‍රය}}. Parameter pub is often, but not always, the same as the same-named parameter to the parent template. Parameter target is sometimes the same as parent parameter pubtarget, but that parent parameter is optional and (as of this writing) usually omitted, whereas the target parameter here is required.