Template:Wikistats v2.2-project: Difference between revisions

→‎Usage: Second example
m (Changed protection level for "Template:Wikistats 2.2-project": High importance template or form ([Edit=Registered only] (indefinite) [Move=Allow only administrators] (indefinite)))
(→‎Usage: Second example)
Line 8: Line 8:


==Usage==
==Usage==
;Code
===Code===
:<code><nowiki>{{Wikistats 2.2-project|'1'|'2'|'3'}}</nowiki></code>
:<code><nowiki>{{Wikistats 2.2-project|'1'|'2'|'3'}}</nowiki></code>
Where:
Where:
# = two-letter identifying code for wiki project from Wikistats 2.2 URL
# = two-letter identifying code for wiki project from Wikistats 2.2 URL
# = pluralised name of wiki project as shown in title of target Wikistats 2.2 page
# = pluralised name of wiki project as shown in title of target Wikistats 2.2 page
# = singular name of wiki project as shown on our WikiIndex [[Special:Categories|category]] or [[article]] page
# = singular name of wiki project as shown on our WikiIndex [[Special:Categories|category]] or [[article]] page - ''or'' - an additional descriptive comment
;Example - project listing
====Example 1 - project listing====
:<code><nowiki>{{Wikistats 2.2-project|wt|Wiktionaries|Wiktionary}}</nowiki></code>
:<code><nowiki>{{Wikistats 2.2-project|wt|Wiktionaries|Wiktionary}}</nowiki></code>
;Output
;Output 1
{{Wikistats 2.2-project|wt|Wiktionaries|Wiktionary}}
{{Wikistats 2.2-project|wt|Wiktionaries|Wiktionary}}
====Example 2 - project listing with additional descriptive comment====
:<code><nowiki>{{Wikistats 2.2-project|mw|MediaWikis (independent)|over 12,120 independent MediaWiki-powered}}</nowiki></code>
;Output 2
{{Wikistats 2.2-project|mw|MediaWikis (independent)|over 12,120 independent MediaWiki-powered}}


==Similar related template==
==Similar related template==