Module:TNT/doc: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
make doc non-wiki specific (identical in every EN project)
No edit summary
(make doc non-wiki specific (identical in every EN project))
Line 32:
 
=== Translating Template Parameters ===
Template parameters are usually stored as a [[Wikipediamw:wikipedia:JSON|JSON]] '''templatedata''' block inside the template's /doc subpage. This makes it convenient to translate, but when a new parameter is added to a global template, all /doc pages need to be updated in every language. TNT helps with this by automatically generating the templatedata block from a table stored on Commons. Placing this line into every /doc sub-page will use [[Commons:Data:Templatedata/Graph:Lines.tab|Data:Templatedata/Graph:Lines.tab]] table to generate all the needed templatedata information in every language. Even if the local community has not translated the full template documentation, they will be able to see all template parameters, centrally updated.<pre>
{{#invoke:TNT | doc | Graph:Lines }}
</pre>
0

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu