User:Altica
Jump to navigation
Jump to search
Handy Dandy Templates
- {{clear}}
- {{icon}}
- {{cost}}
- {{item}}
- {{ingredients}}
- {{collapsible}}
- {{SpoilerText}}
- {{delete}}
- {{stub}}
- {{cite}}
- {{get}}
- {{cols}}
- {{HotKey}}, {{Control}}
- {{DailyReset}} + {{DailyReset-Statement}}
- {{WeeklyReset}} + {{WeeklyReset-Statement}}
- {{DialogueTranscript-Collapsed}}, {{LetterTranscript-Collapsed}}, {{NoteTranscript-Collapsed}}
Handy Dandy Functions
<tabber>
<nowiki>
<code>
<pre>
<poem>
Created by Yours Truly
- {{FurnitureModification}}
- {{FurnitureInfobox}}, {{CookingInfobox}}
- {{Ingredients}} But really it was User:TheElm
- {{Collection}}
- {{uses}}
- {{LuckyBox}}
- {{costlist}}
- {{likes}} + {{likesNPC}}
- {{LikesTable}}
- {{iconbox}}
- {{FurnitureSet/Table}}
- {{TOC Float}}
- {{TOC Table}}
- {{Furniture/Catalog/ItemDPL}}
- {{Furniture/Catalog/GalleryDPL}}
- {{Extend/Obtain}}
- {{Extend/FurnitureInfobox/Set}}
- {{SearchForTemplateTranslations}}
- {{LetterTranscript-Collapsed}} based on: {{LetterTranscript}} by User:Coyote the Rabid
- {{NoteTranscript-Collapsed}}
- {{DialogueTranscript-Collapsed}}
- {{infoboxCat}}
- {{Quote/Item}}
- {{map}}
- {{notice}}
Fun Code
__TOC__
Adds it in at the specified location!__FORCETOC__
Makes sure it appears, in the default location!__NOTOC__
Makes sure it never appears! (Why would you do this?)
This div should surround your DPL and tables, it allows for a scroll bar to appear for side-scrolling on narrow/mobile screens.
<div class="tablescroll">{{#DPL:|...}}</div>
DPL - A Study
Filter variables:
|category=___ (The Name of a Category on the Palia Wiki) |category=___ (when declaring multiple, page must have both categories) |notcategory=___ (page must not be a part of this category) |notnamespace=Category (do not include pages that are only category pages) |namespace=0 (only include pages from the main section of articles. No users, templates, categories, etc.) |titlematch=%___% (any page title CONTAINING the word ___) |titlematch=___% (any page title STARTING with the word ___) |titlematch=%___ (any page title ENDING with the word ___) |uses=Template:___ (uses template ___ somewhere in the page) |notuses=Template:___ (does not use the template ___) |usedby=___ (returns all pages that use the specified template -or page?) |count= (highest number of returns you would like) |modifiedby= (a username) |redirects=exclude/include/only (choose one, rule for results inclusion, default is include) |linksto= |linksfrom= |notlinksto= |notlinksfrom= |includematch=/REGEX/
Results Formatting
|include= (data to include, separated by commas for each data point fetched) |table= (tell DPL to display data as table) class="mw-collapsible mw-collapsed paliatable sortable" (same classes available as Palia Wiki) id="thover2" (IDK, some sort of paliatable id?) style="text-align:left; font-size:95%; font-weight:600;" (apply styles to table that are not included in class) ,-,Page (then list the column headings of the table, separate headers by "," - order of table display will be same as order of INCLUDE) |tablerow= (tell DPL how to format the data in each row - cells separated by commas "," - default is no formatting/linking, it will just put result) style="text-align:left;"¦[[%PAGE%]] (ie cell one in the row will be the page title and it will be a link of same page title) ,%% (ie second cell will have no formatting applied to it - must use as placeholder if a cell later needs formatting) (if all cells after last declared format are boring, no formatting needs to be declared) |tablesortcol= # (what column do you want to sort by?) |order= |ordermethod=title (sort by page title) |format=_,_,_,_ (startall,start,end,endall) |columns= # (how many columns would you like to display the answer in? goes down then over to next column) |rowcolformat=100% (make sure if using the above, it spreads across the width of the whole page) |oneresultheader= |resultsheader= |noresultsheader=
- If variable is not blank, use cost template, else, do nothing.
²{#if:%%¦²{cost¦%%}²}²
Other Stuff
Highly recommended, unless you specifically want new DPL search each time you load the page.
|dplcache=uniquename (name the cache for the DPL to reduce load on the wiki server. this name is cached under the page cache, so it only needs to be unique to the page) |dplcacheperiod=86400 (how long the cache should be held for. This is the amount for 24 hours.)
DPL Variables
%PAGE%
= Page title/name%PAGES%
= Number of results¦ (ALT+0166)
Broken pipe used in DPL in place of | full pipe when calling for templating since DPL as its own template relies on the pipe! So sub sections have to call outside using broken pipe or to not change sections. \o/² (ALT+0178)
used to double brackets when calling upon templates/parser functions:²{---}²
‹ (ALT+0139)
for magic word{{‹}}
--><
, (,)
• (•)
Classes
mw-collapsible
- table will have expand/collapse button by default in last column on the rightmw-collapsed
- table will be collapsed on page open (by default) - excluding this will have the table load as expanded
Classes can be used on DIVs to make invisible collapsed things! :O
paliatable
- this is a style of table header, border, etc. Assumed as a standard.sortable
- whether you would like all the columns or individual columns to be sortable. Place under table for all, and next to a title for eachpaliatable2
- I cant recall where I saw this one in use.
Style
text-align
font-size
font-weight
width
min-width
max-width
padding
(inside)margin
(outside)
style="margin:auto"
Add to a table to center it in the page.