Editing Template:Var 0 You do not have permission to edit this page, for the following reasons: The action you have requested is limited to users in one of the groups: Users, FANDOM Staff, FANDOM Helpers, Wiki Managers, Content Team Members. You do not have permission to edit pages in the Template namespace. Please log in to edit this wiki.Joining The Gundam Wiki is free, and it only takes a minute.We hope that you sign in, and become a member of the community!Click here to log in or create an account more + You can view and copy the source of this page: <noinclude>{{TagSyncPage}} </noinclude><includeonly>{{#if:{{{1|}}}|{{{1|}}}|{{{2|}}}}}</includeonly><noinclude>{{Tlx|var}} is used on templates such as the infobox templates, and the summaryboxes which give out a pre-formatted set of parameters to display default values properly. Because the pre-formatted set of parameters sets out the variable names using the default value in the form <code><nowiki>{{{var|default}}}</nowiki></code> does not work because even if the value is not used the parameter is still named in the template. Using this template a default can be told to show not only when the value is not set, but also if the value is left blank. ==Usage== {{Tlx|var|''variable''|''default value''}} * ''variable'' is the normal variable used. Be sure to use the | to set the default to nothing so that removing the parameter from the inclusion won't affect the way things are displayed (i.e. use <nowiki>{{{1|}}}</nowiki> for example). * ''default value'' is the default value to be outputed, this would normally be what you would put after the | in a variable call. * If ''variable'' is set to some value then ''variable'' will be outputted. * If ''variable'' is unset, or set to nothing but whitespace then ''default value'' will be outputted. {{TagSync|include: *}} [[Category:Templates/technical|{{PAGENAME}}]]</noinclude> Templates used on the current version of this page: Template:ACGNetwork (view source) Template:TagSync (view source) Template:TagSyncPage (view source) Template:Tlx (view source) Return to Template:Var. Edit summary Preview Mobile Desktop Show changes