Difference between revisions of "Template:Link article stats"

From blackwiki
Jump to navigation Jump to search
imported>Fixuture
imported>Retro
(Converting to a more regular template documentation format.)
 
Line 1: Line 1:
<!--==========================================================
+
'''{{{1}}}''' {{{numtext|per day}}}: [[{{{2}}}]] <sup>([[Special:Search/{{{2}}}|search]] | [[google:"{{{3|{{{2}}}}}}"|google]] | [http://stats.grok.se/en/{{{year|2008}}}/{{anchorencode:{{{2}}}}} grok.se-{{{year|2008}}}]| [http://stats.grok.se/en/{{{yearmon|200901}}}/{{anchorencode:{{{2}}}}} grok.se-{{{yearmon|200901}}}]{{{4|}}})</sup>{{#ifeq:{{{2|<includeonly>xx</includeonly>}}}|xx|<br>TheArticleNameis2ndParameter}}<noinclude>
  -- Template:Link_article_stats - Link count, name & stats
+
{{Documentation|content=
  --==========================================================
+
This template displays a count number, with a linked article name, plus a linked wiki-search, and linked statistics webpages.  The effective coding generates a one-line entry with embedded links.
  --                        (see NOTES below)
 
  --><noinclude>
 
{| width=530px <!--wrap text across 530px page. --
 
  --> style="background:#FAFAFE"
 
|The '''Template:Link_article_stats''' displays a count number, with a linked article name, plus a linked wiki-search, and linked statistics webpages.  The effective coding generates a one-line entry with embedded links, as follows:
 
  
</noinclude><!--
+
*'''Format''': {{tlc|Link article stats|''num''|''label''|''text''|year{{=}}2008|yearmon{{=}}200901|numtext{{=}}per day}}
-->'''{{{1}}}''' {{{numtext|per day}}}: [[{{{2}}}]] <sup>([[Special:Search/{{{2}}}|search]] | [[google:"{{{3|{{{2}}}}}}"|google]] | [http://stats.grok.se/en/{{{year|2008}}}/{{anchorencode:{{{2}}}}} grok.se-{{{year|2008}}}]| [http://stats.grok.se/en/{{{yearmon|200901}}}/{{anchorencode:{{{2}}}}} grok.se-{{{yearmon|200901}}}]{{{4|}}})</sup>{{<!--
+
**where,
-------------------------------------- Check for parameter #2
+
***''num'' - is a number,
-->#ifeq:{{{2|<includeonly>xx</includeonly>}}}|xx|<br>TheArticleNameis2ndParameter}}<!--
+
***''label'' - is the visible label of the article name
--><noinclude>
+
***''text'' - is the text used for searching/linking
|}<!--end table that restricts documentation page width-->
+
***year=2008 - year number for the first link to stats.grot.se
<br>
+
***yearmon=200901 - year-month number for 2nd link to stats.grot.se
: '''Format''':  {<nowiki/>{Link_article_stats|''num''|''label''|''text''|<!--
+
***numtext=xxx - text after the number (default: per day)
-->year=2008|yearmon=200901|numtext=per day}}
 
  
::: where,
+
The first 3 parameters are required, but "year" & "yearmon" & "numtext" are optional.
:::: ''num'' - is a number,
 
:::: ''label'' - is the visible label of the article name
 
:::: ''text'' - is the text used for searching/linking
 
:::: year=2008 - year number for the first link to stats.grot.se
 
:::: yearmon=200901 - year-month number for 2nd link to stats.grot.se
 
:::: numtext=xxx - text after the number (default: per day)
 
  
The first 3 parameters are required, but "year" & "yearmon" & "numtext" are optional.
+
This template is intended for use when listing article names along with a link for wiki-search, plus links for readership stats. This template was created to auto-link article name with stats pages.
 
<!--
 
<!--
--======================================================
 
--NOTES:
 
--
 
--  NOTE HEY: This template is intended for use when listing
 
--      article names along with a link for wiki-search,
 
--      plus links for readership stats.
 
 
--
 
--
 
--  NOTE D2: Coding can rarely be indented, but not "{{" so
 
--  NOTE D2: Coding can rarely be indented, but not "{{" so
Line 45: Line 27:
 
--
 
--
 
--HISTORY:
 
--HISTORY:
-- 19Jan09 Created to auto-link article name with stats pages.
+
-- 19Jan09  
 
-->
 
-->
 
 
[[Category:Wikipedia pageviews]]
 
[[Category:Wikipedia pageviews]]
</noinclude>
+
}}</noinclude>

Latest revision as of 01:55, 20 June 2019

{{{1}}} per day: [[{{{2}}}]] ([[Special:Search/{{{2}}}|search]] | [[google:"{{{2}}}"|google]] | grok.se-2008| grok.se-200901)

Template documentation

This template displays a count number, with a linked article name, plus a linked wiki-search, and linked statistics webpages. The effective coding generates a one-line entry with embedded links.

  • Format: {{Link article stats|num|label|text|year=2008|yearmon=200901|numtext=per day}}
    • where,
      • num - is a number,
      • label - is the visible label of the article name
      • text - is the text used for searching/linking
      • year=2008 - year number for the first link to stats.grot.se
      • yearmon=200901 - year-month number for 2nd link to stats.grot.se
      • numtext=xxx - text after the number (default: per day)

The first 3 parameters are required, but "year" & "yearmon" & "numtext" are optional.

This template is intended for use when listing article names along with a link for wiki-search, plus links for readership stats. This template was created to auto-link article name with stats pages.