Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Special pages
Random page
Wiki Discord
Contents
Neighbors
Galaxy
> Hexia
> Norvan
> Pashah
> Taffeh
Creatures
> Insects
> Fishes
> Shore-Dwellers
Items
> Dishes
> Furniture
Game Systems
> Dress Up
> Luca Arbor
> Loomix Footprints
> Loomix Vehicle Services
> Loomix Homes
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Editing
Template
:
T/doc
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
Page information
Appearance
move to sidebar
hide
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.
Anti-spam check. Do
not
fill this in!
{{Documentation/Header}} {{Lua|Formatting}} {{Main|Template:F}} This template creates a fake template call in the form of how it would look in wikitext in source editor. ==Syntax== See [[#Template Data|Template Data]] for extra functions.<br> {{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}} — display the template code in block formatting * {{F|NC}} — display the template code outside <<nowiki/>code> formatting * {{F|let_parse}} — allow parsing of input as to allow for custom placed {{F|<nowiki><nowiki></nowiki>}} tags * {{F|v((#))_comment}}, {{F|p((#))_comment}}, or {{F|P((#))_comment}} will add an HTML comment before the {{F|v((#))}}, {{F|p((#))}}, or {{F|P((#))}} parameter. * {{F|_Y_}} — include to automatically display the expected input with the parameters given ** {{F|no_joint}} — 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_}} — 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_}} — 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}} — places template text after ''yields:'' instead of before. Also applies if template name includes the {{F|Infobox}} text. ==Examples== ;Without Parameters {{T|T|Card}} yields: {{T|Card}}<br> {{T|T|Item}} yields: {{T|Item}} ;With Parameter {{T|T|Card|Xiao}} yields: {{T|Card|Xiao}}<br> {{T|T|Item|Berry}} yields: {{T|Card|Berry}} ;With Multiple Parameters {{T|T|p1=Card|p2=p1=Xiao|p3=v2=equipped=weapon name}} yields: {{T|Card|p1=Xiao|v2=equipped=weapon name}}<br> {{T|T|p1=Item|p2=p1=Berry|p3=v2=x=ammount of the item}} yields: {{T|Item|p1=Berry|v2=x=ammount of the item}} ;Direct Usage Of Named Parameters {{T|T|p1=Card|p2=The Widsith|p3=equipped=Xiao|p4=refinement=4|p5=mini=1}} yields: {{T|Card|The Widsith|equipped=Xiao|refinement=4|mini=1}} ;Custom Variable Formatting {{T|T|Card|p2=p1=Xiao|P3=v2=(<nowiki/>(equipped/e)<nowiki/>)=weapon name}} yields: {{T|Card|p1=Xiao|v2=((equipped/e))=weapon name}}<br> {{T|T|Item|P2=P1=B(<nowiki/>(err)<nowiki/>)y|p3=v2=x=ammount of the item}} yields: {{T|Item|P1=B((err))y|v2=x=ammount of the item}} ;Block Format {{T|T|p1=Item|p2=p1=Rice|p3=v2=x=ammount of the item|p4=block=1}} yields:<br>{{T|Item|p1=Rice|v2=x=ammount of the item|block=1}}<br> {{T|T|p1=Item|p2=p1=Rice|p3=p2=x = 2|p4=block=1|p5=_Y_=1}} yields:<br>{{T|Item|p1=Rice|p2=x=2|block=1|_Y_=1}} ;Infobox {{T|T|p1=Terminology Infobox|p2=type=Game Systems|p3=block=1|p4=_Y_=1}} yields:<br>{{T|Terminology Infobox|p1=type=Game Systems|block=1|_Y_=1}} ==Template Data== <templatedata> { "params": { "text": { "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>
Summary:
Please note that all contributions to The Petit Planet Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see
Petit Planet 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.
File Pages
==Summary==
==Licensing==
{{Fairuse}}
{{File|}}
Dynamic Page List
¦
²
«
»
²{¦}²
«»
«/»
«!----»
Array in DPL
¹
^2{
}^2
^2{¹}^2
Parser Functions
{{#if:||}}
{{#if:<condition>|<result if true>|<result if false>}}
{{#ifeq:|||}}
{{#ifeq:<text1>|<text2>|<result if text1=text2>|<result if text1≠text2>}}
{{#expr:}}
{{#expr:<mathematical expression>}}
{{#switch:||#default=}}
{{#switch:<text1>|<text2>=<result if text1=text2>|<text3>=<result if text1=text3>|#default=<result if no valid match>}}
{{#replace:||}}
{{#replace:<text1>|<plain text to find in text1>|<plain text to insert in place of the text found>}}
{{#titleparts:}}
{{#replace:<page name>}}
{{#tag:|}}
{{#tag:<name of html tag>|<content inside html tag>}}
Markup
{{}}
|
[]
[[]]
[[Category:]]
#REDIRECT [[]] [[Category:Redirect Pages]]
<code></code>
<includeonly></includeonly>
<noinclude></noinclude>
<nowiki></nowiki>
<!---->
<br>
§
Notices
{{Stub|}}
{{Stub Dialogue}}
{{Upcoming}}
{{Under Construction}}
{{Placeholder|}}
Magic Words
{{!}}
{{formatnum:}}
{{lc:}}
{{uc:}}
{{PAGENAME}}
{{FULLPAGENAME}}
{{ROOTPAGENAME}}
{{BASEPAGENAME}}
{{SUBPAGENAME}}
{{DISPLAYTITLE:|noreplace}}
__TOC__
__NOTOC__
__EXPECTUNUSEDCATEGORY__
__HIDDENCAT__
HTML Entities
—
,
­
Pages included on this page:
Template:Array
(
edit
)
Template:Documentation/Header
(
edit
)
Template:Documentation/styles.css
(
edit
)
Template:F
(
edit
)
Template:Item
(
edit
)
Template:Lua
(
edit
)
Template:Main
(
edit
)
Template:MessageBox
(
edit
)
Template:Namespace
(
edit
)
Template:T
(
edit
)
Template:Terminology Infobox
(
edit
)
Module:Arguments
(
edit
)
Module:Arguments/i18n
(
edit
)
Module:Array
(
edit
)
Module:Common/i18n
(
edit
)
Module:Config
(
edit
)
Module:Documentation
(
edit
)
Module:Documentation/config
(
edit
)
Module:Documentation/i18n
(
edit
)
Module:Entrypoint
(
edit
)
Module:Exists
(
edit
)
Module:Fallbacklist
(
edit
)
Module:Feature
(
edit
)
Module:Formatting
(
edit
)
Module:Hatnote
(
edit
)
Module:Hatnote/i18n
(
edit
)
Module:I18n
(
edit
)
Module:Infobox
(
edit
)
Module:Item
(
edit
)
Module:Item/Invert
(
edit
)
Module:Languages
(
edit
)
Module:Mbox
(
edit
)
Module:Mbox/i18n
(
edit
)
Module:Namespace detect
(
edit
)
Module:Namespace detect/config
(
edit
)
Module:Namespace detect/data
(
edit
)
Module:TableTools
(
edit
)
Module:Yesno
(
edit
)
Search
Search
Editing
Template
:
T/doc
Add topic