Template:Tlp/doc

From wikibase-docker
Jump to navigation Jump to search

{{#ifeq: doc | doc

 | 	

{{

   #ifeq: show | show	
   | {{#invoke:Message box|mbox}}	
   }}{{
   #if: 
   | 
   | {{#ifexist:Template:Tlp|[[Category:{{	
     #switch: Template	
     | Template  = Template
     | Module    = Module
     | User      = User	
     | #default  = Wikidata
   }} documentation pages]]|}}	
 }}	

| }}

Usage[edit]

The template link template is a simple macro template used to display a template name as a link surrounded by braces and parameters, thus showing how the template would be used in code. Its primary use is in instruction and documentation.

You can use this template to show another template, e.g. {{Tlp|nutshell|text}} produces {{{{#if:nutshell| Nutshell | Tlp|... }}{{#ifeq:text|text| |text }}{{#ifeq:x|| |{{{3}}} }}{{#ifeq:x|| |{{{4}}} }}{{#ifeq:x|| |{{{5}}} }}{{#ifeq:x|| |{{{6}}} }}{{#ifeq:x|| |{{{7}}} }}{{#ifeq:x|| |{{{8}}} }}{{#ifeq:x|| |{{{9}}} }}{{#invoke:Template|format_pname_parameters}}}}. {{Tlp|nutshell|text|plop=polp}} produces {{{{#if:nutshell| Nutshell | Tlp|... }}{{#ifeq:text|text| |text }}{{#ifeq:x|| |{{{3}}} }}{{#ifeq:x|| |{{{4}}} }}{{#ifeq:x|| |{{{5}}} }}{{#ifeq:x|| |{{{6}}} }}{{#ifeq:x|| |{{{7}}} }}{{#ifeq:x|| |{{{8}}} }}{{#ifeq:x|| |{{{9}}} }}{{#invoke:Template|format_pname_parameters}}}}.

See also[edit]