Template:T: Difference between revisions

From Honkai: Nexus Anima Wiki
Jump to navigation Jump to search
Replaced content with "<includeonly>{{#invoke:Formatting|main|template=1}}</includeonly><noinclude>{{Documentation}}</noinclude>"
Tag: Replaced
m Protected "Template:T": High-Risk Template ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
 
(No difference)

Latest revision as of 20:22, 29 August 2025

Documentation icon Template documentation
Note: parts of or the entire template might not be visible without values provided.
This template uses Module:Formatting, a script written in Lua.

This template creates a fake template call in the form of how it would look in wikitext in source editor.

Syntax

See Template Data for extra functions.
{{T|Template Name|v# = Variable Input|p# = Fixed Input|P# = Fixed Input with "let_parse" functionality|Fixed Input|_Y_ = 1}}

  • Direct usage of named parameters is allowed but they will be displayed at a random order and always after any and all parameters with specified order, to specify an order please use p#, P# or v#
  • Add (()) around any string to give it variable formatting
  • block — display the template code in block formatting
  • NC — display the template code outside <code> formatting
  • let_parse — allow parsing of input as to allow for custom placed <nowiki> tags
  • _Y_ — include to automatically display the expected input with the parameters given
    • no_joint — remove the yield: text from the string that joins the fake template call and the yield (removed by default on Infobox Templates)
    • _Ybr_ — same functionality but adds a forced line break after the yields: for those templates that require to be on a line of their own.
    • _Yn_ — same functionality but adds a line break after the yields: for those templates that require to be on a line of their own but do not allow for artificial line break.
    • _infobox — places template text after yields: instead of before. Also applies if template name includes the Infobox text.

Examples

(to be added)

Template Data

Template for displaying fake template calls as they would show in source editor mode.

Template parameters

ParameterDescriptionTypeStatus
Templatetext 1

Name of the template to make a fake call to

Stringrequired
Variable Inputv#

To be used to indicate that the true template call is expected to replace the given value by appropriate text, replace "#" by the number of the parameter to be represented

Stringsuggested
Fixed Input with let_parsep#

To be used to indicate that the true template call should use the value indicated as-is, while allowing the input text to be parsed as wikitext before being passed into the module, replace "#" by the number of the parameter to be represented

Stringsuggested
Fixed Input (Parsed)P#

To be used to indicate that the true template call should use the value indicated as-is while parsing the input to allow for the usage of html tags inside it, like <nowiki>, replace "#" by the number of the parameter to be represented

Stringsuggested
Boldbold b

Option for bold formatting.

Booleanoptional
Italicitalic i

Option for italic formatting.

Booleanoptional
Underlineunderline u

Option for underline formatting.

Booleanoptional
Ref Tagref r

Option for adding <ref></ref> tags.

Booleanoptional