5,838
edits
m (→Debugging) |
|||
Line 312: | Line 312: | ||
==Debugging== | ==Debugging== | ||
If you wish to view all the values contained within | If you wish to view all the values contained within a template file , some files (e.g. the brandon script) let you do this by appending the querystring <tt>?source=view</tt> to the end of the URL. Other templates expect you to add the querystring <code>?parse=source</code> and still others use <tt>?view=source</tt>. There may even be other variants. I tried hard to get standardisation see [https://cumulus.hosiene.co.uk/viewtopic.php?f=14&t=16425 Source Listing suggestion] in the forum, but I know of at least five other variants, source is abbreviated to 'sce' or 'src', and as well as parse, people use 'download'. | ||
Example | Example | ||
www.myweathersite.com/cumuluswebtags.php?source=view | www.myweathersite.com/cumuluswebtags.php?source=view | ||
This will display the source code of the file, listing all the variable names and the values Cumulus has assigned to the | This will display the source code of the file, listing all the variable names and the values Cumulus has assigned to the web tags during it's processing cycle. It won't show you the original template with web tags in it. | ||
[[Category:WebTools]] | [[Category:WebTools]] |
edits