Jump to content
Toggle menu
  • 3 articles
  • 75 files
  • 7 users
  • 37.9K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:LayoutTemplateArgs/doc: Difference between revisions

Template page
m Tweak examples
<var> tags *are* needed, because there is no replacement (SyntaxHighlight has no way to guess that I don’t mean that piece of text literally); there are no faux headers, they’re simply not headers, neither syntactically nor semantically
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{TemplateBox
{{TemplateBox
|1=args
|1=args
|1d={{en|List of template parameters, URL-encoded and separated by whitespace (see above)}}
|1label-en=parameters
|1d-en=List of template parameters, URL-encoded and separated by whitespace (see above)
|1type=content
|1def=
|1def=
|1stat=required
|1stat=required
|2=template
|2=template
|2d={{en|The name of the template for which these parameters are meant for, without the "Template:" prefix}}
|2label-en=template name
|2d-en=The name of the template for which these parameters are meant for, without the "Template:" prefix
|2type=wiki-template-name
|2def=
|2def=
|2stat=required
|2stat=required
|name=LayoutTemplateArgs
|name=LayoutTemplateArgs
|desc={{en|Helper template for passing parameters to templates using the [[MediaWiki talk:AjaxTranslation.js|Ajax in-line template translation]] feature}}
|desc-en=Helper template for passing parameters to templates using the [[MediaWiki talk:AjaxTranslation.js|Ajax in-line template translation]] feature
  |desc-td-en=Helper template for passing parameters to templates using the Ajax in-line template translation feature
|namespace=10
|namespace=10
|usergroup=all
|usergroup=all
Line 15: Line 22:
|usage-notes={{en|The value of the "args" parameter should be a list of template parameters separated by whitespace (''not'' by "&#124;"), with each parameter URL-encoded.}}
|usage-notes={{en|The value of the "args" parameter should be a list of template parameters separated by whitespace (''not'' by "&#124;"), with each parameter URL-encoded.}}


'''Example:'''<br />
'''Example:'''
<tt>
 
&#123;&#123;LayoutTemplateArgs&#124;template=<var>&lt;Template name&gt;</var>&#124;args=<br />
&#123;&#123;LayoutTemplateArgs&#124;template=<var>&lt;Template name&gt;</var>&#124;args=
&#123;&#123;urlencode: 1=&#123;&#123;&#123;1&#124;&#125;&#125;&#125; &#125;&#125;<br />
&#123;&#123;urlencode: 1=&#123;&#123;&#123;1&#124;&#125;&#125;&#125; &#125;&#125;
&#123;&#123;urlencode: 2=&#123;&#123;&#123;2&#124;&#125;&#125;&#125; &#125;&#125;<br />
&#123;&#123;urlencode: 2=&#123;&#123;&#123;2&#124;&#125;&#125;&#125; &#125;&#125;
&#123;&#123;urlencode: foo=&#123;&#123;&#123;foo&#124;&#125;&#125;&#125; &#125;&#125;<br />
&#123;&#123;urlencode: foo=&#123;&#123;&#123;foo&#124;&#125;&#125;&#125; &#125;&#125;
&#123;&#123;urlencode: bar=&#123;&#123;&#123;bar&#124;&#125;&#125;&#125; &#125;&#125;<br />
&#123;&#123;urlencode: bar=&#123;&#123;&#123;bar&#124;&#125;&#125;&#125; &#125;&#125;
&#125;&#125;
&#125;&#125;
</tt>


|type=
|type=
Line 37: Line 43:
|relieson=
|relieson=
* [[MediaWiki:AjaxTranslation.js]]
* [[MediaWiki:AjaxTranslation.js]]
|useTemplateData=only
}}
}}


Cookies help us deliver our services. By using our services, you agree to our use of cookies.