Template:Template link expanded

From imedwiki
Jump to navigation Jump to search

Script error: No such module "Template link general".

Template documentation[view] [edit] [history] [purge]

Lua error in Module:Lua_banner at line 113: attempt to index field 'edit' (a nil value).

This template, often abbreviated as Script error: No such module "Template link general"., is used to provide stylized formatting to template displays without actually using the template itself.

Parameters

With the exception of Page Template:Mono/styles.css has no content.alttext, the named parameters are toggles that are either omitted (default in most cases) or activated (by being assigned a value such as "on", "yes", "true", "include", etc.). They may be included in any order (see Examples below). Certain templates have the parameter "on" by default; see the main table for all alternate options.

Parameter Action Use with
{{example}}
Default active
brace Include braces as part of the template link Script error: No such module "Template link general". {{tlw}}/{{tn}}
braceinside Include innermost braces as part of the template link Script error: No such module "Template link general".
bold Renders the template link/name in bold Script error: No such module "Template link general". {{tlb}}, {{tlxb}}
code Display output using HTML <code>...</code> tags (monospaced font) Script error: No such module "Template link general". {{tlc}}, {{Template link expanded}}, etc.
italic Display any parameters accompanying the template link/name in italics Script error: No such module "Template link general". {{tlxi}}
kbd Display output using HTML <kbd>...</kbd> tags (monospaced font) Script error: No such module "Template link general".
nolink Don't render the template name as a link Script error: No such module "Template link general". {{tlf}}, {{tnull}}
nowrap Prevent the insertion of line breaks (word wrap) in the output Script error: No such module "Template link general".
nowrapname Prevent word wrapping in the output of template name/link (parameters will wrap if needed) Script error: No such module "Template link general".
plaincode Uses <code style="border:none; background:transparent;">...</code> Script error: No such module "Template link general". {{tltss}}
subst Include a subst: prefix before the template link/name Script error: No such module "Template link general". {{tls}}, {{tlxs}}, etc
alttext=[text] Use [text] as the label for the template link Script error: No such module "Template link general". {{tla}}

Unnamed (Positional)

This template can take any number of unnamed parameters as parameters accompanying the template link (or name); see Examples below.

Examples

Note
On the source sister projects, en.wikipedia and Meta, X0, X1, X2, …, X9 are sandbox templates for experimentation on involved templates that need be in template space. An auto-cleansing software facility exists that might be used to duplicate the facility on other Sister projects.
Code Output Remarks
Script error: No such module "Template link general". Script error: No such module "Template link general". Banner template does not exist. Be aware with linking to non-existing templates, although desired.
Script error: No such module "Template link general". Script error: No such module "Template link general". ok template does exist
Script error: No such module "Template link general". Script error: No such module "Template link general". Unlimited parameters as one <nowiki>...</nowiki> string
Script error: No such module "Template link general". Script error: No such module "Template link general".
Script error: No such module "Template link general". Script error: No such module "Template link general". template names are case-sensitive
Script error: No such module "Template link general". Script error: No such module "Template link general". first letter is case-insensitive though
Script error: No such module "Template link general". Script error: No such module "Template link general". Using {{spaces}} before and after {{{1}}} parameter.
Script error: No such module "Template link general". Script error: No such module "Template link general".
Script error: No such module "Template link general". Script error: No such module "Template link general". <code> style
Script error: No such module "Template link general". Script error: No such module "Template link general". plaincode style
Script error: No such module "Template link general". Script error: No such module "Template link general". <kbd> style
Script error: No such module "Template link general". Script error: No such module "Template link general". bold link/name
Script error: No such module "Template link general". Script error: No such module "Template link general". parameter/s in italics
Script error: No such module "Template link general". Script error: No such module "Template link general".
Script error: No such module "Template link general". Script error: No such module "Template link general".
Script error: No such module "Template link general". Script error: No such module "Template link general". all braces in link
Script error: No such module "Template link general". Script error: No such module "Template link general". inside braces in link
Script error: No such module "Template link general". Script error: No such module "Template link general".
Script error: No such module "Template link general". Script error: No such module "Template link general". No reason you can't combine multiple parameter settings
Script error: No such module "Template link general". Script error: No such module "Template link general".
Script error: No such module "Template link general". Script error: No such module "Template link general".
Script error: No such module "Template link general". Script error: No such module "Template link general". Can combine named and anonymous parameters …
Script error: No such module "Template link general". Script error: No such module "Template link general". … in any order …
Script error: No such module "Template link general". Script error: No such module "Template link general". … even intermixed …
Script error: No such module "Template link general". Script error: No such module "Template link general". … with many different configurations.
Script error: No such module "Template link general". Script error: No such module "Template link general".
Script error: No such module "Template link general". tlx with no arguments, the current page name is substituted
Script error: No such module "Template link general". Script error: No such module "Template link general". = won't work
Script error: No such module "Template link general". Script error: No such module "Template link general".
&#61; is okay
Script error: No such module "Template link general". Script error: No such module "Template link general".
{{=}} is okay (see template equal sign)
Script error: No such module "Template link general". Script error: No such module "Template link general".
sticky nowiki is okay
Script error: No such module "Template link general". Script error: No such module "Template link general". empty parameters work too, even at the end
Script error: No such module "Template link general". Script error: No such module "Template link general".
right to left okay
Wrapping of long names (default)
Code Output
Script error: No such module "Template link general". Script error: No such module "Template link general".
Wrapping of long names (nowrap=on)
Code Output
Script error: No such module "Template link general". Script error: No such module "Template link general".
Wrapping of long names (nowrapname=on)
Code Output
Script error: No such module "Template link general". Script error: No such module "Template link general".

See also

General-purpose formatting

Comparison of template-linking templates according to the styles of generated text and link produced
Text style ↓ Script error: No such module "Template link general". options[note 1]
to achieve text style
Link style
Linked Unlinked Linked with subst Unlinked with subst Linked including braces Linked with alternative text
Script error: No such module "Template link general". options[note 1]
to achieve link style
N/A DEFAULT nolink=yes subst=yes nolink=yes|subst=yes braceinside=yes alttext=Foo
2=Foo
normal DEFAULT Script error: No such module "Template link general".[note 1]
{{tl}}
Script error: No such module "Template link general".[note 2]
  1. REDIRECT Template:Template link universal
[note 3]
Script error: No such module "Template link general".[note 2]
<template link>
Script error: No such module "Template link general".
  1. REDIRECT Template:Template link universal with subst
[note 3]
Script error: No such module "Template link general".[note 2]
<template link>
Script error: No such module "Template link general". Script error: No such module "Template link general".
code code=yes {{tl2}}
Script error: No such module "Template link general".
Template:Tlxu[note 3]
Script error: No such module "Template link general".[note 2]
<template link>
Script error: No such module "Template link general".<template link>
Script error: No such module "Template link general". {{subst:tlsc}}[note 2]
<template link>
N/A
monospace plaincode=yes[note 4] N/A {{subst:tltss}}[note 5] N/A
kbd kbd=yes[note 5]
bold bold=yes
  1. REDIRECT Template:Template link with bold
N/A
bold+code bold=yes|code=yes Script error: No such module "Template link general".
italic+code italic=yes|code=yes
  1. REDIRECT Template:Template link expanded with italic
  1. 1.0 1.1 1.2 Script error: No such module "Template link general". is the most general template, allowing any combination of text style and/or link style options.
  2. 2.0 2.1 2.2 2.3 2.4 Prevents wrapping of text by placing it inside <span class="nowrap">...</span> tags.
  3. 3.0 3.1 3.2 Allows links to templates in any namespace.
  4. Script error: No such module "Template link general". uses <code style="border:none; background-color:transparent;">...</code>.
  5. 5.0 5.1 Displays monospaced font using <span style="font-family:monospace;">...</span>.

Other formatting templates

Templates producing specialised formatting effects for given templates, modules or parameters
Code example Effect Notes
Script error: No such module "Template link general". {{hatnote}} Supports linking to sister projects (e.g., fr:Hatnote)
Script error: No such module "Template link general".
  1. REDIRECT Template:Template link universal
|| Supports linking to any namespace
Script error: No such module "Template link general". lang=fr|Some text}}
Shows code and example
Script error: No such module "Template link general". Template:P1 Shows code, example and a link to expand the template code
Script error: No such module "Template link general". Template:Hatnote Produces a normal link to the template
Script error: No such module "Template link general".
Script error: No such module "Template link general".
[[Template:Hatnote]]
[[Template:Hatnote|Hatnote]]
Formats wikilink, with optional piped link text and blended suffix
Script error: No such module "Template link general". {{#invoke:Example|hello}} Counterpart to {{tl}} for linking to Lua modules
Script error: No such module "Template link general". {{#invoke:Example|hello}} Counterpart to {{tlx}} for linking to Lua modules
Script error: No such module "Template link general". title=book title Formats template parameters for display, with or without values
Script error: No such module "Template link general". [[WP:LASTING]] Takes a shortcut suffix in project namespace and displays it with brackets and the WP: alias in a <code>...</code> tag.
Script error: No such module "Template link general".
Script error: No such module "Template link general".
<ref>...</ref>
<templatedata>
Formats [X]HTML tags; can add content, choose opening, closing, or self-closing
Script error: No such module "Template link general". {{d:Ping project}} Wikidata counterpart to {{tl}}
Script error: No such module "Template link general".
Script error: No such module "Template link general".
  1. REDIRECT Template:ParserFunction

  1. REDIRECT Template:ParserFunction
|| Parser function equivalent to {{tl}}
Script error: No such module "Template link general". {{uc:}} Magic word links

With utility links

Templates producing utility links for a given template (Hatnote used here as example)
Code example Effect
Script error: No such module "Template link general". Template:Hatnote (edit | talk | history | links | watch | logs)
Script error: No such module "Template link general". Template:Hatnote(edit talk links history)
Script error: No such module "Template link general". Hatnote (edit talk history links # /subpages /doc /doc edit /sbox /sbox diff /test)
Script error: No such module "Template link general". Script error: No such module "Tfd links".
Script error: No such module "Template link general". {{Hatnote}}
links talk edit
Script error: No such module "Template link general". {{subst:Hatnote}}
 links talk edit
Script error: No such module "Template link general". Template:Hatnote (talk⧼dot-separator⧽links⧼dot-separator⧽edit)
Script error: No such module "Template link general". Template:Hatnote (talk links edit)
Script error: No such module "Template link general". m:Template:Hatnote (backlinks edit)
Script error: No such module "Template link general". Template:Hatnote (backlinks edit)
Script error: No such module "Template link general". {{Hatnote}} (talk)
Script error: No such module "Template link general". {{Hatnote}} (t/l)
Script error: No such module "Template link general". Template:Hatnote (links, talk)
This template is based (in parts) on the Template:Template link expanded from the free encyclopedia wikipedia and is licensed under GNU license for free documentation and the Creative Commons Attribution/Share Alike. On wikipedia there is a List of authors accessible. More about importing from wikipedia on page Imedwiki:Importing from wikipedia.