Template talk:Cite NSW Parliament

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
WikiProject iconAustralia Template‑class
WikiProject iconCite NSW Parliament is within the scope of WikiProject Australia, which aims to improve Wikipedia's coverage of Australia and Australia-related topics. If you would like to participate, visit the project page.
TemplateThis template does not require a rating on Wikipedia's content assessment scale.

If empty template[edit]

@Find bruce: you might find Template:If empty useful when dealing with multiple alternate parameters or aliases which can be passed into cite templates. You can write things like:

| title        = {{if empty |{{{name|}}} |{{{title|}}} }}

| access-date  = {{if empty |{{{access-date|}}} |{{{accessdate|}}} }}

The first non-empty parameter is returned in each case, or nothing if all of them are empty or missing.

It's not much of a gain here, but in future you might find useful the ability to specify as many alternate parameters or aliases as you want. Cheers --RexxS (talk) 16:09, 25 April 2019 (UTC)[reply]

Thanks for the suggestion @RexxS: - it makes it much clearer how the template works. Find bruce (talk) 22:20, 25 April 2019 (UTC)[reply]