User:GrayBeard Actual/Cheatsheet

Template Include/noinclude/onlyinclude
will be seen only when the template's page is being viewed directly, but not when it is included in another page

will be processed and displayed only when the page is being included, but not when the template page is being viewed directly

tags will be shown both on the template page and when included, unless tags are used within.

https://help.gamepedia.com/Writing_templates#Showing_content_only_on_the_template_page

Wiki cheatsheet:

https://en.wikipedia.org/wiki/Help:Cheatsheet

DPL Queries Inside Templates
To use inside a template and pass parameters, use parser functions etc., use the {{#tag: function:

{{#tag:DynamicPageList| category = {{{1}}} count   = {{#if: {{{2|}}} | 10 | 20 }} ordermethod = sortkey order = ascending }} The template page itself will display an error message because the category value is empty on the template page unless you put the template inside tags. Example:

Error: You need to include at least one category, or specify a namespace!

https://www.mediawiki.org/wiki/Extension:DynamicPageList_(Wikimedia)#Templates

Date and Time Stamps
3 tildes = username only 4 tildes (~) = username + timestamp 5 tildes = timestamp only

Font Awesome
&#xf071; &amp;#xf071;

Kill The Grid Barnstar
Kill The Grid Barnstar

Awarded for removing the old crafting grid from numerous pages. Your great work is appreciated!

Including Purge Link
&#91;[ purge]&#93;