සැකිල්ල:Cite EB15/title check
සැකිලි ප්රලේඛනය
Title validation: If title is absent, both volume and page number must be present. This routine returns:
- the title, if it is present;
- a concatenated volume + page-number string (e.g.,
v.7-p.602
), if both are present and title is absent; - the empty string, in all other cases (indicating an invalid combination was found).
Usage
{{Cite EB15/title check|volume=12|page=602|title=Buddhism}}
{{Cite EB15/title check|volume=12|page=602}}
Parameters
There are three required named parameters: volume
, page
, and title
.
Examples
- {{Cite EB15/title check|volume=12|page=602|title=Buddhism}} → Buddhism
- {{Cite EB15/title check|volume=12|page=602|title=}} → v.12–p.602
- {{Cite EB15/title check|volume=12}} →
- {{Cite EB15/title check|page=602}} →