Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Search
Search
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Template:For-multi/doc
(section)
Template
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
General
What links here
Related changes
Special pages
Page information
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.
Anti-spam check. Do
not
fill this in!
==Usage== ===0 parameters=== When no parameters are provided, this template functions the exact same as {{tlx|Other uses}}. It is preferred to use that template as it more clearly explains the output of the function. The output with zero parameter {{tlc|For-multi}} is: {{For-multi}} '''Comparison to other templates''': This is the same as using {{tlx|Other uses}}: {{Other uses}} ===One or two parameters=== When one or two parameters are provided, this template functions the exact same as {{tlx|For}}. It is preferred to use that template as the "multi" functionality of this template is not required. ====1 Parameter==== With one parameter, {{tlx|For-multi|UseA}} yields: {{For-multi|UseA}} '''Comparison to other templates''': This is identical to passing the same arguments to {{tlx|For}}. For example, {{tlx|For|UseA}} yields: {{For|UseA}} ====2 Parameters==== With two parameters, {{tlx|For-multi|UseA|ArticleA}} yields: {{For-multi|UseA|ArticleA}} '''Comparison to other templates''': This is identical to passing the same arguments to {{tlx|For}}. For example, {{tlx|For|UseA|ArticleA}} yields: {{For|UseA|ArticleA}} ===3 or more parameters=== When three or more parameters are provided, this template can be used. Functionally, it is the same as {{tlx|About}}, but without the about clause at the beginning. Per the guideline at [[wikipedia:WP:HNS]], it is up to the editor to decide whether or not the hatnote should contain a brief summary (i.e. whether or not the hatnote should use {{tlx|For-multi}} or {{tlx|About}}) based on their preference and what is likely to be clearer and easier for the reader. With three parameters, the output of :{{tlx|For-multi|UseA|ArticleA|UseB}} is: {{For-multi|UseA|ArticleA|UseB}} With four parameters, the output of :{{tlx|For-multi|UseA|ArticleA|UseB|ArticleB}} is: {{For-multi|UseA|ArticleA|UseB|ArticleB}} '''Comparison to other templates''': The output of {{tlx|For-multi|UseA|ArticleA|UseB}} is different from {{tlx|For}} provided with three parameters where {{tlx|For|UseA|ArticleA|ArticleB}} yields: {{For|UseA|ArticleA|ArticleB}} As you can see, this function is able to output multiple uses, unlike {{tlx|For}}. {{tlx|About}} also produces the same output, but with an about clause at the beginning. For example, {{tlx|About|About|UseA|ArticleA|UseB}} yields: {{About|About|UseA|ArticleA|UseB}} Technically, {{tlx|About}} can be used by passing an empty first parameter, but this isn't recommended as the wikitext <code>{{((}}About||UseA|ArticleA|UseB}}</code> doesn't make it clear what the output is going to be and what the purpose of the template is as, in this case, the name of the template "About" is misleading. Using it this way would look like: {{About||UseA|ArticleA|UseB}} ====Multiple articles per use==== Multiple articles can be used per use by putting a parameter with the content <code>and</code> between them. For example, the wikitext <!-- formerly: <code>{{((}}For-multi|UseA|ArticleA|and|ArticleB|and|ArticleC|UseB|ArticleD|and|ArticleE}}</code> --> :{{tlx|For-multi|UseA|ArticleA|and|ArticleB|and|ArticleC|UseB|ArticleD|and|ArticleE}} yields: {{For-multi|UseA|ArticleA|and|ArticleB|and|ArticleC|UseB|ArticleD|and|ArticleE}} ====Last parameter==== When the last parameter is a "use", the current article plus (disambiguation) will be linked to at the end of the template. For example, :{{tlx|For-multi|UseA|ArticleA|UseB}} yields: {{For-multi|UseA|ArticleA|UseB}} The above example produces a link to the PAGENAME (no namespace) at the end.
Summary:
Please note that all contributions to Red Letter Media 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
RLMWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Toggle limited content width