टेम्पलेट:Find a Grave: रिवीजन सभ के बीचा में अंतर

Content deleted Content added
better
Display message if no ID in template and no Wikidata. Add edit link if using Wikidata. Add Wikidata tracking categories. "Underused" template moved to /doc. Tested first with /sandbox and /testcases.
लाइन 1:
{{#if: {{{author1<includeonly>|</includeonly>}}} {{{lastgrid|}}} {{{date|}}}{{{accessdate|}#property:P535}}
|{{#if:{{{author|}}}{{{last|}}}{{{date|}}}{{{accessdate|}}}
|{{cite web|url=https://www.findagrave.com/cgi-bin/fg.cgi?page=gr&GRid={{{1|{{{grid|{{#property:P535}}}}}}}} |title={{{2|{{{name|{{PAGENAMEBASE}}}}}}}} |publisher=[[Find a Grave]] |work={{{work|}}} |last={{{last|{{{author|}}}}}} |first={{{first|}}} |date={{{date|}}} |accessdate={{{accessdate|}}}}}
|[https://www.findagrave.com/cgi-bin/fg.cgi?page=gr&GRid={{{1|{{{grid|{{#property:P535}}}}}}}} {{{2|{{{name<includeonly>|{{PAGENAMEBASE}}</includeonly>}}}}}}]{{#if:{{{work|}}}|, {{{work}}}}} at [[Find a Grave]]
}}<includeonly>{{EditAtWikidata|pid=P535|{{{1|{{{id|}}}}}}}}</includeonly>
|<span class="error">&#123;&#123;[[Template:Find a Grave|Find a Grave]]&#125;&#125; template missing ID and not present in Wikidata.</span>
}}{{#if: {{{1|{{{id|}}}}}}
|<!--has "id"-->{{WikidataCheck|property=P535|value={{{1|{{{id|}}}}}}|category=Find a Grave template with ID}}
|{{Main other|{{#if: {{#property:P535}}
|<!--no "id", exists in Wikidata -->[[Category:Find a Grave template using Wikidata]]
|<!--no "id" and not in Wikidata -->[[Category:Find a Grave template missing ID and not in Wikidata]]
}}}}
}}<noinclude>
{{Documentation}}<!-- Please add categories to the /doc subpage & add interwikis to Wikidata. -->
{{Underused external link template|http://www.findagrave.com/}}
{{Documentation}}
</noinclude>