Template:Infobox/Itembrowser: Difference between revisions

From The Cataclysm: Dark Days Ahead Wiki
Jump to navigation Jump to search
mNo edit summary
(change from no-longer-maintained item browser to Hitchhiker's Guide. also 'name' defaults to 'id')
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<includeonly><span style="font-size:0.7em;">
<includeonly><span style="font-size:0.7em;">
[[Guides|{{{name|Item Browser}}}]]:<br/>
[[Guides|{{{header_name|Hitchhiker's Guide}}}]]:<br/>
Stable - [ [http://cdda.chezzo.com/{{{id|}}} {{{name|Browse}}}] ]<br/>
Stable (0.F-3) - [ [https://nornagon.github.io/cdda-guide/?v=0.F-3#/item/{{{id|}}} {{{name|{{{id}}}}}}] ]<br/>
Experimental - [ [http://cdda-trunk.chezzo.com/{{{id|}}} {{{name|Browse}}}] ]</span></includeonly><noinclude>
Experimental - [ [https://nornagon.github.io/cdda-guide/#/item/{{{id|}}} {{{name|{{{id}}}}}}] ]</span></includeonly><noinclude>


Helper template for the various infoboxes, creates  
Helper template for the various infoboxes, creates links to an item in the [https://nornagon.github.io/cdda-guide/# Hitchhiker's Guide to the Cataclysm], for 0.F-3 and the latest experimental. When new stable versions come out, please update the stable link and label.


== Arguments ==
== Arguments ==


* id - required - The ID of the object in the itembrowser.
* id - required - The ID of the object in the Hitchhiker's Guide, which is the same as the ID in CDDA's code.
* name - optional - The name of the object. Changes the link description of the item browser, if not set, defaults to 'Browse'.
* name - optional - The name of the object. Changes the link description of the item, if not set, defaults to the 'id' parameter above.
* header_name - Optional - The name of the link to [[guides]], defaults to 'Item Browser'.
* header_name - Optional - The name of the link to [[guides]], defaults to 'Hitchhiker's Guide'.
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 17:44, 6 August 2022


Helper template for the various infoboxes, creates links to an item in the Hitchhiker's Guide to the Cataclysm, for 0.F-3 and the latest experimental. When new stable versions come out, please update the stable link and label.

Arguments

  • id - required - The ID of the object in the Hitchhiker's Guide, which is the same as the ID in CDDA's code.
  • name - optional - The name of the object. Changes the link description of the item, if not set, defaults to the 'id' parameter above.
  • header_name - Optional - The name of the link to guides, defaults to 'Hitchhiker's Guide'.