Search results
Results from the WOW.Com Content Network
This page describes how to use various parser functions to display different results based on detected conditions in a page or template. Here is a quick summary of these functions in terms of how they treat their input (the function names are linked to more detailed descriptions of them found below on this page): #if checks the truth value of a ...
Once you have made the template—for example Template:foo—you can add {{foo}} to the pages that you want to use it on. Every page using this template uses the same boilerplate text each time that a user visits it. When the template is updated, all pages containing the template tag are automatically updated.
2.1 Parameter trim= example showing all text (trim=no) or truncated text (trim=yes)
Page-dependent magic words will change or show information about the current page, even if the word is from a template, though in most cases, this is the desired effect. If I insert {{exampletemplate}} and it says {{PAGENAME}}, I will see "Magic words for beginners" even though it is from "Template:example template".
Main page; Contents; Current events; Random article; About Wikipedia; Contact us; Donate; Help; Learn to edit; Community portal; Recent changes; Upload file
This template counts the number of words that goes into its first parameter. It serves as a basic word count function in areas where word count is important (such as Arbitration Committee statements, etc.)
This is the template test cases page for the sandbox of Template:Count Purge this page to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki ; see the HTML comment " NewPP limit report " in the rendered page.
{{String-handling templates | state = collapsed}} will show the template collapsed, i.e. hidden apart from its title bar. {{ String-handling templates | state = autocollapse }} will show the template autocollapsed, i.e. if there is another collapsible item on the page (a navbox, sidebar , or table with the collapsible attribute ), it is hidden ...