Template:View

From Wikipedia, the free encyclopedia

Purge the Wikipedia cache of this template.



This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages.
Remember that you can conduct experiments, and should test all improvements, in either the general Template sandbox or your user space before changing anything here.


[edit] Usage

Copyable empty examples:

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

Which produces:
 v 
 v • d 
 v • d • e 
 v • d • e • h 
 v • d • e • h • m 
 v • d • 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 • [[Template talk:{{{template}}}|talk]] 
 view • [[Template talk:{{{template}}}|talk]] • [{{fullurl:Template:{{{template}}}|action=edit}} edit] 
 view • [[Template talk:{{{template}}}|talk]] • [{{fullurl:Template:{{{template}}}|action=edit}} edit] • [{{fullurl:Template:{{{template}}}|action=history}} hist]. 
 view • [[Template talk:{{{template}}}|talk]] • [{{fullurl:Template:{{{template}}}|action=edit}} edit] • [{{fullurl:Template:{{{template}}}|action=history}} hist]. • move 
 view • [[Template talk:{{{template}}}|talk]] • [{{fullurl:Template:{{{template}}}|action=edit}} edit] • [{{fullurl:Template:{{{template}}}|action=history}} hist]. • move • [{{fullurl:Template:{{{template}}}|action=watch}} watch] 

[edit] Required parameters

  • {{v|{{subst:PAGENAME}}}} the template name is required.
  • {{view|{{subst:PAGENAME}}}} the template name is required.
The {{subst:PAGENAME}} will be substituted with the template's name when parsed by the servers.