Template:Annual readership/doc: Difference between revisions

no edit summary
(Created page with "{{Documentation subpage}} <!-- Add categories where indicated at the bottom of this page and interwikis at Bharatdata --> {{Template redirect|Page views|Daily pageviews|Annual pageviews|Annual views}} {{Ambox|type=content|text=Per '''Bharatpedia:Templates for discussion/Log/2024 August 25#Template:Annual readership''', this template is <u>hidden from view</u> until graphs is enabled again.}} {{Graphs disabled}} See [https://pageviews.wmcl...")
 
No edit summary
 
Line 29: Line 29:
If '''both''' {{para|title}} and {{para|target}} '''are not specified''', the graph title varies depending on the namespace of the page where this template is used.
If '''both''' {{para|title}} and {{para|target}} '''are not specified''', the graph title varies depending on the namespace of the page where this template is used.
*Title if placed on an article talk page:
*Title if placed on an article talk page:
*:'''Daily {{plainlink|url=https://tools.wmflabs.org/pageviews/?project=en.wikipedia.org&platform=all-access&agent=user&range=latest-{{{1|{{{days|365}}}}}}&pages={{urlencode:{{{2|{{{target|{{SUBJECTPAGENAME}}}}}}}}}}|name=pageviews}} of this article'''
*:'''Daily {{plainlink|url=https://tools.wmflabs.org/pageviews/?project=en.bharatpedia.org&platform=all-access&agent=user&range=latest-{{{1|{{{days|365}}}}}}&pages={{urlencode:{{{2|{{{target|{{SUBJECTPAGENAME}}}}}}}}}}|name=pageviews}} of this article'''
*Title if placed on a page in any other talk namespace (e.g., "User talk:", "Template talk:", "Bharatpedia talk:", etc.):
*Title if placed on a page in any other talk namespace (e.g., "User talk:", "Template talk:", "Bharatpedia talk:", etc.):
*:'''Daily {{plainlink|url=https://tools.wmflabs.org/pageviews/?project=en.wikipedia.org&platform=all-access&agent=user&range=latest-{{{1|{{{days|365}}}}}}&pages={{urlencode:{{{2|{{{target|{{SUBJECTPAGENAME}}}}}}}}}}|name=pageviews}} of [[Help:Magic_words#Variables|<nowiki>{{SUBJECTPAGENAME}}</nowiki>]]'''
*:'''Daily {{plainlink|url=https://tools.wmflabs.org/pageviews/?project=en.bharatpedia.org&platform=all-access&agent=user&range=latest-{{{1|{{{days|365}}}}}}&pages={{urlencode:{{{2|{{{target|{{SUBJECTPAGENAME}}}}}}}}}}|name=pageviews}} of [[Help:Magic_words#Variables|<nowiki>{{SUBJECTPAGENAME}}</nowiki>]]'''
*Title if placed on any subject page (i.e., pages in namespaces like "User:", "Template:", "Bharatpedia:", etc.):
*Title if placed on any subject page (i.e., pages in namespaces like "User:", "Template:", "Bharatpedia:", etc.):
*:'''Daily {{plainlink|url=https://tools.wmflabs.org/pageviews/?project=en.wikipedia.org&platform=all-access&agent=user&range=latest-{{{1|{{{days|365}}}}}}&pages={{urlencode:{{{2|{{{target|{{SUBJECTPAGENAME}}}}}}}}}}|name=pageviews}} of this page'''
*:'''Daily {{plainlink|url=https://tools.wmflabs.org/pageviews/?project=en.bharatpedia.org&platform=all-access&agent=user&range=latest-{{{1|{{{days|365}}}}}}&pages={{urlencode:{{{2|{{{target|{{SUBJECTPAGENAME}}}}}}}}}}|name=pageviews}} of this page'''


If {{para|title}} '''is not specified''', but {{para|target}} '''is specified''', the graph title is set as "Daily pageviews of ''target page''", with the target page linked.
If {{para|title}} '''is not specified''', but {{para|target}} '''is specified''', the graph title is set as "Daily pageviews of ''target page''", with the target page linked.
*For example, inputting {{para|target|XYZ}} would set the graph title as:
*For example, inputting {{para|target|XYZ}} would set the graph title as:
*:'''Daily {{plainlink|url=https://tools.wmflabs.org/pageviews/?project=en.wikipedia.org&platform=all-access&agent=user&range=latest-{{{1|{{{days|365}}}}}}&pages={{urlencode:{{{2|{{{target|{{SUBJECTPAGENAME}}}}}}}}}}|name=pageviews}} of [[XYZ]]'''
*:'''Daily {{plainlink|url=https://tools.wmflabs.org/pageviews/?project=en.bharatpedia.org&platform=all-access&agent=user&range=latest-{{{1|{{{days|365}}}}}}&pages={{urlencode:{{{2|{{{target|{{SUBJECTPAGENAME}}}}}}}}}}|name=pageviews}} of [[XYZ]]'''


If {{para|title}} '''is specified''', regardless of the specification of {{para|target}}, the graph title is set as "Daily pageviews of ''text''", with the text unlinked.
If {{para|title}} '''is specified''', regardless of the specification of {{para|target}}, the graph title is set as "Daily pageviews of ''text''", with the text unlinked.
*For example, inputting {{para|title|XYZ}} would set the graph title as:
*For example, inputting {{para|title|XYZ}} would set the graph title as:
*:'''Daily {{plainlink|url=https://tools.wmflabs.org/pageviews/?project=en.wikipedia.org&platform=all-access&agent=user&range=latest-{{{1|{{{days|365}}}}}}&pages={{urlencode:{{{2|{{{target|{{SUBJECTPAGENAME}}}}}}}}}}|name=pageviews}} of XYZ'''
*:'''Daily {{plainlink|url=https://tools.wmflabs.org/pageviews/?project=en.bharatpedia.org&platform=all-access&agent=user&range=latest-{{{1|{{{days|365}}}}}}&pages={{urlencode:{{{2|{{{target|{{SUBJECTPAGENAME}}}}}}}}}}|name=pageviews}} of XYZ'''
*For example, inputting {{para|title|<nowiki>[[XYZ]]</nowiki>}} would set the graph title as:
*For example, inputting {{para|title|<nowiki>[[XYZ]]</nowiki>}} would set the graph title as:
*:'''Daily {{plainlink|url=https://tools.wmflabs.org/pageviews/?project=en.wikipedia.org&platform=all-access&agent=user&range=latest-{{{1|{{{days|365}}}}}}&pages={{urlencode:{{{2|{{{target|{{SUBJECTPAGENAME}}}}}}}}}}|name=pageviews}} of [[XYZ]]'''
*:'''Daily {{plainlink|url=https://tools.wmflabs.org/pageviews/?project=en.bharatpedia.org&platform=all-access&agent=user&range=latest-{{{1|{{{days|365}}}}}}&pages={{urlencode:{{{2|{{{target|{{SUBJECTPAGENAME}}}}}}}}}}|name=pageviews}} of [[XYZ]]'''


==Examples==
==Examples==