Editing Template:T/doc

Warning: You are not logged in. Once you make an edit, a temporary account will be created for you. Learn more. Log in or create an account to continue receiving notifications after this account expires, and to access other features.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
{{Documentation/Header}}
;Description
{{Lua|Formatting}}
A template link with a variable number of parameters (0-20).
{{Main|Template:F}}
This template creates a fake template call in the form of how it would look in wikitext in source editor.


==Syntax==
;Syntax
See [[#Template Data|Template Data]] for extra functions.<br>
:{{t|t|parameter1|parameter2|parameter3|parameter4|...|parameter20}} <!-- self-referential examples! -->
{{T|T|v1=Template Name|v2=v((#))=Variable Input|v3=p((#))=Fixed Input|v4=P((#))=Fixed Input with "let_parse" functionality|v5=Fixed Input|p6=_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 {{F|p((#))}}, {{F|P((#))}} or {{F|v((#))}}
* Add <code>(())</code> around any string to give it variable formatting
* {{F|block}} &mdash; display the template code in block formatting
* {{F|NC}} &mdash; display the template code outside <<nowiki/>code> formatting
* {{F|let_parse}} &mdash; allow parsing of input as to allow for custom placed {{F|<nowiki><nowiki></nowiki>}} tags
* {{F|_Y_}} &mdash; include to automatically display the expected input with the parameters given
** {{F|no_joint}} &mdash; remove the '''yield:''' text from the string that joins the fake template call and the yield (removed by default on [[:Category:Infobox Templates|Infobox Templates]])
** {{F|_Ybr_}} &mdash; same functionality but adds a forced line break after the ''yields:'' for those templates that require to be on a line of their own.
** {{F|_Yn_}} &mdash; 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.
** {{F|_infobox}} &mdash; places template text after ''yields:'' instead of before. Also applies if template name includes the {{F|Infobox}} text.


==Examples==
;Source
''(to be added)''
:Improved version not needing t/piece subtemplate developed on [http://templates.fandom.com Templates wiki] see the [http://templates.fandom.com/index.php?title=Template:T&action=history list of authors]. Copied here via CC-By-SA 3.0 license.


==Template Data==
;Example
<templatedata>
:{{t|t|param1|param2}}
{
 
"params": {
<includeonly>[[Category:General wiki templates]]</includeonly>
"text": {
<noinclude>[[Category:Template documentation]]</noinclude>
"aliases": [
"1"
],
"label": "Template",
"description": "Name of the template to make a fake call to",
"type": "string",
"required": true
},
"v#": {
"label": "Variable Input",
"description": "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",
"type": "string",
"suggested": true
},
"p#": {
"label": "Fixed Input",
"description": "To be used to indicate that the true template call should use the value indicated as-is, replace \"#\" by the number of the parameter to be represented",
"type": "string",
"suggested": true
},
"p#": {
"label": "Fixed Input with let_parse",
"description": "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",
"type": "string",
"suggested": true
},
"bold": {
"aliases": [
"b"
],
"label": "Bold",
"description": "Option for bold formatting.",
"type": "boolean"
},
"italic": {
"aliases": [
"i"
],
"label": "Italic",
"description": "Option for italic formatting.",
"type": "boolean"
},
"underline": {
"aliases": [
"u"
],
"label": "Underline",
"description": "Option for underline formatting.",
"type": "boolean"
},
"ref": {
"aliases": [
"r"
],
"label": "Ref Tag",
"description": "Option for adding <ref></ref> tags.",
"type": "boolean"
},
"P#": {
"label": "Fixed Input (Parsed)",
"description": "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",
"type": "string",
"suggested": true
}
},
"description": "Template for displaying fake template calls as they would show in source editor mode.",
"paramOrder": [
"text",
"v#",
"p#",
"P#",
"bold",
"italic",
"underline",
"ref"
]
}
</templatedata>
Please note that all contributions to Honkai: Nexus Anima Wiki are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see Honkai Nexus Anima Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, 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. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)
Preview page with this template
Below are commonly used wikitext from MediaWiki:Edittools. Click on any to insert them in the edit box.

Parser Functions:{{#if:||}}
{{#ifeq:|||}}
{{#expr:}}
{{#switch:||#default=}}
{{#replace:||}}
{{#titleparts:}}
{{#tag:|}}





Pages included on this page: