User:Jim Grisham/Templates/Draftlink

<!-- Paste here before adding above:
 * 1) Draft: (talk)
 * 2) * Draft for: | (talk) | redirect (talk) | disambiguation (disambiguation talk)
 * 3) * Deletion discussion / log: Articles for deletion/ (talk) / deletion log for ‘’ (talk)
 * 4) * Wayback Machine: ( Earlist / All / Latest )
 * 5) *Articles linking to (talk)
 * 6) *Recent changes linked to  (talk)
 * 7) *Edit history of (talk)

See: template:Ti (re-creates much of what I was trying to do here)

Each for article + talk:

{Can I put in some sort of (even if having to resort to JS) ‘tools’ popup?}

Transclusions: https://en.wikipedia.org/w/index.php?title=Special%3AWhatlinkshere%2FTemplate%3AHatnote&limit=5000&hidelinks=1&hideredirs=1

Page info: https://en.wikipedia.org/w/index.php?title=Talk:Template_processor&action=info

Lint errors: https://en.wikipedia.org/wiki/Special:LintErrors?namespace=1&titlesearch=Template_processor&exactmatch=1

Page stats: https://pageviews.wmcloud.org/?pages=Talk:Template_processor&project=en.wikipedia.org WikiChecker: http://en.wikichecker.com/article/?a=Talk:Template_processor Pageview analysis: https://pageviews.wmcloud.org/?project=en.wikipedia.org&platform=all-access&agent=user&redirects=0&range=latest-20&pages=Template_processor Redirect views: https://pageviews.wmcloud.org/redirectviews/?project=en.wikipedia.org&platform=all-access&agent=user&range=latest-20&sort=views&direction=1&view=list&page=Templating%20language Check external links: http://69.142.160.183/~dispenser/cgi-bin/webchecklinks.py?page=Talk%3ATemplate_processor&hostname=en.wikipedia.org Revision statistics: https://sigma.toolforge.org/articleinfo.py?page=Talk%3ATemplate_processor&server=enwiki Copyvio detector: https://copyvios.toolforge.org/?lang=en&project=wikipedia&title=Talk%3ATemplate_processor&oldid=&action=search&use_engine=1&use_links=1 Authorship: https://xtools.wmflabs.org/authorship/en.wikipedia.org/Talk:Template_processor

- Can I store each of the above in some kind of tuple, i.e. with something like JSON, to seperate the data from the template code? e.g. {authorship|(category)|Authorship stats|url|wp_url_encode|-| https://xtools.wmflabs.org/authorship/en.wikipedia.org/|-|-|(pretty description)|(developer notes, hidden)}

{refname|refcategory|title|url or wikilink preferred|wikilink prefix|url prefix|type of url encoding (e.g. ‘_’ or ‘+’ for spaces)|url suffix|error text|long description|hidden developer notes about usage and restrictions}

- Script to auto-import or auto-update that format from a spreadsheet / .csv file

… then, invoke with something like

… where refReplace = template or function name articleTitle = title of subject wikipedia article type = choice of (wikiLink/wL/w) or (URL/url/www/web), if both are defined showTalk = provide output for ~both~ the stated article ~and~ the corresponding ‘Talk:’ or ‘User talk:’ page (format not configurable without adding 1-2 additional fields to above ‘definition table’ showMissing = show some text (e.g. “(tbd)”) if no wiki or URL definition present

showIfError = show some text (e.g. “(tbd)”) if other errors customText = show some text, defined at runtime, after the normal output

… or perhaps …

tlx -->

Parameters

 * articlename= : Literal article name (as normally used with wikilinks)
 * articleurlname= : Name with spaces replaced by ‘_’ and other characters made url-safe.
 * draftuser= : Username for which to search for ‘userspace drafts’ with this title (optional; reserved for future use)


 * draftuserpath= : custom path prefix to use when ‘draftuser’ is provided and drafts are in a non-default userspace location (optional; reserved for future use)


 * note= : Notes to be included in template output (optional; reserved for future use)
 * comment= : Hidden comments (only for wikitext source and perhaps HTML source output) (optional; reserved for future use)

Showing footnotes
Show ‘efn’ templates by adding this to the page where the template is used, ~not~ to this template itself:

or

(Note: the first example is the equivalent of.

See Reflist-talk, Notelist-talk, and Reflist#Grouped references for usage details.

Other
Other ‘special’ links:

Special:SpecialPages

Special:MyContributions

Special:MyTalk

Special:RecentChanges

Special:Search

Special:Linksearch

(Namespace):Special:AllPages

&action=show-download-screen

Special:Version

Templates

 * Templates


 * Template namespace
 * Help:Template
 * Help:Transclusion
 * Help:Substitution
 * Template index
 * Template index/Examples


 * Navigation templates
 * Adept template coders
 * Wikipedia talk:Talk page templates
 * Category:Wikipedia templates


 * WP:WikiProject Stub sorting/Stub types

Miscellany

 * Magic words (help)
 * Info
 * Manual:Magic words - technical reference
 * Help:Magic words
 * mw:Help:Magic words, including ‘standard’ parser functions
 * Types
 * Parser functions
 * CoreParserFunctions.php


 * mw:Help:Extension:ParserFunctions - additional parser functions, including conditional expressions
 * Variables
 * mw:Help:Magic words § Variables
 * Page name § sub


 * Behavior switches


 * Wiki markup
 * Help:Wikitext
 * mw:Manual:Extending wiki markup


 * Editors
 * wikEd (help)


 * Scripts
 * Category:Wikipedia scripts


 * Categories
 * Userboxes
 * Category suppression


 * Teahouse


 * Village Pump
 * [[WP:VPP|Policy]
 * Village pump (technical)
 * Proposals
 * Idea lab
 * WMF
 * Miscellaneous


 * Page moves and restoration
 * Requests for history merge
 * Special:Undelete/ArticleName
 * Special:MergeHistory

en-5
 * Userboxes (UBX)
 * Babel
 * Category:Wikipedians by language
 * Also Wikipedia:Babel-N
 * mw:Extension:Babel
 * Module:Babel
 * allows ‘nocat=true’ option
 * Userboxes/Programming


 * Userboxes/Language/Markup




 * User page ‘top icons’
 * 30


 * Category:Userbox arrangement templates

pages using prefix
 * Main other
 * Namespace detect
 * MediaWiki API
 * [[mw:API:Iwbacklinks|API:iwbacklinks]: find
 * Help:What links here
 * Finding external links to a page
 * Extension:DynamicPageList
 * Templates with red links


 * Reference desk/Miscellaneous


 * MediaWiki:Protect-text
 * Special:ProtectedPages - protected from editing
 * Special:ProtectedTitles - cannot be created
 * Special:StablePages - pending changes protection
 * Reviewing pending changes
 * Pending changes
 * Pending changes discussions
 * Protection policy


 * Refactoring


 * Accessibility
 * Manual of Style § Scrolling lists and collapsible content
 * Collapse vs. ‘hidden’ vs. Collapsible list
 * ‘Hidden’ may not function on mobile themes T111565


 * MediaWiki:Wikitext
 * Wikimedia Meta - Help:Wikitext examples


 * Needed articles
 * Most-wanted articles
 * Requested articles
 * WikiProject Missing encyclopedic articles
 * Article creation


 * Maintenance
 * Backlog
 * Dashboard
 * Database reports


 * Namespace (help) / Template programming
 * MediaWiki:Manual:
 * ns:MediaWiki:Extension:
 * MediaWiki:Project:
 * Inter-wiki prefixes (map / table):
 * v: : Wikiversity
 * c: : Wikimedia Commons
 * d: : Wikidata
 * q: : Wikiquote
 * s: : Wikisource
 * w: : Wikipedia (list)
 * de:w: : Germany
 * en:w: : English
 * mw: : MediaWiki
 * m: meta: : Meta-Wiki
 * voy: : Wikivoyage
 * wikt: : Wiktionary
 * mwf: : Wikimedia Foundation
 * mwau: : Australia
 * wmca: : Canada
 * wmde: : Germany
 * wmin: : India
 * wmes: : Spain
 * wmuk: : United Kingdom
 * phab: : Phabricator
 * mediazilla: : MediaZilla
 * bugzilla: : Bugzilla
 * testwiki: : Test Wiki
 * toolforge: : Toolforge
 * wikitech: : Wikitech