User:Nefastu/Snippets

From Guild Wars 2 Wiki
Jump to navigationJump to search

Some code snippets for me to grab when I need them.

Contains: TP table[edit]

{| {{STDT|item sortable}}
! Item
! data-sort-type="number" | TP buy price
! data-sort-type="number" | TP sell price
|-
{{#arraymap:{{subst:#show:{{subst:PAGENAME}}|?Contains item|link=none}}|,|@@@|
! style="text-align:left"  {{!}} {{item icon|@@@}}
{{!}} style="text-align:right" {{!}} {{tp|@@@|buy}}
{{!}} style="text-align:right" {{!}} {{tp|@@@|sell}}
|\n{{!}}-\n}}
|}