LotR TCG Wiki → Card Sets:  All 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 → Forums:  TLHH CC

The Lord of the Rings TCG Wiki: Code Snippets

Code Snippets

This page exists as a reference for quick code that can be copy-pasted into wiki pages easily.



Pasted as the first line in an article, makes a nice disambiguation line

<div centeralign><wrap help>If you meant the keyword unique to Nazgul, see [[Twilight]]</wrap></div>


Inserts a card image at about 30% normal zoom that doubles as a link to the card when clicked.

[[lotr01001|{{ cards:lotr01001.jpg?200 |The One Ring, Isildur's Bane}}]]


Inserts a link to a card's wiki page. Usually the autolinker works, but occasionally it doesn't, and sometimes you want to avoid typing in the whole name regardless.

[[:lotr01001|The One Ring, Isildur's Bane]]



Used as a direct quote from the Comprehensive Rules. Insert in a section after an explanation of the mechanics is given, to give the article an air of legitimacy.

<div info>**From the [[comprehensive_rules_4-0#relevant_section|Comprehensive Rules 4.0]]:**
If such-and-such is true, then the game is won.
//See also [[comprehensive_rules_4-0#another_relevant_section|Another Relevant Section entry in the Comprehensive Guide]].//</div>


Redirect (automatically navigates to the redirect_page if the user tries to access it):

~~REDIRECT>redirect_page~~


To access pages that have a redirect on them, append the following to the end of the URL:

?redirect=no


Copies page_to_reference into the current one:

{{page>:page_to_reference}}


Additionally, here are all the table pages that can be referenced:

{{page>:play_area_table}} {{page>:card_layout_table}}
{{page>:card_action_table}} {{page>:game_setup_table}}
{{page>:culture_table}} {{page>:card_type_table}}
{{page>:turn_order_table}} {{page>:keyword_table}}
{{page>:loaded_keyword_table}} {{page>:unloaded_keyword_table}}
{{page>:electronic_platform_table}} {{page>:set_table}}
{{page>:format_table}} {{page>:action_table}}


code_snippets.txt · Last modified: 2014/06/08 03:01 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported