Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:TemplateDataInfo/i18n/sv: Difference between revisions

Template page
Created page with 'På Wikimedia Commons rekommenderas det att använda $tag2 med antingen $param1 eller $param2 på undersidan $relPage och mallinkludera den med $template i mall...'
No edit summary
Line 6: Line 6:
----
----
<u>Befintlig malldokumentation</u><br/>
<u>Befintlig malldokumentation</u><br/>
På Wikimedia Commons rekommenderas det att använda {{tl|TemplateBox}} med antingen <code><nowiki>useTemplateData=1</nowiki></code> eller <code><nowiki>useTemplateData=only</nowiki></code> på undersidan <code><nowiki>/doc</nowiki></code> och mallinkludera den med {{tl|Documentation}} i mallen. Taggarna <code><nowiki><nowiki></nowiki></code> kan bäddas in runt argumenten, om det behövs, för att undvika att mallarna utvidgas.<br/>
På Wikimedia Commons rekommenderas det att använda {{tl|TemplateBox}} med antingen <code><nowiki>useTemplateData=1</nowiki></code> eller <code><nowiki>useTemplateData=only</nowiki></code> på undersidan <code><nowiki>/doc</nowiki></code> och mallinkludera den med {{tl|Documentation}} i mallen. Taggarna <code><nowiki><nowiki></nowiki></code> kan omsluta argumenten, om det behövs, för att undvika att mallarna utvidgas.<br/>


<u>Newly created template documentation and imports</u><br/>
<u>Newly created template documentation and imports</u><br/>

Revision as of 12:14, 30 April 2014


<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData

TemplateData är ett sätt att lagra information om mallparametrar (beskrivningen för dessa och för hela mallen) för både människor och maskiner. De används av VisualEditor och förmodligen andra verktyg som uppladdningsguiden.


Befintlig malldokumentation
På Wikimedia Commons rekommenderas det att använda {{TemplateBox}} med antingen useTemplateData=1 eller useTemplateData=only på undersidan /doc och mallinkludera den med {{Documentation}} i mallen. Taggarna <nowiki> kan omsluta argumenten, om det behövs, för att undvika att mallarna utvidgas.

Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw <templatedata>-tags into the Wikitext or the template as described in various Wikipediae.

Discussion
There is an ongoing discussion about that matter. Feel invited to comment if you are experienced in either way, your time permits and if you like to share your opinion or to make a suggestion.


Wikipedia's help about TemplateDataCommons-specific information

NOTE: Please do not use this template directly! This is just for translation. Use {{TemplateDataInfo}} instead.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.