• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:View/sandbox

  • Template
  • Talk
  • Language
  • Watch
  • Edit
< Template:View
  • view
  • talk
  • edit
This is the template sandbox page for Template:View (diff).
See also the companion subpage for test cases.
Template documentation[view] [edit] [history] [purge]
The VTE template invokes the {{navbar}} template with the parameter |mini= set to 1, thius linking to a template that gives direct access to the template's pages. Based on whether {{v}} or {{view}} is used, it renders as
  • v
  • t
  • e
and as
  • view
  • talk
  • edit
respectively. There are more configrable options to hide or add more links to both of these:

Usage

edit

Copyable empty examples:

{{v|{{subst:PAGENAME}}}}
{{v|t|template={{subst:PAGENAME}}}}
{{v|t|e|template={{subst:PAGENAME}}}}
{{v|t|e|h|template={{subst:PAGENAME}}}}
{{v|t|e|h|m|template={{subst:PAGENAME}}}}
{{v|t|e|h|m|w|template={{subst:PAGENAME}}}}

Which produces:

  • v
  • v
  • t
  • v
  • t
  • e
  • v
  • t
  • e
  • h
  • v
  • t
  • e
  • h
  • m
  • v
  • t
  • e
  • h
  • m
  • w

The same type of template only for the full text "view" style:

{{view|{{subst:PAGENAME}}}}
{{view|talk|template={{subst:PAGENAME}}}}
{{view|talk|edit|template={{subst:PAGENAME}}}}
{{view|talk|edit|hist|template={{subst:PAGENAME}}}}
{{view|talk|edit|hist|move|template={{subst:PAGENAME}}}}
{{view|talk|edit|hist|move|watch|template={{subst:PAGENAME}}}}
  • view
  • view
  • talk
  • view
  • talk
  • edit
  • view
  • talk
  • edit
  • hist
  • view
  • talk
  • edit
  • hist
  • move
  • view
  • talk
  • edit
  • hist
  • move
  • watch

Adding option |d (for "discuss") equals adding |t, adding a t link (for "talk").

Required parameters

edit
  • {{v|{{subst:PAGENAME}}}} the template name is required. Do not add the namespace.
  • {{view|{{subst:PAGENAME}}}} the template name is required. Do not add the namespace.
The {{subst:PAGENAME}} will be substituted with the template's name when parsed by the servers.
The above documentation is transcluded from Template:View/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:View/sandbox&oldid=833754252"
Last edited on 2 April 2018, at 07:49

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 2 April 2018, at 07:49 (UTC).
      • Content is available under CC BY-SA 4.0 unless otherwise noted.
      • Privacy policy
      • About Wikipedia
      • Disclaimers
      • Contact Wikipedia
      • Code of Conduct
      • Developers
      • Statistics
      • Cookie statement
      • Terms of Use
      • Desktop