Actions

Template

Editing Parameters/doc

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 7: Line 7:
  
 
=== Options ===
 
=== Options ===
 
 
==== check ====
 
==== check ====
Generates an invocation of [[Module:Check for unknown parameters]] which can be added to a template.
+
<pre>{{subst:Parameters|check|base={{subst:BASEPAGENAME}}}}</pre>
<pre style="margin-left:20px;margin-right:20px;">{{subst:Parameters|check|base={{subst:BASEPAGENAME}}}}</pre>
+
{{Hidden|header=Output|content=
{{Hidden |style=margin-left:20px;margin-right:20px;border:1px solid #ddd; |header=Output |content=
 
 
<pre style="white-space: normal; word-break: break-all;">{{#invoke:Check for unknown parameters|check|unknown=[[Category:Pages using Template:Infobox high court with unknown parameters]]|court_name|native_name|image|imagesize|width|height|caption|image2|imagesize2|caption2|established|dissolved|country|location|coordinates|motto|type|at|authority|appeals|terms|positions|budget|website|chiefjudgetitle|chiefjudgename|termstart|termend|termend2|chiefjudgetitle2|chiefjudgename2|termstart2|termend3|termend4}}</pre>
 
<pre style="white-space: normal; word-break: break-all;">{{#invoke:Check for unknown parameters|check|unknown=[[Category:Pages using Template:Infobox high court with unknown parameters]]|court_name|native_name|image|imagesize|width|height|caption|image2|imagesize2|caption2|established|dissolved|country|location|coordinates|motto|type|at|authority|appeals|terms|positions|budget|website|chiefjudgetitle|chiefjudgename|termstart|termend|termend2|chiefjudgetitle2|chiefjudgename2|termstart2|termend3|termend4}}</pre>
 
}}
 
}}
  
 
==== code ====
 
==== code ====
Generates code to display the transclusion syntax (a blank template) which can added to a template's documentation. {{Para|pad|yes}} aligns the equal signs vertically.
+
<pre>{{subst:Parameters|code|base={{subst:BASEPAGENAME}}}}</pre>
<pre style="margin-left:20px;margin-right:20px;">{{subst:Parameters|code|base={{subst:BASEPAGENAME}}}}</pre>
+
{{Hidden|header=Output|content=
{{Hidden |style=margin-left:20px;margin-right:20px;border:1px solid #ddd; |header=Output |content=
 
 
<pre>{{Infobox high court
 
<pre>{{Infobox high court
 
| court_name =  
 
| court_name =  
Line 58: Line 55:
  
 
==== compare ====
 
==== compare ====
Generates a comparison of the parameters available in two different templates.
+
<pre>{{subst:Parameters|compare|base=Infobox London station|other=Infobox station}}</pre>
<pre style="margin-left:20px;margin-right:20px;">{{subst:Parameters|compare|base=Infobox London station|other=Infobox station}}</pre>
+
{{Hidden|header=Output|content=
{{Hidden |style=margin-left:20px;margin-right:20px;border:1px solid #ddd; |header=Output |content=
 
 
<pre>Identical:
 
<pre>Identical:
 
* borough
 
* borough
Line 215: Line 211:
  
 
==== demo ====
 
==== demo ====
Generates an invocation of {{tl|Parameter names example}}, formerly known as {{tl|Generic template demo}}, which can added to a template's documentation.
+
<pre>{{subst:Parameters|demo|base={{subst:BASEPAGENAME}}}}</pre>
<pre style="margin-left:20px;margin-right:20px;">{{subst:Parameters|demo|base={{subst:BASEPAGENAME}}}}</pre>
+
{{Hidden|header=Output|content=
{{Hidden |style=margin-left:20px;margin-right:20px;border:1px solid #ddd; |header=Output |content=
 
 
<pre style="white-space: normal; word-break: break-all;">{{Parameter names example|court_name|native_name|image|imagesize|width|height|caption|image2|imagesize2|caption2|established|dissolved|country|location|coordinates|motto|type|at|authority|appeals|terms|positions|budget|website|chiefjudgetitle|chiefjudgename|termstart|termend|termend2|chiefjudgetitle2|chiefjudgename2|termstart2|termend3|termend4}}</pre>
 
<pre style="white-space: normal; word-break: break-all;">{{Parameter names example|court_name|native_name|image|imagesize|width|height|caption|image2|imagesize2|caption2|established|dissolved|country|location|coordinates|motto|type|at|authority|appeals|terms|positions|budget|website|chiefjudgetitle|chiefjudgename|termstart|termend|termend2|chiefjudgetitle2|chiefjudgename2|termstart2|termend3|termend4}}</pre>
 
}}
 
}}
  
 
==== dlist ====
 
==== dlist ====
Generates a parameter description list which can be filled in and added to a template's documentation. The output uses the semicolon and colon format where the parameter name is displayed in bold text and the description is indented.
+
<pre>{{subst:Parameters|dlist|base={{subst:BASEPAGENAME}}}}</pre>
<pre style="margin-left:20px;margin-right:20px;">{{subst:Parameters|dlist|base={{subst:BASEPAGENAME}}}}</pre>
+
{{Hidden|header=Output|content=
{{Hidden |style=margin-left:20px;margin-right:20px;border:1px solid #ddd; |header=Output |content=
 
 
<pre>
 
<pre>
 
; court_name:
 
; court_name:
Line 264: Line 258:
  
 
==== list ====
 
==== list ====
Generates a parameter description list which can be filled in and added to a template's documentation. Similar to '''dlist''' but uses asterisks which will generate a bulleted list.
+
<pre>{{subst:Parameters|list|base={{subst:BASEPAGENAME}}}}</pre>
<pre style="margin-left:20px;margin-right:20px;">{{subst:Parameters|list|base={{subst:BASEPAGENAME}}}}</pre>
+
{{Hidden|header=Output|content=
{{Hidden |style=margin-left:20px;margin-right:20px;border:1px solid #ddd; |header=Output |content=
 
 
<pre>* court_name
 
<pre>* court_name
 
* native_name
 
* native_name
Line 304: Line 297:
  
 
=== Common use cases ===
 
=== Common use cases ===
* To add a {{Tl|Parameter names example}} to a template's documentation, use: <code><nowiki>{{subst:Parameters|demo|base={{subst:BASEPAGENAME}}|_base=}}</nowiki></code>
+
* To add a {{Tl|Parameter names example}} to a template's documentation, use <code><nowiki>{{subst:Parameters|demo|base={{subst:BASEPAGENAME}}|_base=}}</nowiki></code>.
* To document the transclusion syntax, use: <code><nowiki>{{subst:#tag:pre|{{subst:Parameters|code|base={{subst:BASEPAGENAME}}}}|style=overflow: auto;}}</nowiki></code>
+
* To document the transclusion syntax, use <code><nowiki>{{subst:#tag:pre|{{subst:Parameters|code|base={{subst:BASEPAGENAME}}}}|style="overflow: auto;"}}</nowiki></code>.
  
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
Line 311: Line 304:
 
[[Category:Documentation assistance templates]]
 
[[Category:Documentation assistance templates]]
 
[[Category:Wikipedia utility templates]]
 
[[Category:Wikipedia utility templates]]
[[Category:Template namespace templates]]
 
[[Category:Template documentation]]
 
 
}}</includeonly>
 
}}</includeonly>

Please note that all contributions to Unofficial Stationeers Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Unofficial Stationeers Wiki:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel | Editing help (opens in new window)