Help:Useful Recipes
| Cargo and Structured Data | |
|---|---|
| Documentation | Data Overview • Introduction to Cargo • Game Files • Obelisk Bot
Building Cargo Templates • Building Rich Tables • Debugging Cargo • Searching Cargo Tables • Using Translations |
| Architecture Reference | Data Architecture • Data:Coverage • Cargo Definition Pages • Game Data Pages
All Cargo Tables • Artifacts • Buildings • Heroes • Factions • Laws • MapObjects • Skills • Spells • Translations • Units |
| External Links | Official Cargo Extension Documentation • SQL References |
Here is a place to record tips and tricks for useful patterns which have proven themselves useful across multiple templates.
Language Subpage Link
If producing a link to a page in a language-aware fashion (and you cannot for whatever reason use Template:Link), put this segment in the double-bracket section of your link. It will inspect the lang parameter and produce either an empty string if it is set to English or no language at all, and with any other value will produce a sub-page link to the appropriate language.
{{#ifeq:{{{lang|en}}}|en||/{{{lang}}}}}


