Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  





2 See also  














Template:Inflation/doc/table: Difference between revisions







Add links
 









Template
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
 




Print/export  



Printable version
 
















Appearance
   

 





Help
 

From Wikipedia, the free encyclopedia
 

< Template:Inflation | doc

Browse history interactively
 Previous editNext edit 
Content deleted Content added
Update documentation for the new wmpty lines-less behaviour.
Explanation now deals with the two possible dataset types
Line 1: Line 1:

{{Documentation subpage}}

{{Documentation subpage}}

This sub-template contains a country/region inflation table used in the {{tl|Inflation}} template and possibly others. It's not meant to be called directly, but if you do, it'll produce a block of lines containing each a number preceded by an asterisk (the multiply character) for use in <tt><nowiki>{{</nowiki>[[m:Help:ParserFunctions#.23expr:|#expr:]]<nowiki>}}</nowiki></tt> and related [[m:Help:ParserFunctions|parser functions]]:

This sub-template either contains a country/region inflation table or calls one locatedin another sub-template. It's output is used by the {{tl|Inflation}} template and possibly others. It's not meant to be called directly, but if you do, it'll produce one or more lines containing each a number preceded by an asterisk (the multiply character) for use in <tt><nowiki>{{</nowiki>[[m:Help:ParserFunctions#.23expr:|#expr:]]<nowiki>}}</nowiki></tt> and related [[m:Help:ParserFunctions|parser functions]]:



* 1.020

* 1.020

Line 10: Line 10:

{{tlx|{{PAGENAME}}|year1|year2}}

{{tlx|{{PAGENAME}}|year1|year2}}



Where '''year1''' and '''year2''' determine the range of "''multiply by n''" lines that will be returned.

Where '''year1''' and '''year2''' determine the range of "''multiply by n''" lines or the [[Consumer price index|CPI]] division that will be returned.



Failing to provide one or both parameters, providing an ''year2'' lower than ''year1'', or providing an ''year1'' and an ''year2'' that are both lower than the lowest or higher than the highest year in the table, will all result in an empty string. Providing an ''year1'' lower than the lowest year in the table, and an ''year2'' higher than the highest year in the table, will return the whole table. Providing any non-numeric parameter will result in a list of red errors that should be handled with the <tt><nowiki>{{</nowiki>[[m:Help:ParserFunctions#.23iferror:|#iferror:]]<nowiki>}}</nowiki></tt> parser function.

Failing to provide one or both parameters, providing an ''year2'' lower than ''year1'', or providing an ''year1'' and an ''year2'' that are both lower than the lowest or higher than the highest year in the table, is an undefined operation that will result in either an "* 1" or an empty string, depending on how the dataset is constructed. Similarly, providing an ''year1'' lower than the lowest year in the table, and an ''year2'' higher than the highest year in the table, will either also return "* 1", or the whole table. Providing any non-numeric parameter will result in one or more red errors that should be handled with the <tt><nowiki>{{</nowiki>[[m:Help:ParserFunctions#.23iferror:|#iferror:]]<nowiki>}}</nowiki></tt> parser function.



=== See also ===

=== See also ===


Revision as of 16:31, 12 June 2008

This sub-template either contains a country/region inflation table or calls one located in another sub-template. It's output is used by the {{Inflation}} template and possibly others. It's not meant to be called directly, but if you do, it'll produce one or more lines containing each a number preceded by an asterisk (the multiply character) for use in {{#expr:}} and related parser functions:

* 1.020
* 0.999
* 1.002

Usage

{{Inflation/doc/table|year1|year2}}

Where year1 and year2 determine the range of "multiply by n" lines or the CPI division that will be returned.

Failing to provide one or both parameters, providing an year2 lower than year1, or providing an year1 and an year2 that are both lower than the lowest or higher than the highest year in the table, is an undefined operation that will result in either an "* 1" or an empty string, depending on how the dataset is constructed. Similarly, providing an year1 lower than the lowest year in the table, and an year2 higher than the highest year in the table, will either also return "* 1", or the whole table. Providing any non-numeric parameter will result in one or more red errors that should be handled with the {{#iferror:}} parser function.

See also



Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Inflation/doc/table&oldid=218884312"





This page was last edited on 12 June 2008, at 16:31 (UTC).

This version of the page has been revised. Besides normal editing, the reason for revision may have been that this version contains factual inaccuracies, vandalism, or material not compatible with the Creative Commons Attribution-ShareAlike License.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki