Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Humanipedia
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Module:Template wrapper/doc
(section)
Module
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
Appearance
move to sidebar
hide
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!
===_alias-map=== {{para|_alias-map}} takes a comma-separated list of wrapper-template parameters that are to be treated as aliases of specified working template canonical parameters. Each mapping element of the list has the form: :<code><{{var|from}}>:<{{var|to}}></code> β where: <code><{{var|from}}></code> is a wrapper parameter name and <code><{{var|to}}></code> is a canonical parameter name In this example, it may be preferable for a wrapper template to use {{para|assessor}} which may be unknown to the working template but the working template may have an equivalent {{para|author}} so in the <code><nowiki>{{#invoke:}}</nowiki></code> we would write: :{{para|_alias-map|assessor:author}} Positional parameters may also be mapped to canonical parameters: :{{para|_alias-map|1:author, 2:title, 3:language}} Enumerated wrapper parameters may be mapped to enumerated canonical parameters using the <code>#</code> enumerator specifier: :{{para|_alias-map|assessor#:author#}} Given the above example, {{para|assessor2}} will map to {{para|author2}}; also, {{para|assessor}} and {{para|assessor1}} will map to {{para|author1}} Multiple wrapper parameters can map to a single canonical parameter: :{{para|_alias-map|1:author, assessor:author}} Wrapper parameters listed in {{para|alias-map}} are not passed to the working template. Mapping positional parameters when {{para|_include-positional|yes}} may give undesirable results. {{para|_alias-map|1:author}} and {{para|_include-positional|yes}} will cause all other positional parameters to be passed to the working template as is: wrapper template <code><nowiki>{{{2}}}</nowiki></code> becomes working template <code><nowiki>{{{2}}}</nowiki></code>, etc; working template will not get <code><nowiki>{{{1}}}</nowiki></code> though it will get {{para|author}}.
Summary:
Please note that all contributions to Humanipedia 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
Humanipedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)